3 Replies Latest reply on Dec 19, 2001 4:03 PM by Adrian Brock

    Hot Deploying MBean Problem

    Patrick Mau Newbie

      Hallo all,

      im using JBoss (MX microkernel) 3.0.0alpha(200112191121) and
      create a sar file with a simple MBean which uses jnp's ExternalContext.
      I created a "test.sar" with the following files:

      [jsp@asus] cat META-INF/jboss-service.xml
      <?xml version="1.0" encoding="UTF-8"?>


      external/ldap
      external-ldap.properties
      javax.naming.ldap.InitialLdapContext
      true



      [jsp@asus] cat external-ldap.properties
      java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
      java.naming.provider.url=ldap://localhost:389/o=JNDITutorial
      java.naming.security.principal=
      java.naming.security.authentication=simple
      java.naming.security.credentials=

      When I hotdeployed the test.sar I got the following Exception:

      16:34:47,938 INFO [AutoDeployer] Auto deploying: file:/opt/java/jboss-3.0.0alpha/deploy/test.sar
      16:34:48,011 ERROR [ServiceController] Could not configure MBean: DefaultDomain:service=ExternalContext,jndiName=external/ldap/asus
      javax.management.MBeanException: Exception thrown in the MBean's setter
      at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1421)
      at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
      at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:251)
      at org.jboss.system.ServiceController.install(ServiceController.java:200)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.deployment.ServiceDeployer.invoke(ServiceDeployer.java:734) at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:232) at org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport.java:97)
      at java.lang.reflect.Method.invoke(Native Method)