3 Replies Latest reply on Nov 29, 2003 4:54 AM by juha

    MBean wont deploy

    bigbinc

      I am trying to deploy an mbean while jboss is running. I am pretty sure I have the right type of bean
      unless I have to use a DynamicMBean? I have included the error message and other files.

      I am placing them in two different places in the default/deploy and in the actual default/lib, both fail with same error.

      16:33:07,826 INFO [MainDeployer] Starting deployment of package:

      file:/C:/jboss/jboss/jboss-3.2.1tom/server/default/deploy/retro.sar
      16:33:07,936 WARN [NestedThrowable] Duplicate throwable nesting of same base type: class

      org.jboss.deployment.DeploymentException is assignable from: class org.jboss.deployment.DeploymentException
      16:33:07,936 ERROR [MainDeployer] could not create deployment:

      file:/C:/jboss/jboss/jboss-3.2.1tom/server/default/deploy/retro.sar
      org.jboss.deployment.DeploymentException: create operation failed for package

      file:/C:/jboss/jboss/jboss-3.2.1tom/server/default/deploy/retro.sar; - nested throwable:

      (org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.NoSuchMethodException))


      creates a .sar file in JBOSS_HOME/server/default/deploy/.

      contents:

      META-INF/
      META-INF/MANIFEST.MF
      org/
      org/retro/
      org/retro/gis/
      META-INF/jboss-service.xml
      org/retro/gis/JNDIViewB.class
      org/retro/gis/JNDIViewDMBean.class











      import org.jboss.system.ServiceMBeanSupport;

      //
      // Main File Implementation
      //
      public class RetroServer extends ServiceMBeanSupport implements RetroServerMBean {


      // next file

      package org.retro.gis;

      public interface RetroServerMBean extends org.jboss.system.ServiceMBean {

      public static final javax.management.ObjectName OBJECT_NAME =
      org.jboss.mx.util.ObjectNameFactory.create("user:type=RetroServer");

      java.lang.String listTest();

      } // end of the interface











      == Different MBean ====

      On a different MBean based on JNDIView exact code, I get this error.

      ile:/C:/jboss/jboss/jboss-3.2.1tom/server/default/deploy/jndi.sar
      16:33:07,656 WARN [NestedThrowable] Duplicate throwable nesting of same base type: class org.jboss.deployment.DeploymentException is assignable from: class org.jboss.deployment.DeploymentException
      16:33:07,656 ERROR [MainDeployer] could not create deployment: file:/C:/jboss/jboss/jboss-3.2.1tom/server/default/deploy/jndi.sar
      org.jboss.deployment.DeploymentException: create operation failed for package file:/C:/jboss/jboss/jboss-3.2.1tom/server/default/deploy/jndi.sar; - nested throwable: (org.jboss.deployment.DeploymentException: Class does not expose a management interface: org.retro.gis.JNDIViewB; - nested throwable: (javax.management.NotCompliantMBeanException: Class does not expose a management interface: org.retro.gis.JNDIViewB))