0 Replies Latest reply on Jan 26, 2004 4:55 PM by Tim Bauer

    JSP compilation erros using JB3.2.3 and Jikes

    Tim Bauer Novice

      Using JBoss 3.2.3
      Java 1.4.1
      Mac OS X 10.3.2
      1Gig of RAM

      Still getting random JSP comilation errors using Jikes and Tomcat. I can see the Jikes compile fire
      up in the process list, but sometimes I get JSP compilation error that make absolutely no sense.

      My web.xml file in jbossweb-tomcat41.sar is configured as:


      <servlet-name>jsp</servlet-name>
      <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
      <init-param>
      <param-name>compiler</param-name>
      <param-value>jikes</param-value>
      </init-param>
      <init-param>
      <param-name>javaEncoding</param-name>
      <param-value>ISO-8859-1</param-value>
      </init-param>
      <init-param>
      <param-name>fork</param-name>
      <param-value>true</param-value>
      </init-param>
      <init-param>
      <param-name>development</param-name>
      <param-value>false</param-value>
      </init-param>
      <init-param>
      <param-name>reloading</param-name>
      <param-value>false</param-value>
      </init-param>
      <init-param>
      <param-name>keepgenerated</param-name>
      <param-value>true</param-value>
      </init-param>
      <init-param>
      <param-name>logVerbosityLevel</param-name>
      <param-value>WARNING</param-value>
      </init-param>
      <load-on-startup>3</load-on-startup>


      When I deploy my application, I SOMETIMES GET errors like:

      [javac] *** Semantic Warning: The file "/Applications/jboss-3.2.3/server/default/tmp/deploy/tmp46319user-service.xml" is not a valid directory.


      [javac] *** Semantic Warning: The file "/Applications/jboss-3.2.3/server/default/tmp/deploy/tmp46314properties-service.xml" is not a valid directory.

      [javac] Found 2 semantic errors compiling "/Applications/jboss-3.2.3/server/default/work/MainEngine/localhost/_/jsp/approveInvoiceForm_jsp.java":

      [javac] 569. out.print(InvoiceModel.getInvoiceDiscountNote());
      [javac] ^-----------------------------------^
      [javac] *** Semantic Error: No method named "getInvoiceDiscountNote" was found in type "com.icshealth.model.InvoiceModel". However, there is an accessible method "getInvoiceDiscounts" whose name closely matches the name "getInvoiceDiscountNote".


      [javac] 593. out.print(InvoiceModel.getInvoiceLateFeeNote());
      [javac] ^----------------------------------^
      [javac] *** Semantic Error: No method named "getInvoiceLateFeeNote" was found in type "com.icshealth.model.InvoiceModel".
      11:28:46,430 ERROR [STDERR] at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
      11:28:46,431 ERROR [STDERR] at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
      11:28:46,432 ERROR [STDERR] at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
      11:28:46,433 ERROR [STDERR] at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
      11:28:46,434 ERROR [STDERR] at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
      11:28:46,435 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
      11:28:46,436 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
      11:28:46,436 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
      11:28:46,437 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      11:28:46,438 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
      11:28:46,439 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
      11:28:46,440 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
      11:28:46,441 ERROR [STDERR] at com.icshealth.web.servlet.InvoiceServlet.approveInvoiceForm(Unknown Source)
      11:28:46,442 ERROR [STDERR] at com.icshealth.web.servlet.InvoiceServlet.handleRequest(Unknown Source)
      11:28:46,443 ERROR [STDERR] at com.icshealth.web.servlet.AbstractController.checkSessionAuthentication(Unknown Source)
      11:28:46,444 ERROR [STDERR] at com.icshealth.web.servlet.AbstractController.doGet(Unknown Source)
      11:28:46,445 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      11:28:46,446 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      11:28:46,446 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      11:28:46,447 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      11:28:46,448 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
      11:28:46,449 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      11:28:46,450 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      11:28:46,451 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      11:28:46,452 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      11:28:46,455 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      11:28:46,456 ERROR [STDERR] at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)
      11:28:46,457 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      11:28:46,458 ERROR [STDERR] at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
      11:28:46,459 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      11:28:46,460 ERROR [STDERR] at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76)
      11:28:46,461 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      11:28:46,461 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      11:28:46,462 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      11:28:46,463 ERROR [STDERR] at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
      11:28:46,464 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
      11:28:46,465 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      11:28:46,466 ERROR [STDERR] at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
      11:28:46,467 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      11:28:46,468 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
      11:28:46,469 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      11:28:46,470 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)
      11:28:46,471 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      11:28:46,472 ERROR [STDERR] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
      11:28:46,472 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      11:28:46,483 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      11:28:46,484 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      11:28:46,484 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
      11:28:46,484 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      11:28:46,485 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      11:28:46,485 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      11:28:46,485 ERROR [STDERR] at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
      11:28:46,485 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
      11:28:46,485 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
      11:28:46,486 ERROR [STDERR] at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
      11:28:46,519 ERROR [STDERR] at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
      11:28:46,520 ERROR [STDERR] at java.lang.Thread.run(Thread.java:554)

      The compiler is complaining about a certain method not being found, but I KNOW it is in the class.
      If I UNDEPLOY the application, and redeploy it, usually this error will go away.

      Any clues from anyone??