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 2007/03/26 23:36:40 UTC
DO NOT REPLY [Bug 41853] - Servlet init method invoked twice in 5.5.20
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41853>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41853
------- Additional Comments From janekdb@gmail.com 2007-03-26 14:36 -------
A ServletContextListener is also created and initialized twice.
This configuration in web.xml
<listener>
<listener-class>org.ntropa.adapter.servlet.NtropaBuilder</listener-class>
</listener>
results in two log entries instead of one.
INFO: NtropaBuilder: init: id: 15277917 initCount: 1, static: 1, Runtime id:
17447716
INFO: NtropaBuilder: init: id: 12710158 initCount: 1, static: 1, Runtime id:
17447716
This is the code that outputs the above logs entries,
private int initCount;
private static int staticInitCount;
public void contextInitialized(ServletContextEvent sce) {
initCount++;
staticInitCount++;
context.log("NtropaBuilder: init: id: " + System.identityHashCode(this)
+ " initCount: " + initCount
+ ", static: " + staticInitCount + ", Runtime id: " +
System.identityHashCode(Runtime.getRuntime()));
...}
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org