:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 4:34 PM
To: Tomcat Users List
Subject: Re: Accessing Sessions in the container
show us line 98 in MyServlet.java:98,
the error you are getting is NOT in the valve,
Filip
- Original Message -
From: Simha, Kailas [EMAIL PROTECTED
prohibited by spec
Filip
- Original Message -
From: Simha, Kailas [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 11:50 AM
Subject: Accessing Sessions in the container
Hi all,
How would I be able to access/list all the sessions running on a
But that restriction can be bypssed by creating a SessionListener to store
these sessions yourself in ServletContext scope. Search the archive for more
info about this.
Doing so can also easily create a memory leak if one is not careful.
-Tim
Filip Hanik wrote:
prohibited by spec
Filip
Right, but I do not want all web applications to implement this Listener
either.
Kailas
Enterprise Web Infrastructure
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 2:57 PM
To: Tomcat Users List
Subject: Re: Accessing Sessions
manager, ie one webapp
Filip
- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 11:56 AM
Subject: Re: Accessing Sessions in the container
But that restriction can be bypssed by creating a SessionListener to store
This gives me a class cast exception when running !
Thanks !
Kailas
Enterprise Web Infrastructure
-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 3:05 PM
To: Tomcat Users List
Subject: Re: Accessing Sessions in the container
put a Valve
in the container
This gives me a class cast exception when running !
Thanks !
Kailas
Enterprise Web Infrastructure
-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 3:05 PM
To: Tomcat Users List
Subject: Re: Accessing Sessions in the container
put
-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 3:43 PM
To: Tomcat Users List
Subject: Re: Accessing Sessions in the container
import org.apache.catalina.Session;
that is the Session you will be getting back from findSessions
- Original Message -
From: Simha
what does your error say?
- Original Message -
From: Simha, Kailas [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 12:47 PM
Subject: RE: Accessing Sessions in the container
Well, I have it in the import. But here is the code snippet. Am I
break with future versions of tomcat, right?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Simha, Kailas [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 3:48 PM
To: 'Tomcat Users List'
Subject: RE: Accessing Sessions in the container
Well, I have
Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 3:52 PM
To: Tomcat Users List
Subject: Re: Accessing Sessions in the container
what does your error say?
- Original Message -
From: Simha, Kailas [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL
, October 02, 2003 12:54 PM
Subject: RE: Accessing Sessions in the container
Here is the error snippet:
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
java.lang.ClassCastException
Enterprise Web Infrastructure
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 3:52 PM
To: Tomcat Users List
Subject: RE: Accessing Sessions in the container
Howdy,
Which line is the exception on? Have you tried adding one more cast
the archives.
Yoav Shapira
Thanks !
Kailas
Enterprise Web Infrastructure
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 3:52 PM
To: Tomcat Users List
Subject: RE: Accessing Sessions in the container
Howdy,
Which line
: Thursday, October 02, 2003 12:54 PM
Subject: RE: Accessing Sessions in the container
Here is the error snippet:
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
java.lang.ClassCastException
show us line 98 in MyServlet.java:98,
the error you are getting is NOT in the valve,
Filip
- Original Message -
From: Simha, Kailas [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 1:22 PM
Subject: RE: Accessing Sessions in the container
I am
To: Tomcat Users List
Subject: Re: Accessing Sessions in the container
show us line 98 in MyServlet.java:98,
the error you are getting is NOT in the valve,
Filip
- Original Message -
From: Simha, Kailas [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 1
Message -
From: Simha, Kailas [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 1:37 PM
Subject: RE: Accessing Sessions in the container
Oops ! Here it is:
98:org.apache.catalina.HttpRequest req =
(org.apache.catalina.HttpRequest)request;
99
Subject: Re: Accessing Sessions in the container
the code is in the wrong place:
if you don't know what a valve is, you have two options:
1. Read up on it, and configure a valve in server.xml
2. Skip this solution all together (recommended since you are not familiar
with tomcat internals) and go
19 matches
Mail list logo