tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 3770] - HttpSessionListener.sessionCreated() called twice for each session
Date Tue, 25 Sep 2001 18:48:21 GMT
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.

Mime
View raw message