tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vijay Kandy <Vij...@mailcode.com>
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"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

Do I need to change anything there?

Thanks again,
Vijay


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


Howdy,
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 [mailto:VijayK@mailcode.com]
>Sent: Thursday, June 05, 2003 11:32 AM
>To: 'Tomcat Users List'
>Subject: Help with registering a listener
>
>Hello,
>
>Could some one please tell me how to register a listener with Tomcat 4?
>
>When I add:
>
><listener>
>	<listener-class>TnTSearchCleanUp</listener-class>
></listener>
>
>within web-app element, tomcat throws 404 errors. Also, I did not find
a
>listener element defined in
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd
>
>Thank you,
>Vijay
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




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