3 Replies Latest reply on May 17, 2004 1:59 AM by psreddi

    Facing a Session problem after deploying my application

    psreddi Newbie

      Hi,

      I deployed my application on JBoss3.2.3 with Apache Tomcat4.1 and it happened successfully except for it throws a following Warning

      10:54:36,377 WARN [EmbeddedTomcatService] Unable to invoke setDelegate on class
      loader:org.jboss.web.tomcat.tc4.WebCtxLoader$ENCLoader@1d978ea


      I am getting the following exception when I'm trying to run my application.
      Please help me if you happened to have faced similar problem and solved it.

      Thanks in Advance.

      10:55:29,160 ERROR [Engine] JspFactoryImpl: Exception initializing page context
      java.lang.IllegalStateException: Cannot create a session after the response has
      been committed
      at org.apache.coyote.tomcat4.CoyoteRequest.doGetSession(CoyoteRequest.ja
      va:1878)
      at org.apache.coyote.tomcat4.CoyoteRequest.getSession(CoyoteRequest.java
      :1725)
      at org.apache.coyote.tomcat4.CoyoteRequestFacade.getSession(CoyoteReques
      tFacade.java:361)
      at org.apache.coyote.tomcat4.CoyoteRequestFacade.getSession(CoyoteReques
      tFacade.java:366)
      at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRe
      questWrapper.java:268)
      at org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl
      .java:138)
      at org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.
      java:114)
      at org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFa
      ctoryImpl.java:175)
      at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImp
      l.java:154)
      at org.apache.jsp.loginTemplate_jsp._jspService(loginTemplate_jsp.java:7
      2)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
      .java:204)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
      89)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
      atcher.java:684)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
      ispatcher.java:575)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
      patcher.java:498)
      at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary
      .java:820)
      at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.jav
      a:395)
      at org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:1
      45)
      at org.apache.jsp.login_jsp._jspService(login_jsp.java:112)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
      .java:204)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
      89)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:247)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:193)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:256)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
      t.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
      a:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:191)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
      t.invokeNext(StandardPipeline.java:643)
      at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecur
      ityMgrRealm.java:220)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
      t.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve
      .java:246)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
      t.invokeNext(StandardPipeline.java:641)
      at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(Contai
      nerStatsValve.java:76)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
      t.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
      a:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

      at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
      2417)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:180)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
      t.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
      rValve.java:171)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
      t.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:172)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
      t.invokeNext(StandardPipeline.java:641)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:65)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
      t.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
      577)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
      t.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
      a:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:174)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
      t.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
      a:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

      at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:19
      7)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :781)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ssConnection(Http11Protocol.java:549)
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
      :605)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
      ool.java:677)



      Thanks
      -Srinath

        • 1. Re: Facing a Session problem after deploying my application
          Juha Lindfors Master

          The setDelegate warning can be ignored and is not relevant (this is also a FAQ which I recommend reading).

          The second part says you're attempting to create a HTTP session after the response has been committed. Try moving your getSession() call earlier in the request processing.

          • 2. Re: Facing a Session problem after deploying my application
            psreddi Newbie

            My kind appreciations for your reply.

            If I deploy the same application application on JBoss3.0.0, The deploys happens successfully and the application also works fine.
            but when I'm trying to deploy the same application on JBoss3.2.3 with Apache Tomcat4.1, It throws the error I have mentioned earlier.

            I am not able to figure out the correct reason. Is it because of the Tomcat integration? or the deployment happens differently in JBoss3.2.3?
            Do I need to change any configuration files?

            looking forward for your reply.

            Thanks in advance
            -Srinath

            • 3. Re: Facing a Session problem after deploying my application
              psreddi Newbie

              My kind appreciations for your reply.

              If I deploy the same application application on JBoss3.0.0, The deploys happens successfully and the application also works fine.
              but when I'm trying to deploy the same application on JBoss3.2.3 with Apache Tomcat4.1, It throws the error I have mentioned earlier.

              I am not able to figure out the correct reason. Is it because of the Tomcat integration? or the deployment happens differently in JBoss3.2.3?
              Do I need to change any configuration files?

              looking forward for your reply.

              Thanks in advance
              -Srinath