I have a MBean interface called DeviceMBean and then its implementation called DeviceMBeanImpl. Under the deploy directory of my configuration, I created a device.sar directory and put all the jars needed to run this code alongwith jboss-service.xml.
When I start the JBoss server I get the following exception:
org.jboss.deployment.DeploymentException: Class does not expose a management interface: java.lang.Object; - nested throwable: (javax.management.NotCompliantMBeanException: Class does not expose a management interface: java.lang.Object)
Any help will be appreciated.
Your MBean interface name must be implementation class name + "MBean"
So you have to rename your MBean impl class to Device