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=37264>. 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=37264 ------- Additional Comments From [EMAIL PROTECTED] 2005-10-27 10:10 ------- (In reply to comment #3) > ServletContextlistener.destroy() ??? or > ServletContextlistener.contextDestroyed() > > > What about ServletContextlistener.contextInitialized() and listenerStart(), > would it be possible to review that too with your knowledge of whats going on. > > I suspect the calling sequences for all setup/teardown should be Last In, First Out. > > If your solution is verified to be correct, I think you might have just > possibily found the root cause of a great many outstanding ThreadDeath related > issues that have been bounced around on bugzilla recently. These are > ThreadDeath's caused from listenerStop() execution where the class loader has > been invalidated. Understanding things is good rather than simply writing BS. This is related to JNDI. The code as of right now is: // Stop our application listeners listenerStop(); // Clear all application-originated servlet context attributes if (context != null) context.clearAttributes(); // Stop resources resourcesStop(); if ((realm != null) && (realm instanceof Lifecycle)) { ((Lifecycle) realm).stop(); } if ((cluster != null) && (cluster instanceof Lifecycle)) { ((Lifecycle) cluster).stop(); } if ((logger != null) && (logger instanceof Lifecycle)) { ((Lifecycle) logger).stop(); } if ((loader != null) && (loader instanceof Lifecycle)) { ((Lifecycle) loader).stop(); } -- 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]