0 Replies Latest reply on May 11, 2010 2:08 PM by jensmander

    Custom error pages in JBoss 5.1

    jensmander

      Hi,

       

      I allready checkt this community-discussion right here (http://community.jboss.org/message/251775). But that does not solve my problem. We are using authentication via JBoss SX and I'd like to provide a system-wide errorpage for authentication errors (403). I added this:

       

       

       <error-page>
          <error-code>403</error-code>
          <localtion>/403.html</location>
       </error-page>
      

       

      to my "server/default/deployers/jbossweb.deployer/web.xml" file and put the 403.html file to "server/default/deploy/ROOT.war" but the only thing I get is a nice blank page. It seems that the server can't find my error page but where do I have to place it correctly? Additionally the JBoss In Action books says that I should not deploy the ROOT.war in production environments so what is the corrent location?

      Thanks a lot.

       

      Jens