Does your listener class implement the good listener like HttpSessionListener, ServletContextListener or ...

Ray Madigan wrote:

The top of my web.xml is as follows.  It worked fine until I added the
listener declaration.

I am using tomcat 4.1.24

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
   "http://java.sun.com/dtd/web-app_2_3.dtd";>
<web-app>

 <listener>
   <listener-class> com.mbresearch.main.util.AccessListener
</listener-class>
 </listener>

 <servlet>

-----Original Message-----
From: Antony Paul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 13, 2004 12:58 AM
To: Tomcat Users List
Subject: Re: Listeners


What version of Tomcat you are using ?. Also post the web.xml version.
From the top.

rgds Antony Paul


On Wed, 13 Oct 2004 00:46:43 -0700, Ray Madigan <[EMAIL PROTECTED]> wrote:


I have never used Listeners in Tomcat before and and having trouble


getting


one registered.

I have the listener declared in web.xml before the servlet declaration and
looks like

<listener>
  <listener-class> com.mbresearch.foo.FooListener</listener-class>
</listener>

<servlet>
...

com.mbresearch.foo.FooListener is in the WEB-INF/classes directory.
I get the digester error:

Digester.error : Parse Error at line 9 column 13: Element type "listener"
must be declared.  Line 9 is the <listener> line.

What am I missing?  Thanks in advance!

---------------------------------------------------------------------
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]


--------------------------------------------------------------------- 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