2 Replies Latest reply on Apr 10, 2008 10:45 AM by Pete Muir

    Invalid redirects

    Priya M Newbie

      Deployed a sample app on JBOSS 4.2 successfully (no errors). My index.jsp is a basic redirect to index.seam



      <% response.sendRedirect("index.seam"); %>



      I get the following error: -
      Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
      This problem can sometimes be caused by disabling or refusing to accept cookies.


      I do not have a pages.xml and my web.xml is the same one as Booking example with servlet filter configured, servlet mapping of faces servlet as star dot seam


      I tried to see live http headers for a possible invalid redirect and this is what I get around 10 of these : -



      "http://localhost:8080/evg-asr-web/debug.seam?cid=2"





      Any ideas?

        • 1. Re: Invalid redirects
          Priya M Newbie

          I got this error on server logs


          [Contexts] starting up: org.jboss.seam.web.session
          14:28:45,350 INFO  [Contexts] starting up: org.jboss.seam.security.identity
          14:28:45,709 ERROR [SeamPhaseListener] uncaught exception
          java.lang.IllegalStateException: Could not start transaction
          



          and I changed components.xml from having


          <transaction:ejb-transaction/>



          to


          <persistence:managed-persistence-context name="entityManager"
          persistence-unit-jndi-name="java:/EntityManagerFactories/myDatasource" />



          and it works now.


          I'm not sure what the reason is, doesn't look right to me.
          Any technical info on this?




          • 2. Re: Invalid redirects
            Pete Muir Master

            Post the full error. Normally transaction problems point to an earlier (perhaps unlogged) problem rendering the view.