Re: Tomcat - Internal Server Error 500



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.


William Brogden wrote:
On Sat, 30 Sep 2006 14:20:20 -0500, Raja <rajak27@xxxxxxxxx> wrote:

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.


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

.



Relevant Pages

  • Re: Open invitation to new discussion group
    ... type Exception report ... description The server encountered an internal error that prevented it from fulfilling this request. ... root cause ... note The full stack trace of the root cause is available in the Apache Tomcat/5.5.7 logs. ...
    (rec.roller-coaster)
  • newbie - java beans
    ... public class SimpleBean ... description The server encountered an internal error that prevented ... note The full stack trace of the root cause is available in the Apache ...
    (comp.lang.java.help)
  • Re: "False exceptions?" (was Re: theme of the week: tools
    ... a debugger can be useless because it affects the scheduling ... My point was that even just this particular exception ... Even if there is an exception, the root problem may be way ... from prior memory corruption) quickly end up in some state where you ...
    (comp.lang.python)
  • Re: Java and buffer overflows
    ... What happened here is that the JavaVM caught an exception while parsing ... > passed user input to a buffer but the compiler kept barking at me so ... > [root@rcmqa5 root]# javac test.java ...
    (Vuln-Dev)
  • RE: CDO problems with synchronous store event sink
    ... registered the handler for sync events at the root of my mailbox. ... Stream Open throws an exception with code 0x800a0cb3, ...
    (microsoft.public.exchange2000.applications)