-
1. Re: ModelMBeans : target object class not fount
juha Oct 24, 2002 6:29 PM (in response to be322634)how are you adding your own classes to the server?
-
2. Re: ModelMBeans : target object class not fount
be322634 Oct 25, 2002 3:58 AM (in response to be322634)I have used the RMIConnector, registered a ModelMBean and set the managedObject to a class I defined. That class I have put in a jar file in jboss/lib/ext, where I hoped it would be accessible for the JMXAgent, but apparently it is not.
Erik -
3. Re: ModelMBeans : target object class not fount
juha Oct 25, 2002 12:21 PM (in response to be322634)The details are part of the Sun RI implementation, but it most likely attempts to find the classes from its own classloader repository. To add your own classes there you need to register a classloader with the MBean server. Most convenient way is to add them through an MLet.
If I still remember 2.x series correctly, jboss.jcml file is an MLet file, you could try adding your lib there and see if it helps -- or create your own MLet that brings to classes into the MBean server class repository. -
4. Re: ModelMBeans : target object class not fount
be322634 Oct 29, 2002 6:08 AM (in response to be322634)If I look at the Agent and ask for all its URL I see my jar file included in it, so what else can I do ?
-
5. Re: ModelMBeans : target object class not fount
juha Oct 29, 2002 9:47 PM (in response to be322634)Is this a problem just with the HTTP Adaptor not finding the class, can you invoke the operations of the MBean otherwise normally?
-
6. Re: ModelMBeans : target object class not fount
be322634 Oct 31, 2002 10:09 AM (in response to be322634)Yes using the HTTP adaptor I can perform the other operations. What I've also noticed is that when I make the argument read/write and try to modify the argument using its setter, JBOSS starts using 99% of the CPU and I have to stop it.
Erik -
7. Re: ModelMBeans : target object class not fount
juha Nov 1, 2002 5:27 AM (in response to be322634)Yeah the CPU spin was a bug in Sun RI modelmbean implementation.
I recommend you update your JBoss to 3.x version if you can. At least we can try to fix/patch problems in that case if they persist.