0 Replies Latest reply on Oct 15, 2007 12:08 PM by Thomas Bauer

    Initial Request to SeamResourceServlet fails

    Thomas Bauer Newbie

      What am I doing wrong:


      18:05:06,602 ERROR [Remoting] Error
      java.lang.IllegalStateException: Cannot create a session after the response has been committed
       at org.apache.catalina.connector.Request.doGetSession(Request.java:2284)
       at org.apache.catalina.connector.Request.getSession(Request.java:2066)
       at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833)
       at org.jboss.seam.servlet.ServletRequestSessionMap.put(ServletRequestSessionMap.java:87)
       at org.jboss.seam.servlet.ServletRequestSessionMap.put(ServletRequestSessionMap.java:25)
       at org.jboss.seam.contexts.BasicContext.set(BasicContext.java:80)
       at org.jboss.seam.Component.newInstance(Component.java:1980)
       at org.jboss.seam.Component.getInstance(Component.java:1878)
       at org.jboss.seam.Component.getInstance(Component.java:1857)
       at org.jboss.seam.Component.getInstance(Component.java:1834)
       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(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Thread.java:637)
      18:05:06,686 INFO [Contexts] starting up: org.jboss.seam.security.identity
      18:05:06,692 INFO [Contexts] starting up: org.jboss.seam.web.session
      


      This occurs from the initial request to the SeamResourceServlet after deploying/starting an app.

      If I shift+reload the page in the browser or open the page with another browser (other session) everthing works fine.

      Thomas