Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to compile class for jsp

Status
Not open for further replies.

keewks

Technical User
Feb 16, 2003
4
FR
Hi,
Here's my problem:
When I call for the 1st time my jsp file with Apache
website/app/*.jsp
I have the error:
Unable to compile class for JSP
With Tomcat (website:8080/app/*.jsp)everything is ok, the classes are compiled.
Then if I recall this same file with Apache after, it's ok.
I use Tomcat 4.1.18, Apache 2.0.44, mod_jk2, Windows.
 
I had no answer to my problem then I try to explain my problem differently:

When I load a jsp file (servername:8080/examples/jsp/num/numguess.jsp) such as numguess.jsp in Tomcat's examples everything is ok, the class is compiled. Then if I remove class in the Tomcat's work directory and I load numguess.jsp with Apache (servername:80/ examples/jsp/num/numguess.jsp) I have this error:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:

[javac] Compiling 1 source file

at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184) 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)...
...

If I start Tomcat, and Apache, and I load servername:80/examples/jsp/num/numguess.jsp then this is ok.

Does anybody know why I have this error? :-(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top