2 Replies Latest reply on Mar 2, 2010 8:46 AM by Fredrik Albihn

    The page isn't redirecting properly (FireFox)

    alex soto Newbie


      I have a problem where Firefox produces this error:

      Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

      1-My main page does not require a user to be logged-in.

      2-A second page requires the user to be logged in.
      3-Navigating from the first page to the second produces the above error.

      If I add login-required=true  to the first page, then the login page displays before any other page as expected. But this is not what I want.

      Please help.

      Thank you,
      Alex Soto

        • 1. Re: The page isn't redirecting properly (FireFox)
          alex soto Newbie


          I figure I may need to provide more info about my problem :)

          This is may pages.xml file

          <?xml version="1.0" encoding="UTF-8"?>
          <pages xmlns="http://jboss.com/products/seam/pages"
                 xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.0.xsd"
            <page view-id="/*" scheme="http" >
            <page view-id="/login.xhtml" scheme="https">
            <page view-id="/index.xhtml">
              <begin-conversation join="true" pageflow="mainNavigation"/>
            <page view-id="/affiliate/list.xhtml" login-required="true">

          Here is my mainNavigation.jpdl.xml file

          <pageflow-definition xmlns="http://jboss.com/products/seam/pageflow"
               xsi:schemaLocation="http://jboss.com/products/seam/pageflow http://jboss.com/products/seam/pageflow-2.0.xsd"
            <start-page name="main" view-id="/index.xhtml">
              <transition name="affiliates" to="affiliates"/>
            <page name="affiliates" view-id="/affiliate/list.xhtml">
              <transition name="edit" to="edit" />
              <transition name="comissions" to="commissions" />
              <transition name="done" to="main">
                <action expression="conversation.end"></action>
            <page name="edit" view-id="/affiliate/edit.xhtml">
              <transition name="done" to="affiliates">
                <action expression="#{affiliateEdit.submit}" />
              <transition name="cancel" to="affiliates" />

          My index.xhtml page has a button like this:

          <h:commandButton action="affiliates" value="Affiliates..."/>

          When I click on the Affiliates button, the login page should display. Instead, Firefox complains that the page is not redirecting properly. IE does not provide any error message but fails to load the page as well.

          Any idea on what I'm doing wrong?
          This seems pretty bassic, yet without this I cannot adopt Seam for our project.


          Alex Soto

          • 2. Re: The page isn't redirecting properly (FireFox)
            Fredrik Albihn Newbie

            Know this is a old thread. But I had a similar problem. I solved it by starting Jboss with -b