tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trevor Little <tlit...@hoaglandlongo.com>
Subject Re: jsp engine failing to find sun.tools.javac.Main...
Date Tue, 05 Dec 2000 16:56:27 GMT
Looks like something might be wrong with your CLASSPATH... take a look
at that


Tony Dean wrote:
> 
> I downloaded jakarta-tomcat 3.2.  I have no problems running a servlet.  However, when
the jsp-engine tries to compile a jsp (sample.jsp) located in the examples context, I get
a NoClassDefFoundError.  I can't run any jsp, even the jakarta-tomcat supplied jsps.  sun.tools.javac.Main
resides in my jdk\lib\tools.jar and from the jakarta-tomcat engine log, you can see that this
jar file is included in the classpath.
> 
>  <<...OLE_Obj...>>
> 
> Also, I am using jdk1.3.0_01.
> Here is the actual error message that I receive.
> 
> Error: 500
> Location: /examples/jsp/AppDevStudio/sample.jsp
> Internal Servlet Error:
> javax.servlet.ServletException: sun/tools/javac/Main
>         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:390)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
>         at org.apache.tomcat.core.Handler.service(Handler.java:263)
>         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
>         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:786)
>         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:732)
>         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
>         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
>         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
>         at java.lang.Thread.run(Thread.java:484)
> Root cause:
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
>         at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
>         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
>         at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:453)
>         at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
>         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:424)
>         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152)
>         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164)
>         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309)
>         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:382)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
>         at org.apache.tomcat.core.Handler.service(Handler.java:263)
>         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
>         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:786)
>         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:732)
>         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
>         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
>         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
>         at java.lang.Thread.run(Thread.java:484)
> 
> Any clues to what's going on would be greatly appreciated.
> 
> Tony Dean
> SAS Institute Inc.
> The Power to Know
> Sr. Systems Developer
> Distributed Technologies
> (919)677-8000 x6704
> Tony.Dean@sas.com

Mime
View raw message