Simon,


I think you're right. I observerd the same. I downloaded and built Tomcat 5 from CVS using the build.xml file provided on the website 3 days ago and the file jakarta-tomcat-5/build/common/lib/jmx.jar does not contain the JMX 1.2 classes. In my case my code broke because Monitor.addObserverdObject is not there (was added in 1.2). To make sure I checked in the class file and it is not there.

Regards,

Robert


Simon Clare wrote:


Hi

This is probably:
a: stupid
b: annoying


or possibly both but i'm having a bit of a problem with JMX specs in Tomcat. Am I right in thinking that JMX 1.2.1 RI is the current version within Tomcat 5 (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24413)?

However, the reference implementation (and spec) has the method:
javax.management.MBeanServer.getClassLoaderRepository()
But the JMX implementation bundled with Tomcat (5.016) does not (and throws a noSuchMethodException when I try and use it.


My small mind has been throw into confusion, and I am contemplating Classpath order based hacks (shudder).

simon clare

FULL (AND BORING) DETAILS

I'm connecting remotely to a JMX 1.2.1 RI JMX Server using the JMX 1.0 Remote RI and querying a few MBeans. This works a treat in a stand alone "vanilla" VM. However, inside a web container (weblogic and tomcat) where there is theortically all the JMX stuff allready there (minus the remote stuff) the same code does not work, it throws a NoSuchMethodException on javax.management.MBeanServer.getClassLoaderRepository(). Which is weird as this method should be there according to the JMX 1.2.1 spec.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


-- ________________________ Robert Krüger Signal7 GmbH Brüder Knauss Str. 79 64285 Darmstadt Germany

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to