Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · Web Hosting Plans · Faisal Khan's Blog · Contact
Forums : J2EE : JSP : Listener not accepted in web.xml Signup · Login
Author Thread
Listener not accepted in web.xml
Posted in tutorial: Counting Active Users using JSP
·  bennsma
User
Joined: 21 Jun 2004
Total Posts: 1
Listener not accepted in web.xml
Posted: 21 Jun 2004
I am using tomcat 4.1.27LE and when I paste the listener reference into my web.xml and try and start the application I get the following error

org.xml.sax.SAXParseException: Element "web-app" does not allow "listener" here.

Below is what I have pasted into my web.xml

<listener>
<listener-class>
com.tclltd.piston.SessionCounter
</listener-class>
</listener>

I would have thought that this should have been accepted?
·  rjweytens
User
Joined: 29 Jun 2004
Total Posts: 1
Listener not accepted in web.xml
Posted: 29 Jun 2004
Check your deployment descriptor. The location of the tag makes a difference. I think it goes somewhere above the servlet descriptor.

http://java.sun.com/dtd/web-app_2_3.dtd

Users Who Have Visited This Thread In Last 24 Hours
5 Visitors

Login
UserName Or Email Address:       Password:       Auto-Login:    
· Create New User Account
· Send Forgotten Password by Email
 
© 1999 - 2009 Stardeveloper.com, All Rights Reserved.