4 Replies Latest reply on Jun 28, 2012 5:01 AM by Sergiu Pienar

    java.lang.ClassNotFoundException: org.jboss.as.jmx.PluggableMBeanServerBuilder

    mukul goel Newbie

      Hi,

       

      The server i am using is jboss as7.2 alpha release.

       

      I am getting an exception

       

       

      javax.management.JMRuntimeException: Failed to load MBeanServerBuilder class org.jboss.as.jmx.PluggableMBeanServerBuilder: java.lang.ClassNotFoundException: org.jboss.as.jmx.PluggableMBeanServerBuilder from [Module "deployment.csaEARDev.ear.csaDev.war:main" from Service Module Loader]

       

       

      when my code is trying to create a MBeanServer

       

      here is the code snippet that throws the exception

       

       

      final static synchronized MBeanServer getMBeanServer() {

              try {

                  if (server == null) {

                      server = MBeanServerFactory.createMBeanServer();

                  }

              } catch (Exception e) {

                  ErrorHandler.log(Messages.STD_ERROR, e);

              }

              return server;

          }

       

       

       

      Please revert

      Any sort of assistance is appriciated..

       

      Thanks

      -Mukul