This content has been marked as final.
Show 1 reply
-
1. Re: Hiding the Jboss version in JBoss 6.x
ptyagi_redhat.com Jun 7, 2017 6:57 AM (in response to devanathanvasu)You can configure and deploy custom error pages with the application to handle all the different error response codes. It can be done like below:
1) Add
<error-page>
setting inWEB-INF/web.xml
of your web application:<error-page>
<error-code>404</error-code>
<location>/error/404.html</location>
</error-page>2) Bundle the specified error pages in your web application:
test.war
|
| |- WEB-INF
| |
| |- web.xml
| |- jboss-web.xml
|
|- error
|- 404.html