4 Replies Latest reply on Feb 8, 2005 4:19 AM by darranl

    Deploy Simple MBean Fail

    lawrenceleung

      Hello :

      I try to deploy a simple Mbean but fail.

      Here is the code :

      package mbeantst;

      import org.jboss.system.*;

      public class TMBeanService1 implements Service
      {
      public TMBeanService1 ()
      {
      }

      public void create () throws Exception
      {
      System.out.println("A");
      }

      public void start () throws Exception
      {
      System.out.println("B");
      }

      public void stop ()
      {
      System.out.println("C");
      }

      public void destroy ()
      {
      System.out.println("D");
      }


      }
      and the related deployment XML :

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE server PUBLIC "-//JBoss//DTD MBean Service 3.2//EN" "http://www.jboss.org/j2ee/dtd/jboss-service_3_2.dtd">


      hellombean


      and
      the error message as follows :

      17:45:04,156 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
      Incompletely deployed packages:
      org.jboss.deployment.DeploymentInfo@c1b5127f { url=file:/D:/jboss4/server/defaul
      t/deploy/mbeantst.sar }
      deployer: org.jboss.deployment.SARDeployer@811c88
      status: Deployment FAILED reason: Class does not expose a management interface
      : java.lang.Object; - nested throwable: (javax.management.NotCompliantMBeanExcep
      tion: Class does not expose a management interface: java.lang.Object)
      state: FAILED
      watch: file:/D:/jboss4/server/default/deploy/mbeantst.sar
      altDD: null
      lastDeployed: 1106732692125
      lastModified: 1106732692109
      mbeans:


      Thanks in advance.
      Law