This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

listener element error

 
Nesan Krish
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of my servlets implements HttpSessionListener, and I configured that in the deployment descripter using <listener> element. But the tool (Jbuilder) I used is showing an error message "Element type 'listener' must be declared".

I placed <listener> element before the servlets declared (that is the J2EE specification) and just after the <desplay-name> element. My configuration looks like the following:

<listener>
<listener-class>com.space.chat.ChatDispatch</listener-class>
</listener>

I use servlet version 2.2.

Please anyone help me. Thanks very much in advance.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Listeners showed up in version 2.3
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic