3 Replies Latest reply on Dec 5, 2003 4:15 PM by juha

    Trouble deploying XMBean sar in 3.2.2

    andrewboyd

      Hi all,
      I'm trying to deploy an XMBean which extends ServiceMBean and my Impl extends ServiceMeanSupport with in a sar. But I'm getting an
      IntrospectionException error.

      [ServiceCreator] About to create xmbean object: drs.kafe:type=Host,name=Host with code: com.digitalreasoning.kafe.host.Host with descriptor: META-INF/Host.xml

      //So far so good the code is pointing to my class.

      [Host] Host default constructor complete

      // Thats from my constructor. Didn't see anything from my start though.

      [BasicMBeanRegistry] MBeanException: preRegister() failed [ObjectName='drs.kafe:type=Host,name=Host', Class=org.jboss.mx.modelmbean.XMBean (org.jboss.mx.modelmbean.XMBean@128215d)]
      Cause: ReflectionException: null
      Cause: javax.management.IntrospectionException: no method found for operation: enter

      // My class has an enter method but Class=org.jboss.mx.modelmbean.XMBean doesn't
      // It knew my class a few seconds ago...

      [Host] Registration is not done -> stop
      // This says its coming from my class but it is not. maybe SuperClass?

      [Host] Trying to stop Host
      // My stop is getting called even though my start did not.

      Here is my jboss-service.xml:
      <?xml version="1.0" encoding="UTF-8"?>



      <mbean code="com.digitalreasoning.kafe.host.Host"
      name="drs.kafe:type=Host,name=Host"
      xmbean-dd="META-INF/Host.xml">
      <!--Host is the container in which agents reside-->
      jboss:type=Service,name=SystemProperties






      Any Ideas?

      BTW if anyone ever gets a DeploymentException that states "no protocol" make sure your xmbean-dd is pointing to the right place. For me it only works in META-INF.

      Thanks in advance,

      Andrew