Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting 500 Server error instead of error page

 
Greg Lamonakis
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Runing tomcat 5.0.28 JVM 1.5.0_01-b08, windows 2000. I have seen other posts on this topic but have got an answer from them.
I am getting 500 Server error messages from this page (instead of error page):
<%@ page errorPage="errorPage.jsp" %>
<html>
<head><title>JSP Page</title></head>
<body>
HERE COMES BAD
<% int x = 10/0; %>
</body>
</html>

this is errorPage.jsp
<%@ page isErrorPage="true" %>
<html>
<body>
I AM ERROR PAGE
</body>
</html>

Both of these files are at the root of my web application however I have tried errorPage="/errorPage.jsp" and errorPage="\errorPage.jsp" without success.

Also tried configuring this error page (with preceding "/") in the web.xml <error-page> tag with the same 500 server error results.

Does anyone know how I can fix this?
Thank you for your time,
Greg
[ March 18, 2005: Message edited by: Greg Lamonakis ]
 
Jose Esteban
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've tried your code and it works fine.
 
Bassam Zahid
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried your code on Tomcat 5.5.7 and JVM 1.5.0_01-b08 on Windows XP and it works fine. So the error is somewhere with ur system.
 
Pierre Schuffenecker
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the same issue with Tomcat 5.5.7 and JVM 1.5.0_01-b08 on win2000, but works fine with winXP.

A fix of win2000 seems to be the reason, but don't know more.
I tried on a win2000 SP4 (without any additionnal fixing from MS) and works properly.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic