tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vijay Kandy <>
Subject RE: Help with registering a listener
Date Thu, 05 Jun 2003 15:48:58 GMT
Hi Yoav,

Thanks for your reply. It makes sense now.

My web.xml starts with 
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"

Do I need to change anything there?

Thanks again,

 -----Original Message-----
From: 	Shapira, Yoav [] 
Sent:	Thursday, June 05, 2003 10:47 AM
To:	Tomcat Users List
Subject:	RE: Help with registering a listener

Listeners are a servlet specification 2.3 feature, so you wouldn't find
them in the DTD version 2.2.

Your XML <listener> element is correct and sufficient to register a
listener in a servlet specification 2.3 container, like tomcat 4.x.  The
listener class must be available to tomcat: the proper place to put it
is the WEB-INF/lib (if it's in a jar) or WEB-INF/classes (if it's not in
a jar) of your webapp.

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Vijay Kandy []
>Sent: Thursday, June 05, 2003 11:32 AM
>To: 'Tomcat Users List'
>Subject: Help with registering a listener
>Could some one please tell me how to register a listener with Tomcat 4?
>When I add:
>	<listener-class>TnTSearchCleanUp</listener-class>
>within web-app element, tomcat throws 404 errors. Also, I did not find
>listener element defined in
>Thank you,
>To unsubscribe, e-mail:
>For additional commands, e-mail:

This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message