Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-128

Tomcat sessionsList.jsp does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JWS 3.0.2 DR3
    • JWS 3.0.0 GA, JWS 3.0.1 DR1, JWS 3.0.1 ER1
    • tomcat7, tomcat8
    • None
    • Release Notes
    • Hide
      This release of JBoss Web Server contains an issue with `sessionsList.jsp` in Tomcat 7 and 8. An error similar to the following is thrown during compile:

      ----
      An error occurred at line: [18] in the generated java file: [/usr/share/tomcat7/work/Catalina/localhost/manager/org/apache/jsp/WEB_002dINF/jsp/sessionsList_jsp.java]
      Only a type can be imported. org.apache.catalina.ha.session.DeltaSession resolves to a package

      An error occurred at line: 109 in the jsp file: /WEB-INF/jsp/sessionsList.jsp
      DeltaSession cannot be resolved to a type
      ----

      This error occurs because `sessionsList.jsp`
      has a dependency on the `DeltaSession` HA class.

      This issue is expected to be resolved in a future release of JBoss Web Server.
      Show
      This release of JBoss Web Server contains an issue with `sessionsList.jsp` in Tomcat 7 and 8. An error similar to the following is thrown during compile: ---- An error occurred at line: [18] in the generated java file: [/usr/share/tomcat7/work/Catalina/localhost/manager/org/apache/jsp/WEB_002dINF/jsp/sessionsList_jsp.java] Only a type can be imported. org.apache.catalina.ha.session.DeltaSession resolves to a package An error occurred at line: 109 in the jsp file: /WEB-INF/jsp/sessionsList.jsp DeltaSession cannot be resolved to a type ---- This error occurs because `sessionsList.jsp` has a dependency on the `DeltaSession` HA class. This issue is expected to be resolved in a future release of JBoss Web Server.
    • Documented as Resolved Issue

      Description of problem:

      Tomcat 7's sessionsList.jsp does not work since it still has a dependency on an ha class (DeltaSession), which we don't provide in EWS. We should ensure this is accounted for in EWS 3. It throws an error like the following:

      An error occurred at line: [18] in the generated java file: [/usr/share/tomcat7/work/Catalina/localhost/manager/org/apache/jsp/WEB_002dINF/jsp/sessionsList_jsp.java]
      Only a type can be imported. org.apache.catalina.ha.session.DeltaSession resolves to a package

      An error occurred at line: 109 in the jsp file: /WEB-INF/jsp/sessionsList.jsp
      DeltaSession cannot be resolved to a type
      106: Session currentSession = (Session) iter.next();
      107: String currentSessionId = JspHelper.escapeXml(currentSession.getId());
      108: String type;
      109: if (currentSession instanceof DeltaSession) {
      110: if (((DeltaSession) currentSession).isPrimarySession())

      { 111: type = "Primary"; 112: }

      else {

      Version-Release number of selected component (if applicable):

      7.0.54

      How reproducible:

      Always.

      Steps to Reproduce:
      1. Go to the manager app and click the sessions link for a web app

      Actual results:

      sessionsList.jsp fails and doesn't compile

      Expected results:

      sessionsList.jsp compiles and works

      Additional info:
      The same bug for EWS 2.1: https://bugzilla.redhat.com/show_bug.cgi?id=1155686

            rhn-support-csutherl Coty Sutherland
            lfuka Libor Fuka
            Bogdan Sikora Bogdan Sikora (Inactive)
            Lucas Costi Lucas Costi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: