: 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
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,
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
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
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
---
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
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";>
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
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
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
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_
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
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:
13 matches
Mail list logo