JAASRealm does not trigger HttpSessionListener events

2016-03-21 Thread Scott, Shannon
not work). I am trying to use a HttpSessionListener with the JAAS Login Module, but the sessionCreated, and sessionDestroyed methods are never triggered. Is that intentional? Are there other ways a session could be created without triggering the HttpSessionListener? Thank you in advance for any

HttpSessionListener sessionDestroyed only called once for sessionID

2009-11-10 Thread mauroS
hello, I run jbossweb-tomcat55.sar inside jboss-4.0.5.CR1 I have one EAR file with two WAR files inside. I added HttpSessionListener in web.xml to both wars. If I request both war files from the same browser I have two HttpSession objects with different hash but with the same sessionID

Re: HttpSessionListener sessionDestroyed only called once for sessionID

2009-11-10 Thread André Warnier
mauroS wrote: hello, I run jbossweb-tomcat55.sar inside jboss-4.0.5.CR1 I have one EAR file with two WAR files inside. I added HttpSessionListener in web.xml to both wars. If I request both war files from the same browser I have two HttpSession objects with different hash but with the same

Re: HttpSessionListener sessionDestroyed only called once for sessionID

2009-11-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mauro, On 11/10/2009 4:44 PM, mauroS wrote: I run jbossweb-tomcat55.sar inside jboss-4.0.5.CR1 I have one EAR file with two WAR files inside. I added HttpSessionListener in web.xml to both wars. If I request both war files from the same

Re: HttpSessionListener sessionDestroyed only called once for sessionID

2009-11-10 Thread Pid
On 10/11/2009 21:44, mauroS wrote: hello, I run jbossweb-tomcat55.sar inside jboss-4.0.5.CR1 I have one EAR file with two WAR files inside. I added HttpSessionListener in web.xml to both wars. If I request both war files from the same browser Request the war file? That sounds, well

Re: HttpSessionListener sessionDestroyed only called once for sessionID

2009-11-10 Thread mauroS
: http://old.nabble.com/HttpSessionListener-sessionDestroyed-only-called-once-for-sessionID-tp26291791p26292441.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

Re: HttpSessionListener sessionDestroyed only called once for sessionID

2009-11-10 Thread mauroS
destroyed and is accessible . -- View this message in context: http://old.nabble.com/HttpSessionListener-sessionDestroyed-only-called-once-for-sessionID-tp26291791p26292526.html Sent from the Tomcat - User mailing list archive at Nabble.com

Re: HttpSessionListener session listener in tomcat cluster

2008-07-31 Thread Filip Hanik - Dev Lists
event to monitor the number of users login to each machine (Using SNMP MIB counters). But once a user is login to one machine counter gets updated in every machine. I believe this is due to session replication. Is there any way to gets a count of logins to each machine using HTTPSessionListener when

Re: HttpSessionListener session listener in tomcat cluster

2008-07-30 Thread Filip Hanik - Dev Lists
this is due to session replication. Is there any way to gets a count of logins to each machine using HTTPSessionListener when the session replication is enabled. Thnx, Sanjaya. there is a setting called |notifyListenersOnReplication you can set to true of false http://tomcat.apache.org/tomcat-6.0-doc

Re: HttpSessionListener session listener in tomcat cluster

2008-07-30 Thread Pavan Singaraju
of logins to each machine using HTTPSessionListener when the session replication is enabled. Thnx, Sanjaya. there is a setting called |notifyListenersOnReplication you can set to true of false http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-manager.html Filip

class loading problem: NoClassDefFoundError: javax/servlet/http/HttpSessionListener

2007-11-22 Thread Giancarlo Frison
/HttpSessionListener at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260

Re: class loading problem: NoClassDefFoundError: javax/servlet/http/HttpSessionListener

