How to customize JBoss AS7 404 page

Posted by user23308 on Stack Overflow See other posts from Stack Overflow or by user23308
Published on 2012-11-20T15:05:20Z Indexed on 2012/11/20 23:01 UTC
Read the original article Hit count: 187

Filed under:
|

I already created a custom 404 page inside my web app deployed in JBoss AS 7.1. So if my app is at fubar dot com :8080/Myapp and I go to fubar dot com :8080/Myapp/xyzzy, I get the custom error page (defined in the web app's web.xml file).

However, when I go to fubar dot com :8080/xyzzy, JBoss displays the default 404 page which discloses that it's JBoss and which JBoss version.

I need to replace this page in order to hide this information.

Please advise.

© Stack Overflow or respective owner

Related posts about jboss

Related posts about http-status-code-404