[ mx4j-Bugs-1068766 ] Race condition in Tomcat 5
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1068766, was opened at 2004-11-18 16:17
Message generated for change (Comment added) made by kurti
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=1068766&group_id=47745
Category: JMX implementation
Group: Release 2.1.0
Status: Closed
Resolution: Duplicate
Priority: 5
Submitted By: Kurt Huwig (kurti)
Assigned to: Simone Bordet (biorn_steedom)
Summary: Race condition in Tomcat 5
Initial Comment:
I don't known if it is MX4J's fault, but you are the
first on the list:
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:1603)
at
mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568)
at
mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512)
at
org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115)
at
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1537)
at
org.apache.catalina.startup.Embedded.start(Embedded.java:853)
----------------------------------------------------------------------
>Comment By: Kurt Huwig (kurti)
Date: 2004-11-25 23:29
Message:
Logged In: YES
user_id=78306
I used the mx4j-jmx.jar from the current mx4j distribution,
but it did not work, because the tomcat team seems to add
some classes from mx4j.jar into the mx4j-jmx.jar. If you use
the mx4j-jmx.jar from the mx4j-project you'll get a
java.lang.NoClassDefFoundError: mx4j/log/Log
with tomcat. Adding mx4.jar to the lib-directory makes
things working again.
----------------------------------------------------------------------
Comment By: Simone Bordet (biorn_steedom)
Date: 2004-11-19 12:35
Message:
Logged In: YES
user_id=128193
This bug has been fixed long time ago, see bug #859550.
Tomcat 5 ships by default MX4J 1.1.1, which is now very
outdated.
It's very simple to update Tomcat:
1. download MX4J 2.0.1 or later
2. take mx4j.jar
3. go to $TOMCAT/bin and rename the existing jmx.jar to
(e.g.) jmx.jar.original
4. copy mx4j.jar to $TOMCAT/bin
5. rename $TOMCAT/bin/mx4j.jar to $TOMCAT/bin/jmx.jar
That's it.
I have deployed this solution in one of my projects and have
no problems at all.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=1068766&group_id=47745
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/