ICEfaces
  1. ICEfaces
  2. ICE-1770

Reloading page after app. server restart on Tomcat 6 displays exception.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6DR#5
    • Fix Version/s: 1.7RC1, 1.7
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      Tomcat 6
    • Workaround Exists:
      Yes
    • Workaround Description:
      Restart the browser to view the application after a server restart.

      Description

      When using Tomcat 6 (Tomcat 5.x is okay) there appears to be a conflict between shutting down the app. server and the browser sending a ping/message. When you run the application it loads ok, shut down the server, no problems, but when you restart the server and try and reload the application page in the browser the following error is thrown in the browser, no errors in the server log:

      exception

      org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.ServletException: Session expired
      org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

      root cause

      javax.servlet.ServletException: javax.servlet.ServletException: Session expired
      com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:89)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:694)
      org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:665)
      org.apache.jsp.index_jsp._jspService(index_jsp.java:60)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

      root cause

      javax.servlet.ServletException: Session expired
      com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:38)
      com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
      com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
      com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:85)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:694)
      org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:665)
      org.apache.jsp.index_jsp._jspService(index_jsp.java:60)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

      This is a real issue at development time when you're likely to be redeploying the application and restarting the app. server numerous time. You don't want to have to restart the browser every time, a simple reload should suffice.

        Issue Links

          Activity

          Hide
          Mircea Toma added a comment -

          The core framework and components don't support persistent sessions, so Tomcat needs to have session persistency turned off when running ICEfaces.

          Show
          Mircea Toma added a comment - The core framework and components don't support persistent sessions, so Tomcat needs to have session persistency turned off when running ICEfaces.
          Hide
          Ken Fyten added a comment -

          Requires ICEfaces support for Session replication.

          Show
          Ken Fyten added a comment - Requires ICEfaces support for Session replication.
          Hide
          Philip Breau added a comment -

          This happens on 5.5, 5.0, whether or not session replication's been turned on.

          Show
          Philip Breau added a comment - This happens on 5.5, 5.0, whether or not session replication's been turned on.
          Hide
          Ken Fyten added a comment -

          Works fine with 1.7 beta1.

          Show
          Ken Fyten added a comment - Works fine with 1.7 beta1.

            People

            • Assignee:
              Unassigned
              Reporter:
              Ken Fyten
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: