QueueMetrics > Running QueueMetrics
JasperException - Cannot compile class 1.6.0.1
SimonJai:
Hi,
I've just installed 1.6.0.1, but I'm getting a JasperException unable to compile JSP class:
--- Code: ---"[JSP] org.apache.jasper.JasperException - -- Inner Exception -- Exception: org.apache.jasper.JasperException Error: Unable to compile class for JSP An error occurred at line: 90 in the jsp file: /00_page_header.jsp Generated servlet error: /var/lib/tomcat5/work/Catalina/localhost/queuemetrics/org/apache/jsp/licence_005fagreement_jsp.java:360: cannot find symbol symbol : method dec(it.loway.tpf.common.containers.LDecoder,java.lang.String) location: class it.loway.app.queuemetrics.FA String stLabel = FA.dec( oDec, ltX.getS( i, 0)); ^ 1 error Stack trace: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 90 in the jsp file: /00_page_header.jsp Generated servlet error: /var/lib/tomcat5/work/Catalina/localhost/queuemetrics/org/apache/jsp/licence_005fagreement_jsp.java:360: cannot find symbol symbol : method dec(it.loway.tpf.common.containers.LDecoder,java.lang.String) location: class it.loway.app.queuemetrics.FA String stLabel = FA.dec( oDec, ltX.getS( i, 0)); ^ 1 error 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:438) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:498) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:477) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:465) 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:802) 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:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:619) -- End Inner Exception -- "
--- End code ---
I did read the FAQ and it said to change the charset encoding, but this did not fix the issue:
--- Code: ---queuemetrics:/usr/share/tomcat5/conf# ps aux | grep java
tomcat5 3194 0.9 20.2 262000 53132 ttyp0 Sl 05:27 0:03 /usr/lib/jvm/java-6-sun/bin/java -Dfile.encoding=ISO-8859-1 -Xms256M -Xmx512M -Djava.awt.headless=true -Xms64M -Xmx128M -Duser.timezone=Australia/Sydney -Dfile.encoding=ISO-8859-1 -Djava.endorsed.dirs=/usr/share/tomcat5/common/endorsed -classpath /usr/lib/jvm/java-6-sun/lib/tools.jar:/usr/share/tomcat5/bin/commons-launcher.jar:/usr/share/tomcat5/bin/commons-logging-api.jar:/usr/share/tomcat5/bin/jmx.jar:/usr/lib/jvm/java-6-sun/jre//lib/jcert.jar:/usr/lib/jvm/java-6-sun/jre//lib/jnet.jar:/usr/lib/jvm/java-6-sun/jre//lib/jsse.jar:/usr/share/tomcat5/bin/bootstrap.jar:/usr/share/tomcat5/bin/commons-logging-api.jar -Dcatalina.base=/var/lib/tomcat5 -Dcatalina.home=/usr/share/tomcat5 -Djava.io.tmpdir=/var/lib/tomcat5/temp org.apache.catalina.startup.Bootstrap start
--- End code ---
Also running java 6:
--- Code: ---queuemetrics:/usr/share/tomcat5/conf# /usr/lib/jvm/java-6-sun/bin/java -version
java version "1.6.0_12"
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
--- End code ---
I had no problem running 1.5.5. Any ideas on how to fix this?
QueueMetrics:
Makes me think that there is a mess in the Tomcat caches.
Try the recipe here. http://queuemetrics.com/faq.jsp#faq-070-clean_logs
SimonJai:
Thanks for the reply, unfortunately that did not solve the problem... still the same error about not being able to compile class for JSP.
I should also note that I am using Debian and not CentOS.
QueueMetrics:
Do you have Tomcat Security enabled?
QueueMetrics:
Are you using a JDK from SUN?
Navigation
[0] Message Index
[#] Next page
Go to full version