1 Reply Latest reply on Mar 7, 2003 7:42 AM by Bob

    Error pages no longer working

    Bob Newbie

      Hello, I've been developing an app on Tomcat with a local ejb and had my error pages working fine. We've now switched to JBoss and the ejb is now remote and my error pages no longer work.

      I've got the following in my web.xml file:

      <!-- Error page decleration -->
      <error-page>
      <exception-type>javax.servlet.ServletException</exception-type>
      /ErrorPage.jsp
      </error-page>
      <error-page>
      <exception-type>java.lang.NullPointerException</exception-type>
      /ErrorPage.jsp
      </error-page>
      <error-page>
      <exception-type>java.lang.IllegalStateException</exception-type>
      /ErrorPage.jsp
      </error-page>
      <error-page>
      <exception-type>500</exception-type>
      /ErrorPage.jsp
      </error-page>

      All I'm getting is the standard Internet Invader 500 Internal Error page and not my custom error page. Is there something special I have to do to get it wporking with JBoss (with Jetty)...?

      Cheers,

      Bob.

        • 1. Re: Error pages no longer working
          Bob Newbie

          Turns out it wasn't a problem... I hate Internet Invader with every bone in my body, why oh why, does the customer use it. Turnes out there's an option in IE to have "Friendly HTTP error messages", so if it's check it doesn't show yours, fantastic!