0 Replies Latest reply on Feb 28, 2012 12:29 AM by kamal_khadka


    kamal_khadka Newbie

      In pages.xml I have


      <exception class="javax.servlet.ServletException">

              <redirect view-id="/error.xhtml">



      and error.xhtml is as follow


      <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


      <ui:composition xmlns="http://www.w3.org/1999/xhtml"







      <ui:define name="body">





      <h:messages styleClass="message"/>       




      So if there is an error. Error page is shown which displays the detail of error. I want to automatically email this to me so I will be able to see what error the users are seeing. I was able to make it send email when error.xhtml is rendered. I want to catch the stackTrace when there is an error and get that emailed to me.


      My question is how would I be able to catch the error. I hope I am clear with my problem.