RE: Accessing Sessions in the container

2003-10-08 Thread Simha, Kailas
:[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

Re: Accessing Sessions in the container

2003-10-02 Thread Filip Hanik
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

Re: Accessing Sessions in the container

2003-10-02 Thread Tim Funk
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

RE: Accessing Sessions in the container

2003-10-02 Thread Simha, Kailas
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

Re: Accessing Sessions in the container

2003-10-02 Thread Filip Hanik
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

RE: Accessing Sessions in the container

2003-10-02 Thread Simha, Kailas
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

Re: Accessing Sessions in the container

2003-10-02 Thread Filip Hanik
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

RE: Accessing Sessions in the container

2003-10-02 Thread Simha, Kailas
- 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

Re: Accessing Sessions in the container

2003-10-02 Thread Filip Hanik
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

RE: Accessing Sessions in the container

2003-10-02 Thread Shapira, Yoav
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

RE: Accessing Sessions in the container

2003-10-02 Thread Simha, Kailas
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

Re: Accessing Sessions in the container

2003-10-02 Thread Filip Hanik
, 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

RE: Accessing Sessions in the container

2003-10-02 Thread Simha, 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 is the exception on? Have you tried adding one more cast

RE: Accessing Sessions in the container

2003-10-02 Thread Shapira, Yoav
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

RE: Accessing Sessions in the container

2003-10-02 Thread Simha, Kailas
: 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

Re: Accessing Sessions in the container

2003-10-02 Thread Filip Hanik
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

RE: Accessing Sessions in the container

2003-10-02 Thread Simha, Kailas
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

Re: Accessing Sessions in the container

2003-10-02 Thread Filip Hanik
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

RE: Accessing Sessions in the container

2003-10-02 Thread Simha, Kailas
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