1 Reply Latest reply on Mar 18, 2011 8:55 AM by aeternitas

    JBoss 6, where to configurate custom 403 error page?

    aeternitas

      I'm using JBoss 6, my application is configurate to be used as root (I removed Root.war), and when user gets 403 error JBoss page is shown instead of mine. When I add in my web.xml appropriate settings like:

       

       

      <error-page>

        <error-code>403</error-code>

        <location>/WEB-INF/jsp/Error_Pages/error-403.html</location>

      </error-page>

       

       

      it does not work. I don't know why, because it is my filter which sets :

       

      httpResponse.setStatus( HttpServletResponse.SC_FORBIDDEN );
      

       

      I tried to find global web.xml file to configurate it there (although I'm not sure that I should do it there), no success as well... what's wrong? custom error page for 404 and other works well, but not for 403..