Here is an aspect solution. A tricky way to extend FacesServlet..



On 4/25/06, Rhys Parry <> wrote:
Please ignore I hit send by accident.  i will send the entire message in a moment

-----Original Message-----
From: Rhys Parry []
Sent: April 25, 2006 1:39 PM
To: MyFaces Discussion
Subject: Problems displaying error pages in jsf


Many many problems.

First, what i wanted to do. . .

I set up a filter in web.xml to filter requests based on security.
I wrapped myfaces FacesServlet( as it is final ) because I wanted to trap the error and email the admin once an error has occured with the stack trace.
Once I email I just wrap the exception in a ServletException and throw it.

The code looks like the following;