2007-11-22 Thread Pid
org.apache.catalina.core.StandardContext listenerStart SEVERE: Error configuring application listener of class com.nimbuzz.webx.jee.UserSessionListener java.lang.NoClassDefFoundError: javax/servlet/http/HttpSessionListener at java.lang.ClassLoader.defineClass1(Native Method

RE: class loading problem: NoClassDefFoundError: javax/servlet/http/HttpSessionListener

2007-11-22 Thread Caldarale, Charles R
From: Giancarlo Frison [mailto:[EMAIL PROTECTED] Subject: class loading problem: NoClassDefFoundError: javax/servlet/http/HttpSessionListener java.lang.NoClassDefFoundError: javax/servlet/http/HttpSessionListener The above is frequently caused by having the servlet-api.jar in your

Re: class loading problem: NoClassDefFoundError: javax/servlet/http/HttpSessionListener

2007-11-22 Thread Giancarlo Frison
Absolutely no. The WEB-INF/lib contains: commons-codec-1.3.jarcommons-httpclient-3.1-rc1.jar jta.jar quartz-all-1.6.0.jar stringtree-json-2.0.5.jar commons-collections-3.2.jar commons-logging.jar log4j-1.2.14.jar spring.jarxmlpull.jar

Re: HttpSessionListener

2007-09-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ashok, OFFICIAL WEBSITE wrote: I had attached web.xml with th previous mail. It did not come through. Nevertheless, I am attaching source code of listener and the web.xml file. The code looks fine (but strange). Are you even seeing

Re: HttpSessionListener

2007-09-05 Thread OFFICIAL WEBSITE
it then resets to null */ package tcsi.webcvws.services.web; import javax.servlet.*; import javax.servlet.http.*; public class CandidateSessionListener implements HttpSessionListener { private static String expiredList = null; public CandidateSessionListener() { System.out.println

Re: HttpSessionListener

2007-09-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ashok, OFFICIAL WEBSITE wrote: 3. Problem. The listener class does not report sessionCreate and sessionDestroy. It responds perfectly to all other types of event listeners. The servlet class, of course, reports each HttpRequest as they come in.

HttpSessionListener

2007-08-30 Thread OFFICIAL WEBSITE
1. Aim: To display online the status of each incoming HttpSession 2. Design used: In webapps/myapplication/WEB-INF/web.xml, along with the servlet application deployed in servlet /servlet section, another Class is deployed in the listener/listener section that implements HttpSessionListener

Re: HttpSessionListener with session replication (cluster)

2006-10-23 Thread Filip Hanik - Dev Lists
this would be pretty easy for you to try out and find out. there is a flag you can set notifySessionListenersOnReplication Filip Pascal Bleser wrote: What happens when a HttpSession times out in a cluster, wrt HttpSessionListeners ? Will the HttpSessionListener be notified

Re: Problem with HttpSessionListener

2006-10-13 Thread José Roberto Motta Garcia
No one was asking for cross-application scoping. Hi chuck, do u know how to do that? It's what I'm trying to do, to get a cross-app scope for customized management. Tks Jose Roberto the proper way to access your webapps info is getServletContext() to get the context first..once you

Re: Problem with HttpSessionListener

2006-10-13 Thread José Roberto Motta Garcia
Hi chuck, do u know how to do that? It's what I'm trying to do, to get a cross-app scope for customized management. If all you need are objects common to all web apps, classes placed in shared/lib will suffice. Do you mean a servlet? Wouldn't every app instantiate its own object if

RE: Problem with HttpSessionListener

2006-10-13 Thread Caldarale, Charles R
From: José Roberto Motta Garcia [mailto:[EMAIL PROTECTED] Subject: Re: Problem with HttpSessionListener Do you mean a servlet? No, just Java classes. Wouldn't every app instantiate its own object if this class is a simple one? Only if they do a new; you can use static fields

Re: Problem with HttpSessionListener

2006-10-12 Thread Martin Gainty
11, 2006 10:00 AM Subject: Re: Problem with HttpSessionListener I'm going to try to explain it better, if my English allows me. I have this classe: ... public class HttpTestListener implements HttpSessionListener { public void sessionCreated(HttpSessionEvent e

RE: Problem with HttpSessionListener

2006-10-12 Thread Caldarale, Charles R
From: Martin Gainty [mailto:[EMAIL PROTECTED] Subject: Re: Problem with HttpSessionListener Session information is scoped only to the current web application (ServletContext), so information stored in one context will not be directly visible in another. No one was asking for cross

Problem with HttpSessionListener

2006-10-11 Thread Juanjo Cuadrado
Hi, I'm trying to create a listener in my application. I have created a listener class that implements HttpSessionLister and I have put the element listener in my web.xml. My listener class only sets a object in the session (getSession().getAttribute(k, kk)), but when I try to recover

Re: Problem with HttpSessionListener

2006-10-11 Thread Martin Gainty
contents - Original Message - From: Juanjo Cuadrado [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, October 11, 2006 8:09 AM Subject: Problem with HttpSessionListener Hi, I'm trying to create a listener in my application. I have created a listener class

Re: Problem with HttpSessionListener

2006-10-11 Thread Juanjo Cuadrado
I'm going to try to explain it better, if my English allows me. I have this classe: ... public class HttpTestListener implements HttpSessionListener { public void sessionCreated(HttpSessionEvent e){ e.getSession().setAttribute(test, new String(testValue); } ... In my web.xml I

Betr.: Re: Problem with HttpSessionListener

2006-10-11 Thread Roel De Nijs
PROTECTED] 11/10/2006 16:27 Juan, public class HttpTestListener implements HttpSessionListener { public void sessionCreated(HttpSessionEvent e){ e.getSession().setAttribute(test, new String(testValue); } Okay. I assume that there's an extra ) end the end, otherwise your code

HttpSessionListener with session replication (cluster)

2006-09-25 Thread Pascal Bleser
What happens when a HttpSession times out in a cluster, wrt HttpSessionListeners ? Will the HttpSessionListener be notified with a HttpSessionEvent on _each_ node or only on the node that decides to destroy the session ? JSR-154 (Servlet 2.4 spec) [1] says: SRV.10.7 Distributed Containers