5 Replies Latest reply on Oct 1, 2009 6:45 AM by asaf zinger

    using error-page in web.xml for custom error page

    asaf zinger Newbie

      I'm trying to create custom error page for my application to 500 errors, so I added these lines to my application web.xml file:
      <error-page>
      <error-code>500</error-code>
      /pages/error.html
      </error-page>

      I tested it by throwing custom exception from my ejb code (I'm using jsf+ejb)This does not do anything and I still see jboss error page.

      I tried to change the web.xml in the deployers directory and in the deploy/ROOT.war but still see the same error page.

      How can I make my custom page to be uploaded in such a case?