You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mark Thomas <ma...@apache.org> on 2016/02/18 17:41:59 UTC

Re: Session on Tomcat 7 manager screem

On 18/02/2016 16:28, Qadeer Khan wrote:
> Hey Guys,
> 
> Someone please throw some light as I am being asked about it several time now

Then maybe try reading the responses you received to your previous post
and answering the questions you were asked.

> There is are several running java applications deployed and running on tomcat server 7 but the 'session' field on the  Manager screen always show a '0". 

OK. So there aren't any sessions.

> So there are sessions running by users but no increment shown under 'session'

You need to provide some evidence to back up that statement. You have
been asked several times for this and still have not provided any. What
have you done to confirm that sessions are created?

> Please throw some light as why it is not increment and what can be done to fix it?

You have yet to demonstrate that there is anything to fix.

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Session on Tomcat 7 manager screem

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Qadeer,

On 2/18/16 12:03 PM, Qadeer Khan wrote:
> Ok I got a little more information the user

Get this, too: What exact version of Tomcat. 7.0.what?

> On clicking on the session number '0', he is getting the following
> error. Any idea?
> 
> FAIL - Encountered exception org.apache.jasper.JasperException:
> Unable to compile class for JSP:
> 
> An error occurred at line: [18] in the generated java file:
> [/opt/jboss/jws-3.0/tomcat7/work/Catalina/localhost/manager/org/apache
/jsp/WEB_002dINF/jsp/sessionsList_jsp.java]

Okay,
> 
so this is JBoss. Has Tomcat itself been modified at all? Or is
it a (mostly) stock Tomcat?

