RE: Servlet Context Listener problem - Solved

2004-04-05 Thread Yansheng Lin
: Servlet Context Listener problem - Solved Yoav, Thanks for the quick response- Found my error, and embarrassingly it was a simple logic problem. My logger was only being initialized if it had not been previously initialized by the JVM. As such, within that logic block the log messages were only

RE: Servlet Context Listener problem - Solved

2004-04-05 Thread Jason Bucholtz
from your own webapp are left behind? For example, do you have to > shutdown your log manager? > > Yoav Shapira > Millennium Research Informatics > > > >-Original Message- > >From: Jason Bucholtz [mailto:[EMAIL PROTECTED] > >Sent: Monday, April 05,

RE: Servlet Context Listener problem

2004-04-05 Thread Shapira, Yoav
webapp are left behind? For example, do you have to shutdown your log manager? Yoav Shapira Millennium Research Informatics >-Original Message- >From: Jason Bucholtz [mailto:[EMAIL PROTECTED] >Sent: Monday, April 05, 2004 3:04 PM >To: Tomcat Users List >Subject: Servlet C

Servlet Context Listener problem

2004-04-05 Thread Jason Bucholtz
I am using tomcat 5.0.19 and am experiencing different behavior from a servlet context listener than what is outlined in the servlet spec. My expectation is that the listener methods contextInitialized() and contextDestroyed() should be called respectively each time the application is undeploye

Re: Servlet Context Listener problem...

2003-07-16 Thread Zach Gatu
Have a look at one of the latest Enterprise Java Tech Tip on Servlet Life Cycle Listeners: http://developer.java.sun.com/developer/EJTechTips/2003/tt0626.html#2 Zach. [EMAIL PROTECTED] wrote: Hi: I implemented ServletContextListener in my class. I then wrote the xml in the web.xml file and s

RE: Servlet Context Listener problem...

2003-07-15 Thread Sudhir Movva
--- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 12:27 PM To: Tomcat Users List Subject: Re: Servlet Context Listener problem... Is "declared before anything else" a literal statement? Are you following the DTD? "listener" comes after several o

Resolved Re: Servlet Context Listener problem...

2003-07-15 Thread Mufaddal Khumri
CHANGED the reference to the dtd and it worked. That was the error because I was referencing the old dtd which does not recognize listener or listener-class. I had: http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";> Changed it to: "http://java.sun.com/dtd/web-app_2_3.dtd";>

Re: Servlet Context Listener problem...

2003-07-15 Thread John Turner
t first. -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2003 6:41 AM To: Tomcat List Subject: Servlet Context Listener problem... Hi: I implemented ServletContextListener in my class. I then wrote the xml in the web.xml file and started tomc

RE: Servlet Context Listener problem...

2003-07-15 Thread Bodycombe, Andrew
Make sure your DTD is the correct servlet 2.3 DTD. The listener element was introduced in version 2.3 of the servlet spec. -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: 15 July 2003 04:58 To: Tomcat Users List Subject: Re: Servlet Context Listener problem

Re: Servlet Context Listener problem...

2003-07-15 Thread Mufaddal Khumri
addal Khumri [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2003 6:41 AM To: Tomcat List Subject: Servlet Context Listener problem... Hi: I implemented ServletContextListener in my class. I then wrote the xml in the web.xml file and started tomcat. The error tomcat threw tells me that it did not reco

Re: Servlet Context Listener problem...

2003-07-15 Thread Jon Wingfield
Is that the entirety of your web.xml? The error looks like the parser can't find the definition of the "listener" element, it hasn't even got to the point of worrying about element order yet. Have you got an xml prolog and a doctype at the top of the file? eg: "http://java.sun.com/dtd/web-app_

RE: Servlet Context Listener problem...

2003-07-14 Thread Januski, Ken
Listeners must be declared before any servlets in web.xml. I'd check that first. -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2003 6:41 AM To: Tomcat List Subject: Servlet Context Listener problem... Hi: I implemented ServletContextLis

Servlet Context Listener problem...

2003-07-14 Thread Mufaddal Khumri
Hi: I implemented ServletContextListener in my class. I then wrote the xml in the web.xml file and started tomcat. The error tomcat threw tells me that it did not recognize the listener and listener-class elements ?? i have them declared in the web.xml as: