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:
[EMAIL PROTECTED] { url=file:/D:/jboss4/server/defaul
t/deploy/mbeantst.sar }
  deployer: [EMAIL PROTECTED]
  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

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3865531#3865531

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3865531


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to