I'm running Tomcat 4.0.1. I've a simple html page which executes a jsp
page upon pressing submit. I'm getting status 500 internal server
error, upon pressing submit. It shows the following exception:
javax.servlet.ServletException: sun/tools/javac/Main
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:484)
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:243)
Any ideas on what is causing this? Any help is greatly appreciated.
Thanks.
- Raja.
ServletException error reports usually contain a root cause Exception that
will appear further down the listing - thats the one you should be looking
at. Since it is the compiler throwing the exception, I am betting on a
error in the generated Java code - you may be able to find it under
the work directory.
Bill
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)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
Thanks again,
- Raja.
Are you certain your JAVA_HOME points to a JDK installation of Java,
instead of a plain JRE?
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
> NoClassDefFoundError: sun/tools/javac/Main
For some reason, Tomcat is not finding the tools.jar library
that contains the compiler. Which version of Java is
installed on your system?
Bill
- Raja.