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=42950>. 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=42950 ------- Additional Comments From [EMAIL PROTECTED] 2007-09-10 11:52 ------- We recently started using some axis2 services and started getting this issue on shutdown. It is not always repeatable by starting up tomcat (catalina.sh start) then stopping tomcat (catalina.sh stop) - depends on thread timing. Note that when this exception is thrown, tomcat does not shutdown. There appears to be some ThreadPoolExecutor.shutdown activity during shutdown of axis2 that causes class loading. This class loading activity happens while tomcat is attempting to call WebappClassLoader.clearReferences. In clearReferences, resourceEntries.clone is called which causes the ConcurrentModificationException to occur because of the conflicting call to resourceEntries.put on line 2134. The following patch to WebappClassLoader.java (of tomcat 5.5.23) worked for us: @@ -1589,7 +1589,12 @@ // Null out any static or final fields from loaded classes, // as a workaround for apparent garbage collection bugs - Iterator loadedClasses = ((HashMap) resourceEntries.clone()).values().iterator(); + HashMap resourceEntriesClone = null; + synchronized(resourceEntries) + { + resourceEntriesClone = (HashMap) resourceEntries.clone(); + } + Iterator loadedClasses = resourceEntriesClone.values().iterator(); while (loadedClasses.hasNext()) { ResourceEntry entry = (ResourceEntry) loadedClasses.next(); if (entry.loadedClass != null) { -- 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]