0 Replies Latest reply on May 31, 2007 4:52 AM by Zalder R

    problem using seam exception handling mecanism

    Zalder R Newbie

      I'm having trouble using the seam handling mecanism (using seam 1.2.1) :

      I've added this in pages.xml

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


      I did set <core:init debug="false" jndi-pattern="@jndiPattern@" /> in components.xml and <param-name>facelets.DEVELOPMENT</param-name><param-value>false</param-value> in web.xml

      If i manually throw an exception in my code, the page just gets reloaded (no redirect) and a face message "Transaction failed" is set ....

      If I try to create (and the throw) a custom exception like this :
      @Redirect(viewId="/error.xhtml", end=true)
      @ApplicationException(rollback=true)
      public class MyException extends RuntimeException {


      I get the exact same behaviour : no redirect, only the "Transaction failed" faces message.

      I'm pretty sure the exceptionFilter is on because I have this in my log on application start :
      10:35:13,297 INFO [SeamFilter] Initializing filter: org.jboss.seam.servlet.multipartFilter
      10:35:13,297 INFO [SeamFilter] Initializing filter: org.jboss.seam.servlet.contextFilter
      10:35:13,297 INFO [SeamFilter] Initializing filter: org.jboss.seam.servlet.exceptionFilter
      10:35:13,297 INFO [SeamFilter] Initializing filter: org.jboss.seam.servlet.redirectFilter


      Can anyone give me a hint a what could be wrong ?