5 Replies Latest reply on Aug 16, 2007 5:32 AM by Pete Muir

    Exception Handling Error -> redirect URL is wrong

    Martin Kuhn Newbie


      I've a problem with redirection after an Exception. (Seam 2 CVS )

      When an exception occurs, e.g. javax.persistence.OptimisticLockException, and the active URL is e.g.
      http://localhost:8080/hcare/resident/residentDetail.seam than the redirection URL is wrong --> http://localhost:8080/hcare/resident/residentDetail.seam/error.xhtml?cid=35
      and not http://localhost:8080/hcare/error.xhtml as I would expect.

      My definition in pages.xml

      <exception class="javax.persistence.OptimisticLockException">
       <redirect view-id="/error.xhtml">
       <message>Another user changed the same data, please try again</message>

      Could anybody give me a hint what's wrong?