: 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
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 being output the very first time the app
Hi,
A couple of quick notes as I have to run to a meeting:
- I think your understanding of the spec is correct
- What happens if you reload the app (not undeploy and redeploy, but
reload) via the manager webapp?
- Are you sure the undeploy is COMPLETELY done cleanly, and no threads
from your own w
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";>
Is "declared before anything else" a literal statement? Are you following
the DTD? "listener" comes after several other elements, it can't come
"first" unless you don't use any of the preceeding elements at all.
John
On Tue, 15 Jul 2003 09:27:39 +0530, Mufaddal Khumri <[EMAIL PROTECTED]>
wro
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
Yes , my listener has been declared before anything else under
.. the problem persists .. any clues ?
On Tuesday, July 15, 2003, at 07:00 AM, Januski, Ken wrote:
Listeners must be declared before any servlets in web.xml. I'd check
that
first.
-Original Message-
From: Mufaddal Khumri
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 ServletContextListener
11 matches
Mail list logo