Unable to use io.fabric8:type=Fabric MBean via io.fabric8.api.jmx.FabricManagerMBean.
Issue
- I'm using
io.fabric8:type=FabricMBean viaio.fabric8.api.jmx.FabricManagerMBean. InJBoss Fuse 6.1.1it works fine, but in the version 6.2.0 when I try to connect at the Mbean i have this stacktrace:-
java.lang.NoClassDefFoundError: javax.management.NotificationListener not found by io.fabric8.fabric-api
- Is there any changes in the management of Mbean in
JBoss Fuse 6.2.0? - When using
io.fabric8:type=FabricMBean, like below sample.
FabricManagerMBean mBeanProxy = null;
try {
MBeanServerConnection connection = connector.getMBeanServerConnection();
ObjectName fabricObjectName = new ObjectName("io.fabric8:type=Fabric");
mBeanProxy = JMX.newMBeanProxy(connection, fabricObjectName,FabricManagerMBean.class, true);
} catch (Exception ex) {
ex.printStackTrace();
}
- Deploying the above sample code as a bundle on
Jboss Fuse 6.2gives the below error in the log.
java.lang.NoClassDefFoundError: javax.management.NotificationListener not found by io.fabric8.fabric-api [76]
at com.sun.proxy.$Proxy48.<clinit>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at java.lang.reflect.Proxy.newInstance(Proxy.java:764)
at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:755)
at javax.management.JMX.createProxy(JMX.java:416)
at javax.management.JMX.newMBeanProxy(JMX.java:208)
Environment
- Red Hat JBoss Fuse
- 6.2.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
