4 Replies Latest reply on Jan 27, 2007 4:05 PM by Pavel Genevski

    Creating a MBean

    Tor Egil Jacobsen Novice

      I am trying to create a mbean, but I get a strange 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)
       at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:178)
       at org.jboss.system.ServiceController.install(ServiceController.java:215)
       at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)

      I am using the code presented in the example from the wiki (http://wiki.jboss.org/wiki/Wiki.jsp?page=ExampleHelloWorldService), using the general extention of the interface (not extends ServiceMBean).

      What might be wrong? I do not implement a management interface? I implement a interface containing the start() and stop() methods (like the example)