2 Replies Latest reply on Feb 7, 2008 5:01 PM by Marcin Zajaczkowski

    How to easy change JBossWeb banner at the bottom of error pa

    Marcin Zajaczkowski Newbie

      Hi,

      I would like to remove servlet engine version displayed at the bottom of the default html error pages (like JBossWeb/2.0.1.GA). I wasn't able to found info how to do that using config files (like a change of X-Powered-By in web.xml) and I have to set custom error pages for every error using:
      <error-page>
      <error-code>404</error-code>
      /custom404.jsp
      </error-page>
      in global web.xml.

      But it is quite inconvenient, when you don't need to write customized error pages for your application.

      So two question:
      1. Is it possible to change "JBossWeb/2.0.1.GA" on error pages using some magic config file?
      2. If not, maybe there are default jsp files in some war, which could be easily changed (but it looks those pages are generated directly in code)?

      I'm using JBossWeb 2.0.1.GA embedded into Jboss 4.2.2.GA.

      Thanks for help
      Marcin