> 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 {
> 
> 
> An error occurred at line: 110 in the jsp file:
> /WEB-INF/jsp/sessionsList.jsp DeltaSession cannot be resolved to a
> type 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 { 113:                type =
> "Backup";

This suggests to me that something is broken in the Tomcat
installation itself (meaning that the customer - or you - have broken
something). Can you confirm that the manager web application matches
the Tomcat version you are running? If you copied the manager from
another Tomcat version, it might not work very well -- or at all.

Back to your original question:

> So there are sessions running by users but no increment shown
> under 'session'
> 
> Please throw some light as why it is not increment and what can be 
> done to fix it?

Why are you so sure that there are user sessions? Is some other
component telling you there *are* sessions? If so, which component is
telling you that there are sessions in memory?

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlbGGvUACgkQ9CaO5/Lv0PCpFQCfeqjXU92mDmfpuCXM3Rn7sDFR
0WIAn0wk2sFTWQU5j2VGWPJ1pvVlOAf6
=cWwW
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Session on Tomcat 7 manager screem

Posted by Qadeer Khan <qk...@redhat.com>.
Ok I got a little more information the user

On cllicking on the session number '0', he is getting the following error. Any idea?

FAIL - Encountered exception org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: [18] in the generated java file: [/opt/jboss/jws-3.0/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 {


An error occurred at line: 110 in the jsp file: /WEB-INF/jsp/sessionsList.jsp
DeltaSession cannot be resolved to a type
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 {
113:                type = "Backup";


Stacktrace:

Thanks
Original Message -----
From: "Mark Thomas" <ma...@apache.org>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Thursday, February 18, 2016 11:50:24 AM
Subject: Re: Session on Tomcat 7 manager screem

On 18/02/2016 16:45, Qadeer Khan wrote:
> Can you tell what a session definition is?

You are claiming there is a bug with session handling yet you don't know
what a session is? Oh dear.

Time for you to spend some time reading the Servlet specification.

Mark


> 
> 
> On 18/02/2016 16:28, Qadeer Khan wrote:
>> Hey Guys,
>>
>> Someone please throw some light as I am being asked about it several time now
> 
> Then maybe try reading the responses you received to your previous post
> and answering the questions you were asked.
> 
>> There is are several running java applications deployed and running on tomcat server 7 but the 'session' field on the  Manager screen always show a '0". 
> 
> OK. So there aren't any sessions.
> 
>> So there are sessions running by users but no increment shown under 'session'
> 
> You need to provide some evidence to back up that statement. You have
> been asked several times for this and still have not provided any. What
> have you done to confirm that sessions are created?
> 
>> Please throw some light as why it is not increment and what can be done to fix it?
> 
> You have yet to demonstrate that there is anything to fix.
> 
> Mark
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Session on Tomcat 7 manager screem

Posted by David kerber <dc...@verizon.net>.
On 2/18/2016 11:55 AM, Qadeer Khan wrote:
> I am not sure why so aggravated you get... I am not claiming any bugs or anything and I am no expert in Tomcat 7 application server.
>
> I am at client site and they are simply asking me a question as I explained before.
>
> They have java applications deployed and creating more than one sessions of application and as I said earlier session is not incrementing!!!!

And Mark is telling you that most likely, they are not actually creating 
sessions.  "Session" has a specific definition in the http world, and 
not every user, application or call will create a session.


>
> It is as simple as that!!
>
>
>
>
> ----- Original Message -----
> From: "Mark Thomas" <ma...@apache.org>
> To: "Tomcat Users List" <us...@tomcat.apache.org>
> Sent: Thursday, February 18, 2016 11:50:24 AM
> Subject: Re: Session on Tomcat 7 manager screem
>
> On 18/02/2016 16:45, Qadeer Khan wrote:
>> Can you tell what a session definition is?
>
> You are claiming there is a bug with session handling yet you don't know
> what a session is? Oh dear.
>
> Time for you to spend some time reading the Servlet specification.
>
> Mark
>
>
>>
>>
>> On 18/02/2016 16:28, Qadeer Khan wrote:
>>> Hey Guys,
>>>
>>> Someone please throw some light as I am being asked about it several time now
>>
>> Then maybe try reading the responses you received to your previous post
>> and answering the questions you were asked.
>>
>>> There is are several running java applications deployed and running on tomcat server 7 but the 'session' field on the  Manager screen always show a '0".
>>
>> OK. So there aren't any sessions.
>>
>>> So there are sessions running by users but no increment shown under 'session'
>>
>> You need to provide some evidence to back up that statement. You have
>> been asked several times for this and still have not provided any. What
>> have you done to confirm that sessions are created?
>>
>>> Please throw some light as why it is not increment and what can be done to fix it?
>>
>> You have yet to demonstrate that there is anything to fix.
>>
>> Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Session on Tomcat 7 manager screem

Posted by Mark Thomas <ma...@apache.org>.
On 18/02/2016 16:55, Qadeer Khan wrote:
> I am not sure why so aggravated you get... I am not claiming any bugs or anything

Then you need to modify your language rather than suggesting that there
is something wrong in Tomcat that needs fixing.

> and I am no expert in Tomcat 7 application server.

That much is clear.

> I am at client site and they are simply asking me a question as I explained before.

So you are being paid to fix a problem in a system you know next to
nothing about and you are expecting us to take the time to provide you
with the answer for free.

And you wonder why people get aggravated when you can't even be bothered
to answer the one question you have been asked over and over again.

> They have java applications deployed and creating more than one sessions of application and as I said earlier session is not incrementing!!!!
> 
> It is as simple as that!!

I am reminded of the late, great Terry Pratchett and his views on the
use of multiple exclamation marks. [1]



[1] http://wiki.lspace.org/mediawiki/Multiple_exclamation_marks
> 
> 
> 
> 
> ----- Original Message -----
> From: "Mark Thomas" <ma...@apache.org>
> To: "Tomcat Users List" <us...@tomcat.apache.org>
> Sent: Thursday, February 18, 2016 11:50:24 AM
> Subject: Re: Session on Tomcat 7 manager screem
> 
> On 18/02/2016 16:45, Qadeer Khan wrote:
>> Can you tell what a session definition is?
> 
> You are claiming there is a bug with session handling yet you don't know
> what a session is? Oh dear.
> 
> Time for you to spend some time reading the Servlet specification.
> 
> Mark
> 
> 
>>
>>
>> On 18/02/2016 16:28, Qadeer Khan wrote:
>>> Hey Guys,
>>>
>>> Someone please throw some light as I am being asked about it several time now
>>
>> Then maybe try reading the responses you received to your previous post
>> and answering the questions you were asked.
>>
>>> There is are several running java applications deployed and running on tomcat server 7 but the 'session' field on the  Manager screen always show a '0". 
>>
>> OK. So there aren't any sessions.
>>
>>> So there are sessions running by users but no increment shown under 'session'
>>
>> You need to provide some evidence to back up that statement. You have
>> been asked several times for this and still have not provided any. What
>> have you done to confirm that sessions are created?
>>
>>> Please throw some light as why it is not increment and what can be done to fix it?
>>
>> You have yet to demonstrate that there is anything to fix.
>>
>> Mark
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Session on Tomcat 7 manager screem

Posted by Qadeer Khan <qk...@redhat.com>.
I am not sure why so aggravated you get... I am not claiming any bugs or anything and I am no expert in Tomcat 7 application server.

I am at client site and they are simply asking me a question as I explained before. 

They have java applications deployed and creating more than one sessions of application and as I said earlier session is not incrementing!!!!

It is as simple as that!!




----- Original Message -----
From: "Mark Thomas" <ma...@apache.org>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Thursday, February 18, 2016 11:50:24 AM
Subject: Re: Session on Tomcat 7 manager screem

On 18/02/2016 16:45, Qadeer Khan wrote:
> Can you tell what a session definition is?

You are claiming there is a bug with session handling yet you don't know
what a session is? Oh dear.

Time for you to spend some time reading the Servlet specification.

Mark


> 
> 
> On 18/02/2016 16:28, Qadeer Khan wrote:
>> Hey Guys,
>>
>> Someone please throw some light as I am being asked about it several time now
> 
> Then maybe try reading the responses you received to your previous post
> and answering the questions you were asked.
> 
>> There is are several running java applications deployed and running on tomcat server 7 but the 'session' field on the  Manager screen always show a '0". 
> 
> OK. So there aren't any sessions.
> 
>> So there are sessions running by users but no increment shown under 'session'
> 
> You need to provide some evidence to back up that statement. You have
> been asked several times for this and still have not provided any. What
> have you done to confirm that sessions are created?
> 
>> Please throw some light as why it is not increment and what can be done to fix it?
> 
> You have yet to demonstrate that there is anything to fix.
> 
> Mark
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Session on Tomcat 7 manager screem

Posted by Mark Thomas <ma...@apache.org>.
On 18/02/2016 16:45, Qadeer Khan wrote:
> Can you tell what a session definition is?

You are claiming there is a bug with session handling yet you don't know
what a session is? Oh dear.

Time for you to spend some time reading the Servlet specification.

Mark


> 
> 
> On 18/02/2016 16:28, Qadeer Khan wrote:
>> Hey Guys,
>>
>> Someone please throw some light as I am being asked about it several time now
> 
> Then maybe try reading the responses you received to your previous post
> and answering the questions you were asked.
> 
>> There is are several running java applications deployed and running on tomcat server 7 but the 'session' field on the  Manager screen always show a '0". 
> 
> OK. So there aren't any sessions.
> 
>> So there are sessions running by users but no increment shown under 'session'
> 
> You need to provide some evidence to back up that statement. You have
> been asked several times for this and still have not provided any. What
> have you done to confirm that sessions are created?
> 
>> Please throw some light as why it is not increment and what can be done to fix it?
> 
> You have yet to demonstrate that there is anything to fix.
> 
> Mark
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Session on Tomcat 7 manager screem

Posted by Qadeer Khan <qk...@redhat.com>.
Can you tell what a session definition is? 


On 18/02/2016 16:28, Qadeer Khan wrote:
> Hey Guys,
> 
> Someone please throw some light as I am being asked about it several time now

Then maybe try reading the responses you received to your previous post
and answering the questions you were asked.

> There is are several running java applications deployed and running on tomcat server 7 but the 'session' field on the  Manager screen always show a '0". 

OK. So there aren't any sessions.

> So there are sessions running by users but no increment shown under 'session'

You need to provide some evidence to back up that statement. You have
been asked several times for this and still have not provided any. What
have you done to confirm that sessions are created?

> Please throw some light as why it is not increment and what can be done to fix it?

You have yet to demonstrate that there is anything to fix.

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org