Bug 1155686 - Tomcat7 sessionsList.jsp does not work
Summary: Tomcat7 sessionsList.jsp does not work
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: JBoss Enterprise Web Server 2
Classification: JBoss
Component: tomcat7
Version: 2.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: CR01
: 3.0.0
Assignee: David Knox
QA Contact: fgoldefu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-22 15:51 UTC by Aaron Ogburn
Modified: 2018-12-09 18:56 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
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.
Clone Of:
Environment:
Last Closed: 2015-08-20 06:22:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
diff.out (1.06 KB, patch)
2014-10-22 15:54 UTC, Aaron Ogburn
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JWS-128 0 Major Closed Tomcat sessionsList.jsp does not work 2017-07-27 08:28:29 UTC

Description Aaron Ogburn 2014-10-22 15:51:04 UTC
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:

Comment 1 Aaron Ogburn 2014-10-22 15:54:49 UTC
Created attachment 949451 [details]
diff.out

Looks like a simple fix to remove DeltaSession.  Attached a diff.

Comment 2 Libor Fuka 2015-04-03 11:14:20 UTC
This is still problem for JWS3.0 ER2.1 Tomcat7/8.

Comment 3 Libor Fuka 2015-04-03 11:15:41 UTC
Please fix it for JWS3.0

Comment 4 Libor Fuka 2015-04-23 07:03:53 UTC
This issue is present also in JWS 3.0 Tomcat8. Please extend rel notes text.

Comment 5 Lucas Costi 2015-04-23 22:46:42 UTC
Ok, release note text amended.

Comment 7 Michal Karm Babacek 2015-08-20 06:22:54 UTC
See JWS-128

Comment 9 JBoss JIRA Server 2015-10-09 12:55:34 UTC
David Knox <dknox> updated the status of jira JWS-128 to Resolved

Comment 10 JBoss JIRA Server 2015-12-11 10:39:33 UTC
Michal Karm Babacek <mbabacek> updated the status of jira JWS-128 to Resolved

Comment 11 JBoss JIRA Server 2015-12-17 17:39:54 UTC
Michal Karm Babacek <mbabacek> updated the status of jira JWS-128 to Closed


Note You need to log in before you can comment on or make changes to this bug.