Re: servlet init error pages

2007-11-16 Thread Len Popp
Yes, your servlets are supposed to extend HttpServlet, not just implement the Servlet interface. I don't know if that's related to your problem. I'd say the next thing to look for is an error in your custom error page. That would cause the output you're seeing. Is your error page a JSP file? Try r

Re: servlet init error pages

2007-11-15 Thread Adam Parker
Thanks again for all the replies. Now time for some more details. Our app is running as the ROOT application. I removed everything else from ROOT and replaced it with our code. There is only one servlet running in this app, so if it fails no other apps or servlets are running. Tomcat is defini

Re: servlet init error pages

2007-11-14 Thread Len Popp
After some further messing about, I can't make custom error pages fail by throwing any sort of exception from a servlet's init() method. Even UnavailableException doesn't break the error page. The only time I lose my custom error pages is when the entire web app is down, not just the one servlet.

Re: servlet init error pages

2007-11-14 Thread Jacob Rhoden
Len Popp wrote: HTTP error 503 is "service unavailable", which means the servlet or web app is not running. Len is correct, this exception is usually thrown by apache httpd, not apache tomcat. Do you have an apache front end? If this is true you must configure the error page from within y

Re: servlet init error pages

2007-11-14 Thread Martin Gainty
p" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday, November 14, 2007 11:24 AM Subject: Re: servlet init error pages > HTTP error 503 is "service unavailable", which means the servlet or > web app is not running. There's a specific exception,

Re: servlet init error pages

2007-11-14 Thread Len Popp
HTTP error 503 is "service unavailable", which means the servlet or web app is not running. There's a specific exception, UnavailableException, that tells Tomcat to remove the servlet from service. Is your servlet throwing that exception? I've found that doesn't work with error 503 when the entir

Re: servlet init error pages

2007-11-13 Thread Adam Parker
Thanks for the reply, at least I know someone else has gotten it to work at this point. Sorry for the lack of information. I am on a deadline and trying to do too many things at once. I've included all the important things I can think of below. Tomcat Version: 5.5.17 Error type: I am seeing a

Re: servlet init error pages

2007-11-13 Thread Len Popp
I do get my custom error page when an error happens in a servlet init() method. But you didn't give many details about your problem, so I can't say whether you should be seeing custom error pages on your system. First of all, you didn't say what version of Tomcat you're using. If it's older than 5

servlet init error pages

2007-11-13 Thread Adam Parker
I am trying to override tomcat error pages, and I have tried various combinations of the element in both the global web.xml, and my application web.xml. Nothing is working. After some research I believe the problem is that the error I am looking at actually occurs in the servlet.init(config) cal