You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Lawrence, Gareth" <G....@massey.ac.nz> on 2001/08/28 00:31:33 UTC
Servlet Exception - Please Help
Greetings All,
Please, please, please help me ;) I've got to show off Servlets/JSP
tomorrow at a presentation but I can't get tomcat even to boot the
examples!!! If anyone could help me I would really appreciate it. Thanks
Gareth.
I get the error:
A Servlet Exception Has Occurred
Exception Report:
javax.servlet.ServletException: sun/tools/javac/Main
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:461)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
.......
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:271)
Gareth Lawrence
Institute of Information Sciences and Technology
Phone (350) 7231
Website http:\\www-ist.massey.ac.nz
MSN Messenger: zitan_broth@hotmail.com
Re: Servlet Exception - Please Help
Posted by Dmitri Colebatch <di...@bigpond.net.au>.
the key thing is to find the tools.jar file. that error is typically
caused by trying to run tomcat on the JRE instead of the JDK. Downlaod
the JDK from sun or ibm and have another go - ensuring that JAVA_HOME is
set to the install dir of the JDK
cheers
dim
On Tue, 28 Aug 2001, Lawrence, Gareth wrote:
> Greetings All,
>
> Please, please, please help me ;) I've got to show off Servlets/JSP
> tomorrow at a presentation but I can't get tomcat even to boot the
> examples!!! If anyone could help me I would really appreciate it. Thanks
> Gareth.
>
> I get the error:
> A Servlet Exception Has Occurred
> Exception Report:
> javax.servlet.ServletException: sun/tools/javac/Main
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:461)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
> .......
> 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:271)
>
> Gareth Lawrence
> Institute of Information Sciences and Technology
> Phone (350) 7231
> Website http:\\www-ist.massey.ac.nz
> MSN Messenger: zitan_broth@hotmail.com
>
Re: Servlet Exception - Please Help
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Tue, 28 Aug 2001, Lawrence, Gareth wrote:
> Date: Tue, 28 Aug 2001 10:31:33 +1200
> From: "Lawrence, Gareth" <G....@massey.ac.nz>
> Reply-To: tomcat-user@jakarta.apache.org
> To: "'tomcat-user@jakarta.apache.org'" <to...@jakarta.apache.org>
> Subject: Servlet Exception - Please Help
>
> Greetings All,
>
> Please, please, please help me ;) I've got to show off Servlets/JSP
> tomorrow at a presentation but I can't get tomcat even to boot the
> examples!!! If anyone could help me I would really appreciate it. Thanks
> Gareth.
>
JSP pages require a Java compiler, which means you need to run on a JDK,
not a JRE. If you've got a JDK installed, make sure that your $JAVA_HOME
environment variable points at it.
Craig
> I get the error:
> A Servlet Exception Has Occurred
> Exception Report:
> javax.servlet.ServletException: sun/tools/javac/Main
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:461)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
> .......
> 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:271)
>
> Gareth Lawrence
> Institute of Information Sciences and Technology
> Phone (350) 7231
> Website http:\\www-ist.massey.ac.nz
> MSN Messenger: zitan_broth@hotmail.com
>