You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2001/09/25 20:48:21 UTC
DO NOT REPLY [Bug 3770] -
HttpSessionListener.sessionCreated() called twice for each session
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3770>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3770
HttpSessionListener.sessionCreated() called twice for each session
------- Additional Comments From hans@gefionsoftware.com 2001-09-25 11:48 -------
On further experimentation, I noticed that this error only occurs when I define
the tag library that contains the listener in the web.xml file with a taglib
element. If I rely on auto-discovery of tag libraries, everything works fine.
Most likely, the listener is registered once when the container processes the
TLD it finds through auto-discovery, and then again when it finds the TLD
through the web.xml definition. Checking whether a TLD has already been
processed before registering listeners should fix the problem.