1 Reply Latest reply on Jul 19, 2002 7:05 PM by adrian.brock

    createMBean exceptions

    luoz

      Hi,

      I got a java.lang.NoClassFoundErrorException when I called createMBean. I have put the called class jar file into my classpath. Does createMBean try to look for the class.

      MBeanServer nServer = MBeanServerFactory.createMBeanServer("cube");

      ObjectName nNamingName = new ObjectName(nServer.getDefaultDomain(), "service", "Jean" );

      nServer.createMBean("com.testP.Borg",
      nNamingName);


      Then I got the RuntimeErrorException as following -TestServer.main(), caught: RuntimeErrorException: com.testP.Borg constructor has thrown an error: java.lang.NoClassDefFoundError: org/apache/log4j/Priority

      Cause: java.lang.NoClassDefFoundError: org/apache/log4j/Priority, target: java.lang.NoClassDefFoundError: org/apache/log4j/Priority
      RuntimeErrorException: com.testP.Borg constructor has thrown an error: java.lang.NoClassDefFoundError: org/apache/log4j/Priority

      Cause: java.lang.NoClassDefFoundError: org/apache/log4j/Priority