0 Replies Latest reply on Nov 15, 2013 6:52 AM by Bhushan Pathak

    Hide jboss version in error page [jboss as 6.1.0 final]

    Bhushan Pathak Newbie

      Hello,

       

      I have deployed a few apps in jboss 6.1.0 final. Whenever someone tries to access a page that does not exist, a 404 error page is displayed by JBOSS. The jboss version details are displayed in the title bar as well as on the page [JBoss Web/3.0.0-CR2]. How do I hide this version from being displayed?

       

      Is there some way to display a simple HTML error page that I have designed? I tried adding the following in jbossweb.sar/web.xml, but that did not work -

      <error-page>

              <error-code>404</error-code>

              <location>/appWeb/faces/pages/MyErrorPage.html</location>

        </error-page>

       

      Any help is appreciated.

       

      Thanks

      Bhushan Pathak