2 Replies Latest reply on Sep 15, 2010 1:23 AM by darthmaul

    Request Never Ending

    darthmaul

      I have deployed Seam 2.2.0.GA on Tomcat 6, and when I make a request for a page I get the following in Chrome:


      The webpage at http://localhost:8080/myapp/debug.html?cid=64 has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.


      Here is my web.xml:




      <?xml version="1.0" encoding="UTF-8"?>
      <web-app version="2.5"
               xmlns="http://java.sun.com/xml/ns/javaee"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
          <!-- Seam -->
          <listener>
              <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
          </listener>
          <filter>
              <filter-name>Seam Filter</filter-name>
              <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
          </filter>
          <filter-mapping>
              <filter-name>Seam Filter</filter-name>
              <url-pattern>/*</url-pattern>
          </filter-mapping>
          <servlet>
              <servlet-name>Seam Resource Servlet</servlet-name>
              <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
          </servlet>
          <servlet-mapping>
              <servlet-name>Seam Resource Servlet</servlet-name>
              <url-pattern>/seam/resource/*</url-pattern>
          </servlet-mapping>
      
          <!-- Faces Servlet -->
      
          <servlet>
              <servlet-name>Faces Servlet</servlet-name>
              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
              <load-on-startup>1</load-on-startup>
          </servlet>
          <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>*.html</url-pattern>
          </servlet-mapping>
      
          <!-- JSF parameters -->
      
          <context-param>
              <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
              <param-value>.xhtml</param-value>
          </context-param>
          <context-param>
              <param-name>facelets.DEVELOPMENT</param-name>
              <param-value>true</param-value>
          </context-param>
          <session-config>
              <session-timeout>10</session-timeout>
          </session-config>
      </web-app>



      Here is web.xml:




      <?xml version="1.0" encoding="UTF-8"?>
      <pages xmlns="http://jboss.com/products/seam/pages"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.2.xsd"
             no-conversation-view-id="/welcome.xhtml">
      
      </pages>



      I am guessing it is a minor configuration problem. I would appreciate any help you can give me in solving this one.


      Thanks.







        • 1. Re: Request Never Ending
          darthmaul

          Incidentally, here are my JSF libraries


                  <dependency>
                      <groupId>javax.faces</groupId>
                      <artifactId>jsf-api</artifactId>
                      <version>1.2_13</version>
                  </dependency>
                  <dependency>
                      <groupId>javax.faces</groupId>
                      <artifactId>jsf-impl</artifactId>
                      <version>1.2_13</version>
                  </dependency>



          :


          Thanks.

          • 2. Re: Request Never Ending
            darthmaul

            Apparently things work just fine, at least so far as I can tell, until I package jboss-seam-debug in the war file. Weird, huh?