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 Summary: Servlet init method invoked twice in 5.5.20 Product: Tomcat 5 Version: Unknown Platform: Other OS/Version: Linux Status: NEW Severity: major Priority: P2 Component: Catalina AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] A servlet configured like this is created twice and has it's init method invoked each time <servlet> <servlet-name>builder</servlet-name> <servlet-class>org.ntropa.adapter.servlet.NtropaBuilder</servlet-class> <load-on-startup>1</load-on-startup> </servlet> This is the head of the init method I checked this with, private int initCount; private static int staticInitCount; public void init(ServletConfig config) throws ServletException { initCount++; staticInitCount++; config.getServletContext().log( "NtropaBuilder: init: id: " + System.identityHashCode(this) + " initCount: " + initCount + ", static: " + staticInitCount + ", Runtime id: " + System.identityHashCode(Runtime.getRuntime())); ... } This is the output. INFO: NtropaBuilder: init: id: 11587215 initCount: 1, static: 1, Runtime id: 29959477 INFO: NtropaBuilder: init: id: 16868914 initCount: 1, static: 1, Runtime id: 29959477 So each time init is invoked the servlet object is different and the classloader is different. I have not tried this with 5.5.23 but there was no mention in the fixed bugs list of an issue like this between 5.5.20 and 5.5.23. I did spot this earlier, similar sounding bug that was fixed in 5.5.13 36802: Fix problem of double-init when JMX-deploying a Context into a started Host. (billbarker) I don't know if that bug is related to this one or not. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]