4 Replies Latest reply on Feb 17, 2012 7:46 AM by Vaibhav N

    java.lang.ClassNotFoundException: org.jboss.as.jmx.PluggableMBeanServerBuilder for "jboss-as-7.1.0.CR1b" release

    Vaibhav N Newbie

      Hi,

       

      My application is working fine with “jboss-as-web-7.0.2.Final” & “jboss-as-7.1.0.Beta1b” release versions but facing some issue for “jboss-as-7.1.0.CR1b”.

       

      Following error is showing for “jboss-as-7.1.0.CR1b” server:

      .......................
      Caused by: javax.management.JMRuntimeException: Failed to load MBeanServerBuilder class org.jboss.as.jmx.PluggableMBeanServerBuilder: java.lang.ClassNotFoundException: org.jboss.as.jmx.PluggableMBeanServerBuilder from [Module "deployment.tcent.70-foundation.war:main" from Service Module Loader]

                      at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:502) [rt.jar:1.7.0_02]

                      at javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:538) [rt.jar:1.7.0_02]

                      at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:315) [rt.jar:1.7.0_02]

                      at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:230) [rt.jar:1.7.0_02]

                      at com.teamcenter.mld.jmx.PlmLocalMBeanServer.getMBS(PlmLocalMBeanServer.java:371) [plmJMXmonitor-0.0.3.jar:]

                      at com.teamcenter.mld.jmx.PlmLocalMBeanServer.<clinit>(PlmLocalMBeanServer.java:87) [plmJMXmonitor-0.0.3.jar:]

                      ... 22 more

      Caused by: java.lang.ClassNotFoundException: org.jboss.as.jmx.PluggableMBeanServerBuilder from [Module "deployment.tcent.70-foundation.war:main" from Service Module Loader]

                      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

                      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

                      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

                      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

                      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

                      at javax.management.MBeanServerFactory.loadBuilderClass(MBeanServerFactory.java:445) [rt.jar:1.7.0_02]

                      at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:487) [rt.jar:1.7.0_02]

                      ... 27 more

       

      “PluggableMBeanServerBuilder” class is added in “jboss-as-jmx-7.1.0.CR1b.jar” file since “7.1.0.CR1b” release only so causing this issue.

      Following is JBoss svn repo link :

      https://github.com/kabir/jboss-as/commit/158137587ac3b4595ae1b27db63d7ffaccff2d78

       

      It seems lot of code changed in same. This issue might be the regression of this code or added feature.

      Unfortunately, it is reproducible with JBoss latest nightly build too.

       

      Does anyone have any idea? Please suggest.

       

      Thanks in advance,

      Vaibhav