On Tue, 4 Feb 2003, Chong, Kwong wrote:

> Date: Tue, 4 Feb 2003 09:04:42 +1100
> From: "Chong, Kwong" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: RE: error page for error code 500?
>
>
> Doesn't error 500 means the server (tomcat) isn't responding?
> in which case, if there's a problem with tomcat, it can't then process the
> request to tell you there's a problem ;)
>

By far the most common cause is that Tomcat is running fine, but your
servlet or JSP page threw an exception.  The only way to know for sure is
to examine the exception traceback that is presented in the response
and/or in the log files created by Tomcat in the $CATALINA_HOME/logs
directory.

Just for fun, run the following JSP page and see what you get:

  <%
    int i = 5;
    int j = 0;
    int k = i / j;
  %>

and examine the stack trace that shows up (a divide by zero error).
That's an application programming error, and nothing to do with the
container.

Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to