1 Reply Latest reply on May 17, 2012 3:14 PM by Diego Silveira

    JBoss AS 7.0.1 global custom error-page

    Luboš Šmída Newbie



      is there any possible way how to configure custom error page on the JBoss AS 7.0.1, if the application is down, or JBoss is configrured wrongly? I would like to show my custom error page for example for 500 or 503 error codes. If the application is deployed on the server, it can handle 404 or 500 errror codes via spring or error-page in web.xml. But how to handle and display custom error page if the application is down?


      Some solutions advice to use Apache on the frotend, which will forward request to Jboss and then handle error codes. So Apache will display the custom error-page. It is discussed for example here: https://community.jboss.org/message/637981?tstart=0


      Other solution is to write some own extension to JBoss AS 7, it looks quite complicated and i am not sure if it is possible - it is mentioned here: https://community.jboss.org/message/714334


      There was "global" web.xml file in older versions of the JBoss, where the custom error-pages could be configured for the whole server. Is there really no way in JBoss 7 to use some simple solution to solve such common issue?


      Thank in advance, Lubos