tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ray Madigan" <...@madigans.org>
Subject RE: Listeners
Date Wed, 13 Oct 2004 08:14:15 GMT

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:antonypaul24@gmail.com]
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 <ray@madigans.org> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message