Hi Will and Christopher,

        Good thought. I shut down Tomcat and started it again with a clean
set of logs:
localhost.2005-05-25.log
   .
   .
May 25, 2005 11:22:17 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
May 25, 2005 11:27:45 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: sessionCreated('BD963D7E6AACE0E2387F37919BB277FC')

        I interpret this to show that the listener element in web.xml is
initialized and later a sessionCeated() method was actually called:
                      .
                      .
    public synchronized void sessionCreated (HttpSessionEvent se) {
        System.out.println("sessionCreated "+sessionCount);
        sessionCount++;
    }

However, there is no entry in the stout log so whatever sessionCreated
method is called it is not the one registered?
        <listener>
                <listener-class>com.test.SessionCounter</listener-class>
        </listener>

I also just noticed that the Tomcat WebApp Manager is showing only 0's for
sessions regardless of how many sessions are started?

Thanks
Randy

-----Original Message-----
From: Will Hartung [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 25, 2005 10:46 AM
To: Tomcat Users List
Subject: Re: HttpSessionListener

> From: "Christoph Kutzinski" <[EMAIL PROTECTED]>
> Sent: Wednesday, May 25, 2005 9:04 AM

> I suspect that the Listener class is not found on the production server.
> You should check your deployment. Are you deplyoing via WAR files in
> both cases?

Yea, I would make sure that your listener is even being instantiated.

Tomcat is pretty quiet with things like Listners, it doens't write error or
output where you typically see it for you application.

Check all of your logs to make sure the class is loading and starting up
correctly.

Regards,

Will Hartung
([EMAIL PROTECTED])


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to