tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vikramjit Singh <vikramj...@gtllimited.com>
Subject RE: Listener with Tomcat4.0.4
Date Thu, 12 Sep 2002 10:13:27 GMT
AFAIK listeners are in 2.3.
in your web.xml change 2.2 to 2.3.
hope you have downloaded servlet 2.3.

http://java.sun.com/products/servlet/2.3/javadoc

Regards, 
Vikramjit Singh, 
GTL Ltd. 
Ph. 7612929-1059



> -----Original Message-----
> From: Heligon Sandra [mailto:sandra.heligon@nextream.fr]
> Sent: Wednesday, September 11, 2002 9:40 AM
> To: 'tomcat-user@jakarta.apache.org'
> Subject: Listener with Tomcat4.0.4
> 
> 
> 
> 	Hi,
> 
> 	I placed Listeners in my web.xml file 
> 
> 	<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> Application 2.2//EN" 	"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
> 
> 	<web-app>
> 	  <!-- Application start/shut down listener -->
> 	  <listener>
> 	    <listener-class>
> 	      MyPackage.My_ServletContextListener
> 	    </listener-class>
> 	  </listener>
> 
>   	and when I compile I have the following error
> 
> 	Exception initialising TldLocationsCache: XML parsing 
> error on file
> WEB-INF/web.xml: Element type
> 	"listener" must be declared.
> 
> 	My web.xml points on the updated DTD web-app_2_2 I 
> don't underrstand
> why I have this error.
> 
> 	Thanks for your help.
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:tomcat-user-help@jakarta.apache.org>
> 

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


Mime
View raw message