Author Topic: JasperException - Cannot compile class 1.6.0.1  (Read 4642 times)

SimonJai

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
JasperException - Cannot compile class 1.6.0.1
« on: May 03, 2010, 07:34:04 »
Hi,

I've just installed 1.6.0.1, but I'm getting a JasperException unable to compile JSP class:

Code: [Select]
"[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 -- "
I did read the FAQ and it said to change the charset encoding, but this did not fix the issue:
Code: [Select]
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

Also running java 6:
Code: [Select]
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)

I had no problem running 1.5.5. Any ideas on how to fix this?

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: JasperException - Cannot compile class 1.6.0.1
« Reply #1 on: May 03, 2010, 14:23:25 »
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

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: JasperException - Cannot compile class 1.6.0.1
« Reply #2 on: May 04, 2010, 03:06:46 »
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

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: JasperException - Cannot compile class 1.6.0.1
« Reply #3 on: May 04, 2010, 15:32:30 »
Do you have Tomcat  Security enabled?

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: JasperException - Cannot compile class 1.6.0.1
« Reply #4 on: May 04, 2010, 15:33:07 »
Are you using a JDK from SUN?

SimonJai

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: JasperException - Cannot compile class 1.6.0.1
« Reply #5 on: May 05, 2010, 02:17:32 »
Not sure if Tomcat security is enabled, how do I check?

Yes, I do have Java6 JDK installed.

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: JasperException - Cannot compile class 1.6.0.1
« Reply #6 on: May 05, 2010, 10:50:43 »
If you did not change it, it is enabled by default on Debian.

See http://astrecipes.net/index.php?q=astrecipes/installing+queuemetrics+on+debian



SimonJai

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: JasperException - Cannot compile class 1.6.0.1
« Reply #7 on: May 06, 2010, 01:23:03 »
Tomcat5 Security is in fact disabled. I remember following that guide when I installed it.

Still the same issue though...  :(

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: JasperException - Cannot compile class 1.6.0.1
« Reply #8 on: May 06, 2010, 18:28:52 »
What is in teh queuemetrics/WEB-INf/libs directory?