users@glassfish.java.net

Re: Defining Error pages

From: <glassfish_at_javadesktop.org>
Date: Thu, 18 Oct 2007 14:17:52 PDT

See

  http://forums.java.net/jive/thread.jspa?messageID=230604

and SRV 9.9.2:

--------------------------------------------------------------------------------------------------------------
  The Web application may have declared error pages using the
  exception-type element. [...]
  If no error-page declaration containing an exception-type fits using
  the class-hierarchy match, and the exception thrown is a
  ServletException or subclass thereof, the container extracts the
  wrapped exception, as defined by the ServletException.getRootCause
  method. A second pass is made over the error page declarations, again
  attempting the match against the error page declarations, but using
  the wrapped exception instead.
--------------------------------------------------------------------------------------------------------------

Can you please check the nesting level (inside ServletException, or subclass thereof) of the exception you have specified in the <exception-type> element of your web.xml?


Jan
[Message sent by forum member 'jluehe' (jluehe)]

http://forums.java.net/jive/thread.jspa?messageID=241048