tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick" <>
Subject 5.0.28 w/ MX4J 3.0.1, possible?
Date Fri, 10 Jun 2005 04:09:31 GMT
  I have been trying to migrate to the latest version of MX4J (3.0.1) from
the old 1.1.1 version.  
And for the life of me, I don't seem to be able to get it to work.  I use
JMX to communicate to various servers in our webapp to show session info on
different nodes, and I would also like to implement some other features..

Old 1.1.1 implementation
-- --------------------

-- Code ------------------------------
Hashtable environment = new Hashtable();

JRMPConnector connector = new JMRPConnector();
connector.connect("jrmp", environment);

RemoteMBeanServer server = connector.getRemoteMBeanServer();

Ok.. So I replaced jmx.jar with the latest version of mx4j.jar (renamed to
jmx.jar) under tomcat_home/bin
And replaced or added
To /tomcat_home/common/lib

Now, when I start tomcat I get the error..
"MX4j RMI adapter not loaded: java.lang.ClassNotFoundException:
mx4j.adaptor.rmi.jrmp.JRMPAdaptor "

Which is correct, since that's not a valid class now, but how do I configure
tomcat to properly use the new mx4j.

If I enable mx.httpPort=9000/mx.httpHost=localhost then JMX does enable and
I get a pretty little message like...
"HttpAdapter version 3.0.1 started on port 9000" , but I have no idea at
this point how to properly use the HTTP connector.

Any info or suggestions to getting the RMI adapter working, or how to use
the http adapter, or just the best way to go about 
Using MX4J, not sure if either is possible with out updating to tomcat


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message