Unable to compile class for JSP with Tomcat 7 and Java 8

Issues and Questions related to running Apache Tomcat on z/OS
Post Reply
c903353
Posts: 3
Joined: Fri Mar 09, 2012 5:21 am

Unable to compile class for JSP with Tomcat 7 and Java 8

Post by c903353 » Tue Nov 10, 2015 10:35 am

We run the Dovetailed Technologies Tomcat 7.0.27 Quickstart and have changed from Java 7 to Java 8.
Tomcat comes up and runs however when a JSP should be compiled we get the following error:
HTTP Status 500
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

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

An error occurred at line: 214 in the jsp file: /jsp/QryResult.jsp
The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files
211: }
212: }
213: qryHtml = sbQry.toString();
214: if(qryHtml.contains("CALL") || qryHtml.contains("EXEC"))
215: qryHtml = qryHtml.replaceFirst("\\?",paramEntId);
216: }
217: %>

...
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:331)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:469)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
com.ca.wso.base.WsoEngine.performTask(WsoEngine.java:936)
com.ca.wso.servlet.Finder.performTask(Finder.java:810)
com.ca.wso.base.WsoEngine.service(WsoEngine.java:102)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
com.ca.wso.servlet.WSO.performTask(WSO.java:168)
com.ca.wso.servlet.WSO.service(WSO.java:50)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

Is there a problem with Tomcat 7.0.27 and Java 8 or do I need to perform some additional customization?

Post Reply