0 Replies Latest reply on Jun 20, 2005 10:46 AM by hoowahman

    custom error-page redirection not working using exception-ty

    hoowahman

      I am using jboss 3.2.3, tomcat 4.1.29, apache 2.0.54 with mod_jk 1.2.8 and when redirecting to a custom error page. They all work fine when directly connecting to tomcat on port 8080. However when connecting through apache the error page that should come up associated to exception-type does not come up. The error-code custom pages do though. Why is this exception type being treated differently and how can I get this to work?

      Here is part of my web.xml config.

      <error-page>
       <exception-type>java.lang.Object</exception-type>
       <location>/commonweb/error/errorRedirect.jsp?code=-1</location>
       </error-page>
      
       <error-page>
       <error-code>404</error-code>
       <location>/commonweb/error/errorRedirect.jsp?code=404</location>
       </error-page>
      
       <error-page>
       <error-code>500</error-code>
       <location>/commonweb/error/errorRedirect.jsp?code=500</location>
       </error-page>
      


      Thanks,
      Steve