GeeCON Prague 2014*
The moose likes Tomcat and the fly likes Tomcat 6.0.18 Setup Issues - JasperException: Unable to compile class for JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 6.0.18 Setup Issues - JasperException: Unable to compile class for JSP" Watch "Tomcat 6.0.18 Setup Issues - JasperException: Unable to compile class for JSP" New topic
Author

Tomcat 6.0.18 Setup Issues - JasperException: Unable to compile class for JSP

CiaranP DEire
Greenhorn

Joined: Nov 06, 2008
Posts: 6
Hi,

I'm trying to port a project that was running on Tomcat 5.0.25 to Tomcat 6.0.18. I have very little experience doing this before and am running into various problems, primarily to do with compiling my jsp files. From my stack trace I'm getting errors such as:

INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
7/11/2008 10:33:15 org.apache.catalina.startup.HostConfig deployDescriptor
WARNING: A docBase C:\Program Files\Apache\Tomcat 6.0\webapps\myApplication inside the host appBase has been specified, and will be ignored
7/11/2008 10:33:15 org.apache.catalina.startup.HostConfig deployDescriptor
WARNING: A docBase C:\Program Files\Apache\Tomcat 6.0\webapps\myApplicationAdmin inside the host appBase has been specified, and will be ignored
7/11/2008 10:33:16 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
7/11/2008 10:33:16 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
7/11/2008 10:33:16 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16 config=null
7/11/2008 10:33:16 org.apache.catalina.startup.Catalina start
INFO: Server startup in 1255 ms
7/11/2008 10:33:22 org.apache.jasper.compiler.Compiler generateClass
SEVERE: Javac exception
Compile failed; see the compiler error output for details.
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:944)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:438)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:424)
at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:343)
at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:287)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)

Appreciate any tips or guidance,

Cheers.
CiaranP DEire
Greenhorn

Joined: Nov 06, 2008
Posts: 6
This portion of the localhost log may be more informative:

Generated servlet error:
C:\Program Files\Apache\Tomcat 6.0\work\Catalina\localhost\myApplication\org\apache\jsp\login_jsp.java:499: package com.mapp.framework.tags does not exist
com.mapp.framework.tags.IncludeTag _jspx_th_mapp_include_2 = (com.mapp.framework.tags.IncludeTag) _jspx_tagPool_mapp_include_page_ifExists_nobody.get(com.mapp.framework.tags.IncludeTag.class);
^


An error occurred at line: 261 in the jsp file: /login.jsp
Generated servlet error:
C:\Program Files\Apache\Tomcat 6.0\work\Catalina\localhost\myApplication\org\apache\jsp\login_jsp.java:501: package javax.servlet.jsp.tagext does not exist
_jspx_th_mapp_include_2.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_mapp_includeNotFound_0);
^


Generated servlet error:
C:\Program Files\Apache\Tomcat 6.0\work\Catalina\localhost\myApplication\org\apache\jsp\login_jsp.java:505: package javax.servlet.jsp.tagext does not exist
if (_jspx_th_mapp_include_2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
^


Generated servlet error:
Note: C:\Program Files\Apache\Tomcat 6.0\work\Catalina\localhost\myApplication\org\apache\jsp\login_jsp.java uses unchecked or unsafe operations.


Generated servlet error:
Note: Recompile with -Xlint:unchecked for details.
65 errors



at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.sok.runway.URLFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.sok.framework.DBConnectionFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
7/11/2008 11:35:33 org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
 
GeeCON Prague 2014
 
subject: Tomcat 6.0.18 Setup Issues - JasperException: Unable to compile class for JSP