2 Replies Latest reply on Dec 31, 2007 5:14 PM by Javid Jamae

    Flex + Seam example not working

    Javid Jamae Newbie

      I tried to get the Flex + Seam example from the wiki working, using the instructions they give:

      1. extract files to the SEAM-HOME/examples/remoting/helloworld/view dir
      2. run ant
      3. deploy seam-helloworld.ear
      4. Open a browser and go to http://localhost:8080/seam-helloworld/flexhelloworld.html


      I followed these steps exactly using JBoss Seam 2.0.0.GA and JBoss AS 4.2.2.GA. When I pull up the URL, the JBoss console gives me the following, and the client side does nothing when I try to interact with it:

      java.lang.IllegalStateException: Cannot create a session after the response has been committed
       at org.apache.catalina.connector.Request.doGetSession(Request.java:2301)
       at org.apache.catalina.connector.Request.getSession(Request.java:2075)
       at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.
      java:833)
       at org.jboss.seam.servlet.ServletRequestSessionMap.put(ServletRequestSes
      sionMap.java:87)
       at org.jboss.seam.servlet.ServletRequestSessionMap.put(ServletRequestSes
      sionMap.java:25)
       at org.jboss.seam.contexts.BasicContext.set(BasicContext.java:80)
       at org.jboss.seam.Component.newInstance(Component.java:1967)
       at org.jboss.seam.Component.getInstance(Component.java:1865)
       at org.jboss.seam.Component.getInstance(Component.java:1844)
       at org.jboss.seam.Component.getInstance(Component.java:1821)
       at org.jboss.seam.web.Session.getInstance(Session.java:122)
       at org.jboss.seam.contexts.ServletLifecycle.endRequest(ServletLifecycle.
      java:57)
       at org.jboss.seam.remoting.Remoting.initConfig(Remoting.java:95)
       at org.jboss.seam.remoting.Remoting.appendConfig(Remoting.java:153)
       at org.jboss.seam.remoting.Remoting.getResource(Remoting.java:128)
       at org.jboss.seam.servlet.SeamResourceServlet.doGet(SeamResourceServlet.
      java:69)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
      .java:83)
       at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
      .java:69)
       at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
      .java:69)
       at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
      .java:69)
       at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
      .java:69)
       at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:230)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:175)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:179)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:84)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:127)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:102)
       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
      onnectionValve.java:157)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:262)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ss(Http11Protocol.java:583)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
      6)
       at java.lang.Thread.run(Thread.java:595)
      


      Any ideas?