I have a webapp which uses Struts 2's taglib and Tomcat 5.5.23 with Java 1.5.
I am not using precompiled JSP pages. Whenever I try to access a JSP page
containing a struts 2 tag, the following exception is thrown:

org.apache.jasper.JasperException: /default/login.jsp(37,0) File
"/struts-tags" not found

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
        
org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:340)
        org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:373)
        org.apache.jasper.compiler.Parser.parseDirective(Parser.java:485)
        org.apache.jasper.compiler.Parser.parseElements(Parser.java:1557)
        org.apache.jasper.compiler.Parser.parse(Parser.java:127)

org.apache.jasper.compiler.ParserController.doParse(ParserController.java:212)

org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
        org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:156)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:296)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

My JSP page is quite simple:

<%@ page language="java" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ page
import="org.springframework.security.ui.webapp.AuthenticationProcessingFilter"
%>
<%@ page import="org.springframework.security.ui.AbstractProcessingFilter"
%>
<%@ page import="org.springframework.security.AuthenticationException" %>

<html xmlns="http://www.w3.org/1999/xhtml"; lang="en">
<body>

<s:form action="SubmitAction" theme="simple" >
Name: <s:textfield name="userName" />
<s:submit />
</s:form>
</body>
</html>

All of the struts 2 JAR files are located in the WEB-INF/lib directory
(including struts2-core which contains the appropriate tld file for the
/struts-tag library). Is there anything that I need to configure to make
Tomcat manually compile each JSP page? Or does anyone have any
troubleshooting suggestions?

Thanks,

David
-- 
View this message in context: 
http://www.nabble.com/Problem-with-JSP-Compilation-tp19541813p19541813.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to