Grokbase Groups Tomcat users May 2006
FAQ

[Tomcat-users] org.apache.jasper.JasperException: Unable to compile class for JSP

Nick Agianniotis
May 18, 2006 at 1:17 am
Hi all!
I used to work with Tomcat 3.3 but recently I decided to change to Tomcat
5.5
Unfortunately it appears that I cannot run most of my .jsp files on this
version of the server because I encouter this problem:
When the server tries to compile the jsp`s, it shows me an error with this
stack trace :

"
SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
The method handlePageException(Exception) in the type PageContext is not
applicable for the arguments (Throwable)


at org.apache.jasper.compiler.DefaultErrorHandler.javacError(
DefaultErrorHandler.java:84)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(
ErrorDispatcher.java:328)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java
:414)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
at org.apache.jasper.JspCompilationContext.compile(
JspCompilationContext.java:563)
at org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:303)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)


"
However, when I convert the same files to applets, this problem doesn`t
exist anymore.

I use Java 1.5 and my OS is Windows XP

Does anybody have any idea of what might that mean?

Thanx in advance!
--
Nick Agianniotis
reply

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post

1 user in discussion

Nick Agianniotis: 1 post