The fix is to replace the mx4j jar file in the release (bin/jmx.jar)
with the fixed version (latest 2.1.x) which has been available for a
long time now from the mx4j project site.
You might also search this mailinglist. This must be one of the more
frequently raised topics. I know I found the right answer here half a
year ago or so.
I'd really appreciate a stable 5.0.x release with the fix. I've known
about this bug for more than half a year now and I still encounter it at
least once a week at customers. I then need to explain that it is not
our product that is broken but tomcat and that it's a well known issue
and it is easy to fix. Basically all our customers run into this issue.
Lets face it, 5.0.28 is basically broken because of this easy to fix
bug. People claim it rarely occurs (and consequently that it is
perfectly acceptable to occasionally fail to launch with an obscure
exception). Yet, I can't launch my webapp on an unpatched tomcat 5.0.28
unless I fix this first. Sometimes I forget on a clean install and then
seconds later slap my forward. Just do a 5.0.28_01 with the fixed jar or
finally move 5.0.30 to a stable release (I can't convince customers to
install beta software) but please fix it one way or the other.
Jilles
Tim Funk wrote:
Search bugzilla. There is a bug report about
ConcurrentModificationException - it has to do with mx4j having a race
condition. The bug describes a fix.
-Tim
Maurice Yarrow wrote:
Hello Tomcat people
When tomcat is restarted, it occasionally (1 in 25 times)
gets the below exception. (tomcat 5.0.28, on Fedora Core 1)
What is the significance of this?
Thanks
Maurice
INFO: Starting Coyote HTTP/1.1 on http-8080
Sep 26, 2005 9:29:19 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8443
Sep 26, 2005 9:29:19 AM org.apache.coyote.tomcat5.MapperListener init
WARNING: Error registering contexts
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
at java.util.HashMap$EntryIterator.next(HashMap.java:824)
at java.util.HashMap.putAllForCreate(HashMap.java:424)
at java.util.HashMap.clone(HashMap.java:656)
at
mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56)
at
mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:160
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]