Thank you for the reply.
We use compile time aspectj.
I do not want to use runtime weaving in the app or override existing jar class files.  This is a project decision and not my own. 
 
I do not need the aspect however as I made a wrapper class as follows (just the highlights):
public class GrantiumFacesServlet implements Servlet{//no extends as FacesServlet is final
    private final Servlet FACES_SERVLET = new FacesServlet(); 
     public void init(ServletConfig sc) throws ServletException
     {
          FACES_SERVLET.init(sc);
     }
 
    etc. . .
public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException
 {
  
  try
  {
   FACES_SERVLET.service( request, response );
  }
  catch( Throwable t )
  {
//email
//throw
}
}
 
 
My web.xml looks like the following:

<servlet>

<servlet-name>Faces Servlet</servlet-name>

<servlet-class>package.GrantiumFacesServlet</servlet-class>

<load-on-startup>0</load-on-startup>

</servlet>

I am also (mentioned before) using org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl to render struts tiles.  I think that perhaps there is an issue with this.  We tried and tried to get ADF to play nice with the JspTilesViewHandlerImpl, but to no avail.
 
Thanks for the reply,
Rhys
-----Original Message-----
From: Mert Çaliskan [mailto:[EMAIL PROTECTED]
Sent: April 25, 2006 4:00 PM
To: MyFaces Discussion
Subject: Re: Problems displaying error pages in jsf

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

http://jroller.com/page/cenkcivici?entry=p_during_the_past_two

Regards,

Mert.


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

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


All,

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;

Reply via email to