8 Replies Latest reply on May 28, 2009 5:18 PM by Arbi Sookazian

    Exception fallback isn't caught

    Shervin Asgari Master

      I have tried scouring the forum for answers in regard to exception handling in seam, however very very few posts has been answered, but I will try my luck anyway,


      In production we have removed the seam-debug.jar file and we are running debug mode false.


      I pages.xml we have supposedly a fallback exception handler which will redirect to /error.xhtml page:


      <exception>
          <redirect view-id="/error.xhtml">
            <message severity="error">Unexpected error, please try again</message>
          </redirect>
       </exception>



      We have a page that results in an exception:


      javax.faces.FacesException: javax.el.ELException: /generic/generic-dialog.xhtml @20,76 rendered="#{templateHandler.needsAddress(attachment.hash)}": javax.ejb.EJBTransactionRolledbackException



      However when we encounter this exception we get An Error occurred page generated by Facelets instead of the redirect to /error.xhtml
      How come? How can we say that all exceptions should just be redirected to the /error.xhtml page?