I'm running Tomcat on a Debian Linux box and have an Ant build script that automatically recompiles JSP files to java (using jspc) and then from these java files to class files (using javac).

This worked great in Tomcat 4.1.18, but when I upgraded to 4.1.24, this no longer works.

The symptom: the files compile with no errors, class files are created, but then when a JSP page is accessed using a browser, the following exception is thrown:


java.lang.NoClassDefFoundError: org/apache/jsp/login_jsp (wrong name: login_jsp)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at java.lang.ClassLoader.defineClass(ClassLoader.java:431)
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:215)
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131)
at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:497)
at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:150)
at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:440)
at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:390)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:471)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)



The login_jsp page is my page it's looking for.


When I allow Tomcat to compile the JSP "java" files, the pages work fine. So there is some problem using javac from my Ant script.

I went to the Tomcat documentation at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html#Web%20Application%20Compilation
and made my script identical to that Ant compile script, and it still did not work.


Does anyone have any ideas here?

Thanks for your time,
Rob



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to