Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Tomcat - Internal Server Error 500

0 views
Skip to first unread message

Raja

unread,
Sep 30, 2006, 3:20:20 PM9/30/06
to
Hi,

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.

William Brogden

unread,
Oct 1, 2006, 12:39:05 PM10/1/06
to

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

Raja

unread,
Oct 1, 2006, 10:29:43 PM10/1/06
to
Thanks for the clue. The root cause is NoClassDefFoundError (shown
below). I've set the JAVA_HOME correctly. Still I'm getting the same
internal error 500. Am I missing something else?

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.

Juha Laiho

unread,
Oct 2, 2006, 2:32:03 PM10/2/06
to
"Raja" <raj...@gmail.com> said:
>Thanks for the clue. The root cause is NoClassDefFoundError (shown
>below). I've set the JAVA_HOME correctly. Still I'm getting the same
>internal error 500. Am I missing something else?
>
>java.lang.NoClassDefFoundError: sun/tools/javac/Main
...

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)

William Brogden

unread,
Oct 2, 2006, 2:44:09 PM10/2/06
to
On Sun, 01 Oct 2006 21:29:43 -0500, Raja <raj...@gmail.com> wrote:
Thanks for the clue. The root cause is NoClassDefFoundError (shown
below). I've set the JAVA_HOME correctly. Still I'm getting the same
internal error 500. Am I missing something else?

> 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

unread,
Oct 2, 2006, 9:42:27 PM10/2/06
to
My java.home propery value pointed to c:\java\jdk1.5.0_06\jre and so I
was using that. I corrected it to c:\java\jdk1.5.0_06 and it works fine
now. Thanks a lot for the help.

- Raja.

0 new messages