This content has been marked as final.
Show 1 reply
-
1. Re: JMX Classpath Issues with JBoss plugin?
aperezlo May 26, 2006 9:59 AM (in response to aperezlo)To anyone that has the same problem, here's what I figured out:
I had been following the advice of the Wiki here and getting a handle on the JBoss MBean server by calling:(MBeanServer) MBeanServerFactory.findFactory(null).get(0);
That worked fine from within Eclipse, but when run outside Eclipse, Sun's JVM MBean server was the first in the list returned, and the classes I needed were only available within the scope of the JBoss class loader.
The solution, which is less than perfect because it uses JBoss specific code, was to get a handle to the JBoss server using this method:org.jboss.mx.util.MBeanServerLocator.locateJBoss();
I hope this helps someone!
Cheers,
-Andrew