tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject RE: error page for error code 500?
Date Tue, 04 Feb 2003 04:01:07 GMT


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

> Date: Tue, 4 Feb 2003 09:04:42 +1100
> From: "Chong, Kwong" <Kwong.Chong@sensis.com.au>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> To: 'Tomcat Users List' <tomcat-user@jakarta.apache.org>
> 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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message