How to change 404 error page at server level in JBoss
(Last modified: 22Feb2005)
This document (10096680) is provided subject to the disclaimer at the end of this document.
goal
How to change 404 error page at server level in JBoss
fact
Jboss Application server 4.0.1
fix
2. Add your error-page tag (note the slash before foo.html):
<error-page>
<error-code>404</error-code>
<location>/foo.html</location>
</error-page>
3. Place your foo.html file in /jboss-4.0.1/server/default/deploy/jbossweb-tomcat50.sar/ROOT.war
note
Any URL that does not have an application context will be handled by the ROOT.war. You will still need to set up error-page tags in your application for bad URLs that do map to a valid application context
document
Document Title: | How to change 404 error page at server level in JBoss |
Document ID: | 10096680 |
Solution ID: | NOVL101090 |
Creation Date: | 16Feb2005 |
Modified Date: | 22Feb2005 |
Novell Product Class: | exteNd |
disclaimer
The Origin of this information may be internal or external to Novell. Novell makes all reasonable efforts to verify this information. However, the information provided in this document is for your information only. Novell makes no explicit or implied claims to the validity of this information.
Any trademarks referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark information.