Hide Forgot
Description of problem: Need some plugin to discover mbeans from wildfly 10 in wildfly 10 mbeans-on-as7-plugin example work fine but in wildfly 10 it doesn't. Version-Release number of selected component (if applicable): 4.14 How reproducible: Based on rhq\etc\samples\mbeans-on-as7-plugin , i made a mbean plugin to wildfly 10. Steps to Reproduce: install mbeans-on-as7-plugin to discover mbeans in wildfly 10. Actual results: 2016-10-31 12:02:43,767 WARN [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Failure during discovery for [TEST JMX] Resources - failed after 6 ms. java.lang.Exception: Discovery component invocation failed. at org.rhq.core.pc.util.DiscoveryComponentProxyFactory$ComponentInvocationThread.call(DiscoveryComponentProxyFactory.java:309) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassCastException: org.rhq.modules.plugins.wildfly10.StandaloneASComponent cannot be cast to org.rhq.modules.plugins.jbossas7.BaseComponent at org.rhq.modules.plugins.jbossas7.jmx.ApplicationMBeansDiscoveryComponent.discoverResources(ApplicationMBeansDiscoveryComponent.java:235) at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.rhq.core.pc.util.DiscoveryComponentProxyFactory$ComponentInvocationThread.call(DiscoveryComponentProxyFactory.java:305) ... 4 more Expected results: To discover mbeans. Additional info: