RE: ContextListener executes twice

2008-07-22 Thread Caldarale, Charles R
From: Riaz, Bob [mailto:[EMAIL PROTECTED] Subject: ContextListener executes twice In my webapp I have a ContextListener class in which I initialize a DB connection. I've noticed that when I run the project this code executes twice. Is your app being deployed twice? Improper Context

RE: ContextListener executes twice

2008-07-22 Thread Riaz, Bob
) -- !-- Valve className=org.apache.catalina.valves.CometConnectionManagerValve / -- /Context Bob -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 10:49 AM To: Tomcat Users List Subject: RE: ContextListener executes twice From: Riaz, Bob

RE: ContextListener executes twice

2008-07-22 Thread Caldarale, Charles R
From: Riaz, Bob [mailto:[EMAIL PROTECTED] Subject: RE: ContextListener executes twice INFO: The listener MyContextListener is already configured for this context. The duplicate definition has been ignored. That's a purely cosmetic error in the current 6.0 version; fixed in 6.0.17, whenever

RE: ContextListener executes twice

2008-07-22 Thread Riaz, Bob
-Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 11:12 AM To: Tomcat Users List Subject: RE: ContextListener executes twice From: Riaz, Bob [mailto:[EMAIL PROTECTED] Subject: RE: ContextListener executes twice INFO: The listener

RE: ContextListener executes twice

2008-07-22 Thread Caldarale, Charles R
From: Riaz, Bob [mailto:[EMAIL PROTECTED] Subject: RE: ContextListener executes twice 1) Where is your webapp deployed? On my dev machine - localhost. Is that what you mean? No, what directory is it in? Is it a .war or an expanded webapp? 2) Do you have a META-INF/context.xml file

RE: ContextListener executes twice

2008-07-22 Thread Fu-Tung Cheng
PROTECTED] Subject: RE: ContextListener executes twice To: Tomcat Users List users@tomcat.apache.org Date: Tuesday, July 22, 2008, 4:51 PM From: Riaz, Bob [mailto:[EMAIL PROTECTED] Subject: RE: ContextListener executes twice 1) Where is your webapp deployed? On my dev machine - localhost

RE: ContextListener executes twice

2008-07-22 Thread Riaz, Bob
-Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 11:52 AM To: Tomcat Users List Subject: RE: ContextListener executes twice From: Riaz, Bob [mailto:[EMAIL PROTECTED] Subject: RE: ContextListener executes twice 1) Where is your

RE: ContextListener executes twice

2008-07-22 Thread Riaz, Bob
-Tung Cheng [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 12:13 PM To: Tomcat Users List Subject: RE: ContextListener executes twice Might have to do with this: Any declared listener will be reported as declared twice due to this bug http://www.mail-archive.com/[EMAIL

RE: ContextListener executes twice

2008-07-22 Thread Caldarale, Charles R
From: Riaz, Bob [mailto:[EMAIL PROTECTED] Subject: RE: ContextListener executes twice Does anyone know of a patch for this? I couldn't find one. The bug does *not* cause the Listener to be executed twice, since the second registration attempt is ignored; the message is purely cosmetic

RE: ContextListener executes twice

2008-07-22 Thread Caldarale, Charles R
From: Riaz, Bob [mailto:[EMAIL PROTECTED] Subject: RE: ContextListener executes twice Ok. Removed it. But if the conf/Catalina/[host]/[appName].xml overrides this, this should make no difference, right? True, but there's no point in leaving invalid junk lying around just waiting to cause