3 Replies Latest reply on Jan 10, 2009 8:06 AM by Indu Sukumar

    Seam exception handler and facelets stack print

    Al Nik Newbie

      Hi all,
      I registered a seam exception handler in pages.xml for a specific exception.
      It works fine. The problem I have is with facelets. When in my xhtml page I access a bean method that throws this exception, the exc. is correctly handled by seam but the stacktrace is printed on stError. How can I solve this prob.?
      thankss ;)

        • 1. Re: Seam exception handler and facelets stack print
          Al Nik Newbie

          The exception is correctly catched by seam
          I've set the 'facelets.DEVELOPMENT' to 'false' in the web.xml but facelets is still logging the exception through 'handleRenderException'. Is this problem seam related? thanks

          • 2. Re: Seam exception handler and facelets stack print
            Al Nik Newbie

            going through facelets src .. the prob is that facelets log all the SEVERE errors

            • 3. Re: Seam exception handler and facelets stack print
              Indu Sukumar Newbie
              i have turned off facelets.DEVELOPMENT
              i have made debug mode to false in components.xml
              i have configured my specific exceptions in pages.xml as
              <exception class="org.jboss.seam.security.NotLoggedInException">
                      <redirect view-id="/login.xhtml">
                          <message>Please log in first</message>
                      </redirect>
                  </exception>
                 
                  <exception>
                   <redirect view-id="/error/error.xhtml">
                       <message>#{org.jboss.seam.handledException.message}</message>
                   </redirect>
                      </exception>
                 
                   <exception class="com.ge.health.bbt.session">
                    <redirect view-id="/error/error.xhtml">
                       <message>Exception Occured</message>
                    </redirect>
                 </exception>

              and redirected to error page in exception class
              as @ redirect annotation
              @Redirect(viewId="/error.xhtml", end=true)
              @ApplicationException(rollback=true)

              it works fine but its not redirecting to error page

              can anyone help me on this???????