3 Replies Latest reply on Jun 10, 2008 8:28 PM by gena

    javax.faces.application.ViewExpiredException redirects to debug

    vikram.vikram.chhetry.gmail.com

      Hi All,


      In my seam application javax.faces.application.ViewExpiredException redirects the user to debug.seam page.


      Pages.xml



              <exception
                      class="org.jboss.seam.framework.EntityNotFoundException">
                      <redirect view-id="/error.xhtml">
                              <message>Not found</message>
                      </redirect>
              </exception>
      
              <exception class="javax.persistence.EntityNotFoundException">
                      <redirect view-id="/error.xhtml">
                              <message>Not found</message>
                      </redirect>
              </exception>
      
              <exception class="javax.persistence.OptimisticLockException">
                      <end-conversation />
                      <redirect view-id="/error.xhtml">
                              <message>
                                      Another user changed the same data, please try again
                              </message>
                      </redirect>
              </exception>
      
              <exception class="org.jboss.seam.security.AuthorizationException">
                      <redirect view-id="/error.xhtml">
                              <message>You don't have permission to do this</message>
                      </redirect>
              </exception>
      
              <exception class="org.jboss.seam.security.NotLoggedInException">
                      <redirect view-id="/login.xhtml">
                              <message>Please log in first</message>
                      </redirect>
              </exception>
      
              <exception class="javax.faces.application.ViewExpiredException">
                      <redirect view-id="/login.xhtml">
                              <message>
                                      Your session has timed out, please try again
                              </message>
                      </redirect>
              </exception>
      
              <exception>
                      <redirect view-id="/error.xhtml">
                              <message>Unexpected error, please try again</message>
                      </redirect>
              </exception>
      



      Does anyone have any idea about this?
      Any help would be appriciated.


      Thanks in advance,
      VIkram