1 Reply Latest reply on Oct 6, 2003 2:32 PM by ttanimal

    IllegalStateException: Cannot create a session after the res

    ttanimal

      I'm getting:

      19:36:19,750 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.java:1884)
      at org.apache.coyote.tomcat4.CoyoteRequest.getSession(CoyoteRequest.java:1731)
      at org.apache.coyote.tomcat4.CoyoteRequestFacade.getSession(CoyoteRequestFacade.java:365)
      at org.apache.coyote.tomcat4.CoyoteRequestFacade.getSession(CoyoteRequestFacade.java:375)
      at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.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(JspFactoryImpl.java:175)
      at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:154)
      at org.apache.jsp.MainNav_jsp._jspService(MainNav_jsp.java:44)




      44: pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true);


      Why is this? This used to work with a previous version of JBOSS.

        • 1. Re: IllegalStateException: Cannot create a session after the
          ttanimal

          It's in a JSP which is included from a main, "controller" JSP if that helps.

          I think it's something to do with commiting the output stream, but I can't work out why it's happening.

          Two other JSPs are included before that, a corporate header, and an application header before this navigation bar JSP is included to add the... navigation bar!