You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ia...@blueyonder.co.uk on 2002/12/09 15:04:47 UTC

Custom Error 500 Page Is Not Displayed

Hi,

I have an installation of Tomcat 4.0.6 running on Win 2k Advanced Server, JDK 1.3.1_01 using IIS 5.0 as web server. I have set-up custom error pages in web.xml for both 404 and 500 to display helpful messages relevant to the application I've built. Any 404s are nicely displayed using the 404 error page defined in web.xml, but any 500s are not and I get the Tomcat default Internal Server error displayed, which isn't nice for my users.

I can't understand why the 404 works and 500 doesn't. Should the type of error that is coming back, e.g. an undefined variable or NullPointerException affect the error page I've chosen being displayed? If it's a NullPointerException that's a runtime error, but an undefined variable is a compile time error does this affect the redirection to the error page I've added?

I hope I'm not missing something basic because all examples, FAQs and other sites I've visited show that I'm doing the right thing and the fact that the 404 works further proves that. Any help is greatly appreciated.

Ian

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Custom Error 500 Page Is Not Displayed

Posted by Tomislav Miladinovic <tm...@rogers.com>.
Hi Ian,

I am pretty new in this area so I can't help with your question but if you don't mind I have question for you. I recently installed Tomcat 4.1.12 and at startup I am getting error you are talking about.

The page cannot be displayed

HTTP 500 - Internal server error 
Internet Explorer 

So, I am not able to see Tomcat home page. If you can help or give me some clue/idea I will appreciate that.

Thanks,
Tomislav
 

----- Original Message ----- 
From: <ia...@blueyonder.co.uk>
To: Tomcat Users List <to...@jakarta.apache.org>
Sent: Monday, December 09, 2002 6:04 AM
Subject: Custom Error 500 Page Is Not Displayed


Hi,

I have an installation of Tomcat 4.0.6 running on Win 2k Advanced Server, JDK 1.3.1_01 using IIS 5.0 as web server. I have set-up custom error pages in web.xml for both 404 and 500 to display helpful messages relevant to the application I've built. Any 404s are nicely displayed using the 404 error page defined in web.xml, but any 500s are not and I get the Tomcat default Internal Server error displayed, which isn't nice for my users.

I can't understand why the 404 works and 500 doesn't. Should the type of error that is coming back, e.g. an undefined variable or NullPointerException affect the error page I've chosen being displayed? If it's a NullPointerException that's a runtime error, but an undefined variable is a compile time error does this affect the redirection to the error page I've added?

I hope I'm not missing something basic because all examples, FAQs and other sites I've visited show that I'm doing the right thing and the fact that the 404 works further proves that. Any help is greatly appreciated.

Ian

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>