1 Reply Latest reply on Jun 7, 2017 6:57 AM by ptyagi_redhat.com

    Hiding the Jboss version in JBoss 6.x

    devanathanvasu

      When I encounter an error for my application deployed in JBoss 6.x, the default Jboss error page is displayed which contains the version number as well. How to avoid the version number from being displayed?

       

      Thanks in advance!

       

      Jboss_ScreenShot.JPG

        • 1. Re: Hiding the Jboss version in JBoss 6.x
          ptyagi_redhat.com

          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 in WEB-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