-
1. Re: Custom 404 in web.xml not working
treespace Oct 12, 2005 8:09 PM (in response to treespace)Sorry, forgot to type in the location tag in my original post. This is what is in my web.xml but the custom error page is not displayed. I get the same old 404 error page you always get from Tomcat.
<error-page>
<error-code>404</error-code>
/NotFound.jsp
</error-page> -
2. Re: Custom 404 in web.xml not working
treespace Oct 12, 2005 8:10 PM (in response to treespace)What the heck? My location tag is evaporating. Just assume that /NotFound.jsp is wrapped in an open and closing location tag.
-
3. Re: Custom 404 in web.xml not working
brian.stansberry Oct 12, 2005 8:17 PM (in response to treespace)I was going to reply to you with a suggestion to add the location tag, but then realized it was stripped from my reply, and figured the same had been done to you :)
-
4. Re: Custom 404 in web.xml not working
brian.stansberry Oct 12, 2005 9:03 PM (in response to treespace)Hmmm. Works for me. My test app's not in an ear, but I don't see how that could matter.
-
5. Re: Custom 404 in web.xml not working
treespace Oct 12, 2005 9:55 PM (in response to treespace)Just created test.war with on hello world page and a web.xml containing the error-page elements. The error page is in the root of the war. No impact. It does not display my custom error page. Thanks for trying it. I will poke around some more and see what gives.
-
6. Re: Custom 404 in web.xml not working
treespace Oct 12, 2005 10:28 PM (in response to treespace)There is an error in my error page! Tomcat cannot display the custom error page so it coughs up the default hairball instead.
-
7. Re: Custom 404 in web.xml not working
treespace Oct 13, 2005 6:44 AM (in response to treespace)Microsoft will not display error pages less than 512 bytes based on some asinine "friendly message" rule. So even after fixing the error on the error page IE still failed but FF worked fine. Increased the response size with an image to solve the problem.