I just got a pointer into my original JSP (not the Java version); see copy
below. I also looked in my $CATALINA_HOME/work, and found only
directories, no files (at any depth) --- see listing below. I did not
precompile my JSP.
Here is the complaint from logs/localhost.{date}.log:
Jul 6, 2011 3:49:36 PM org.apache.catalina.core.StandardWrapperValve
invoke
SEVERE: Servlet.service() for servlet [jsp] in context with path
[/rippledriver] threw exception [Unable to compile class for JSP:
An error occurred at line: 10 in the jsp file: /index.jsp
Unhandled exception type Exception
7: ...
8:
9:
10: <%!static Driver driver = new RealDriverImpl();%>
11: <%
12: String p;
13: if (null != (p = request.getParameter("runpause")))
Stacktrace:] with root cause
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 10 in the jsp file: /index.jsp
Unhandled exception type Exception
7: ...
8:
9:
10: <%!static Driver driver = new RealDriverImpl();%>
11: <%
12: String p;
13: if (null != (p = request.getParameter("runpause")))
Stacktrace:
at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
at
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:457)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:374)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:339)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:601)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:344)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:403)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:301)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:162)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:140)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Here is my futile search for something in work/ (dates don't all match
because I shutdown before sending my original complaint, then started up
again and reproduced the problem to see if that would give me something to
look at; Tomcat is running right now):
$ find work -exec ls -ld \{\} \;
drwxr-xr-x 3 mspreitz staff 102 Jul 6 15:31 work
drwxr-xr-x 3 mspreitz staff 102 Jul 6 15:31 work/Catalina
drwxr-xr-x 8 mspreitz staff 272 Jul 6 17:53 work/Catalina/localhost
drwxr-xr-x 2 mspreitz staff 68 Jul 6 17:53 work/Catalina/localhost/_
drwxr-xr-x 2 mspreitz staff 68 Jul 6 17:53
work/Catalina/localhost/docs
drwxr-xr-x 2 mspreitz staff 68 Jul 6 17:53
work/Catalina/localhost/examples
drwxr-xr-x 2 mspreitz staff 68 Jul 6 17:53
work/Catalina/localhost/host-manager
drwxr-xr-x 2 mspreitz staff 68 Jul 6 17:53
work/Catalina/localhost/manager
drwxr-xr-x 2 mspreitz staff 68 Jul 6 17:53
work/Catalina/localhost/rippledriver
Thanks,
Mike Spreitzer
From: Pid
To: Tomcat Users List
Date: 07/06/2011 05:14 PM
Subject:Re: Need help debugging JSP compilation failure
On 06/07/2011 21:54, Mike Spreitzer wrote:
> I install a fresh copy of the latest Tomcat (7.0.16), and deploy my WAR
by
> copying it into Tomcat's webapps/. Then I startup Tomcat and direct my
> browser to my web