tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Travis Bear <travis.b...@myrio.com>
Subject Solved! (Re: Cannot compile index.jsp (NoClassDefFoundError?))
Date Fri, 16 May 2003 09:52:43 GMT
This was tracked down to be a problem with the JDK installation.  The
tools.jar file was missing from $JAVA_HOME/lib


Thanks!


Travis


On Wed, 2003-05-14 at 06:54, Travis Bear wrote:

> On this one Solaris box I'm having trouble getting the default,
> out-of-the-box  index.jsp to compile under jdk 1.41.  The same box has
> multiple VM's.  Under jdk 1.3.1 it compiles fine.  If I switch back to
> jdk 1.3.1 again, I can view index.jsp  properly because the jsp has been
> compiled by the previous vm.
> 
> I have verified that the JAVA_HOME environment variable is properly set
> in both cases.
> 
> 
> Any ideas greatly appreciated!
> 
> 
> 
> 
> 
> 
> Various log data below:
> 
> 
> 
> browser window:
> 
> org.apache.jasper.JasperException: Unable to compile class for JSP
> 
> 
> An error occurred at line: -1 in the jsp file: null
> 
> Generated servlet error:
>     [javac] Since fork is true, ignoring compiler setting.
>     [javac] Compiling 1 source file
>     [javac] Since fork is true, ignoring compiler setting.
>     [javac] Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
> 
> 
> 
> 
> 
> catalina.out:
> 
> May 14, 2003 1:35:15 PM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on port 8080
> May 14, 2003 1:35:15 PM org.apache.jk.common.ChannelSocket init
> INFO: JK2: ajp13 listening on /0.0.0.0:8009
> May 14, 2003 1:35:15 PM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=2/56 
> config=/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/c
> onf/jk2.properties
> Compile failed; see the compiler error output for details.
>         at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:842)
>         at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
>         at
> org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317)
>         at
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
>         at
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
>         at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
>         at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
>         at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain
> .java:247)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:19
> 3)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Stand
> ardPipeline.java:643)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Stand
> ardPipeline.java:643)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at
> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
>         at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
>         at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
>         at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
>         at java.lang.Thread.run(Thread.java:536)
> 
> 
> 
> 
> 
> 
> localhost log:
> 
> 2003-05-14 13:36:05 Error compiling file:
> /opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/work/Standalone/localhost/_/index_jsp.java
    [javac] Since fork is true, ignoring compiler setting.
>     [javac] Compiling 1 source file
>     [javac] Since fork is true, ignoring compiler setting.
>     [javac] Exception in thread "main" java.lang.NoClassDefFoundError:
> com/sun/tools/javac/Main
>  
> 2003-05-14 13:36:05 Info: Compile:
> javaFileName=/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/work/Standalone/localhost/_/index_jsp.java
>    
> classpath=/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/shared/classes/:/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/classes/:/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/endorsed/xercesImpl.jar:/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/endorsed/xmlParserAPIs.jar:/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/servlet.jar:/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/mail.jar:/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/commons-logging-api.jar:/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/commons-collections.jar:/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/jdbc2_0-stdext.jar:/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/commons-pool.jar:/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/jasper-compiler.jar:/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/naming-factory.jar:/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/jndi.jar:/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/activation.jar:/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/jasper-runtime.jar:/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/naming-resources.jar:/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/naming-common.jar:/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/commons-dbcp.jar:/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/ant.jar:/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/jta.jar
>     
> cp=/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/shared/classes
>     
> cp=/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/classes
>     
> cp=/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/endorsed/xercesImpl.jar
>     
> cp=/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/endorsed/xmlParserAPIs.jar
>     
> cp=/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/servlet.jar
>     
> cp=/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/mail.jar
>     
> cp=/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/commons-logging-api.jar
>     
> cp=/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/commons-collections.jar
>     
> cp=/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/jdbc2_0-stdext.jar
>     
> cp=/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/commons-pool.jar
>     
> cp=/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/jasper-compiler.jar
>     
> cp=/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/naming-factory.jar
>     
> cp=/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/jndi.jar
>     
> cp=/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/activation.jar
>     
> cp=/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/jasper-runtime.jar
>     
> cp=/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/naming-resources.jar
>     
> cp=/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/naming-common.jar
>     
> cp=/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/commons-dbcp.jar
>     
> cp=/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/ant.jar
>     
> cp=/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/common/lib/jta.jar
>      work
> dir=/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/work/Standalone/localhost/_
>    
> srcDir=/opt/local/java/orion-1.5.4/travis/jakarta-tomcat-4.1.24/work/Standalone/localhost/_
>     include=index_jsp.java
> Exception compiling Compile failed; see the compiler error output for
> details.
>                                                                                     
                                       
> 2003-05-14 13:36:05 Exception:
> Compile failed; see the compiler error output for details.
>         at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:842)
>         at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
>         at
> org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317)
>         at
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
>         at
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
>         at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
>         at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
>         at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at
> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
>         at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
>         at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
>         at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
>         at java.lang.Thread.run(Thread.java:536)
>                                                                                     
                                       
> 2003-05-14 13:36:05 StandardWrapperValve[jsp]: Servlet.service() for
> servlet jsp threw exception
> org.apache.jasper.JasperException: Unable to compile class for JSP
>                                                                                     
                                       
> An error occurred at line: -1 in the jsp file: null
>                                                                                     
                                       
> Generated servlet error:
>     [javac] Since fork is true, ignoring compiler setting.
>     [javac] Compiling 1 source file
>     [javac] Since fork is true, ignoring compiler setting.
>     [javac] Exception in thread "main" java.lang.NoClassDefFoundError:
> com/sun/tools/javac/Main
>                                                                                     
                                       
>                                                                                     
                                       
>                                                                                     
                                       
>         at
> org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
>         at
> org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
>         at
> org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
>         at
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
>         at
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
>         at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
>         at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
>         at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at
> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
>         at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
>         at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
>         at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
>         at java.lang.Thread.run(Thread.java:536)
> 
> 
> 
> 
> Thanks again!
> 
> 
> 
> Travis
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message