Yes, I consider tomcat to be broken, in this regard.
But I make it .jsp and it works fine.
Also, if you have virtual hosts, this hangs (as opposed to a loop),
so I just made an default context to one of the virtual hosts, so it would
pick up the WEB-INF/web.xml... probably causes some other issues, but
fixes this problem.
This means I have apache have ErrorDocument 500 and 404 that are .html
not jsp, since apache handles recursive errors with a builtin string,
so I have two copyies of my 404 html page...
Also, as a note, I strongly recommend against ajp13 as I've run into
issues. Will post more when I'm on the other side of the launch.
Kenneth Topp
---
to unsubscribe: [EMAIL PROTECTED]
for more info: http://jakarta.apache.org/getinvolved/mail.html
On Tue, 31 Oct 2000, Amrhein, Thomas wrote:
> Hi,
>
> I want to do the same.
>
> Belong the Servlet-Spec 2.2 we have to edit web.xml like this:
>
> ...
> <web-app>
> ...
> <error-page>
> <error-code>404</error-code>
> <location>/404.html</location>
> </error-page>
> </web-app>
>
> But my tomcat hangs in an endless loop. He does not find 404.html. In my
> system it's
> located in path_to_web_app/404.html
> Do you know where it has to be located?
> How does your system behave? I use Tomcat 3.2beta5 under NT.
>
> regards
>
> Thomas
>
>
> -----Ursprüngliche Nachricht-----
> Von: Fredrik Stenberg [mailto:[EMAIL PROTECTED]]
> Gesendet am: Dienstag, 31. Oktober 2000 11:04
> An: '[EMAIL PROTECTED]'
> Betreff: Custom Error Document
>
> Is it possible to redirect to a custom error page when recieving an Error
> 500 from Tomcat?
>
> Eg. something equal to Apache's ErrorDocument directive.
>
> /Fred
>