Is there a more efficent way to get the web.xml to point to an common error
page for all errors?

I currently have in web.xml

<!-- Error pages for different reasons -->
  <error-page>
    <error-code>400</error-code>
    <location>/errorpage/error.jsp</location>
  </error-page>
  <error-page>
    <error-code>401</error-code>
    <location>/errorpage/error.jsp</location>
  </error-page>
  <error-page>
    <error-code>403</error-code>
    <location>/aura4d/security/logon/jsp/noAccess.jsp</location>
  </error-page>
  <error-page>
    <error-code>404</error-code>
    <location>/errorpage/error.jsp</location>
  </error-page>
  <error-page>
    <error-code>405</error-code>
    <location>/errorpage/error.jsp</location>
  </error-page>
  <error-page>
    <error-code>409</error-code>
    <location>/errorpage/error.jsp</location>
  </error-page>
  <error-page>
    <error-code>412</error-code>
    <location>/errorpage/error.jsp</location>
  </error-page>
  <error-page>
    <error-code>413</error-code>
    <location>/errorpage/error.jsp</location>
  </error-page>
  <error-page>
    <error-code>415</error-code>
    <location>/errorpage/error.jsp</location>
  </error-page>
  <error-page>
    <error-code>500</error-code>
    <location>/errorpage/error.jsp</location>
  </error-page>
  <error-page>
    <error-code>501</error-code>
    <location>/errorpage/error.jsp</location>
  </error-page>
  <error-page>
    <error-code>502</error-code>
    <location>/errorpage/error.jsp</location>
  </error-page>
  <error-page>
    <error-code>503</error-code>
    <location>/errorpage/error.jsp</location>
  </error-page>
  <error-page>
    <exception-type>java.lang.Throwable</exception-type>
    <location>/errorpage/error.jsp</location>
  </error-page>

I tried a wildcard for a default but that didn't work
  <!-- Error pages for different reasons -->
  <error-page>
    <error-code>403</error-code>
    <location>/aura4d/security/logon/jsp/noAccess.jsp</location>
  </error-page>
  <error-page>
    <exception-type>java.lang.Throwable</exception-type>
    <location>/errorpage/error.jsp</location>
  </error-page>
  <error-page>
    <error-code>*</error-code>
    <location>/errorpage/error.jsp</location>
  </error-page> 

The problem i have is that our users  keep seeing the default 'Tomcat' error
page, and keep reporting 'Tomcat' errors, of course Tomcat is fine, its
normally the application or the end user that is the problem, so i don't
want any scenarios to bring up the tomcat error page.

PS: I'm currently using Tomcat 4.0.6

Thanx

PaulE

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to