Hi,

I tried to get the following code (mix of code from the wiki and old examples) 
to work (first try to use MBEans, so this may be a stupid question):
-----
      InitialContext ctx = new InitialContext();
      //RMIAdaptor server = (RMIAdaptor) ctx.lookup("jmx/rmi/RMIAdaptor");
      MBeanServerConnection server = (MBeanServerConnection) 
ctx.lookup("jmx/invoker/RMIAdaptor");
      // Get the MBeanInfo for the JNDIView MBean
      //ObjectName name = new ObjectName("jboss:service=JNDIView");
      ObjectName name = new ObjectName("jboss:name=SystemProperties");
      MBeanInfo info = server.getMBeanInfo(name);
-----

The getMBeanInfo produces the following exception:
java.lang.NoClassDefFoundError: javax/management/BadStringOperationException

Is there still something I am missing?

Thanks for any help,
Eddie


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866778#3866778

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866778


-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to