0 Replies Latest reply on Aug 29, 2013 6:06 AM by Unice Gwe Mbuamuh

    JMX Connector: java.lang.ClassNotFoundException: org.jboss.as.jmx.PluggableMBeanServerBuilder from [Module "org.jboss.as.standalone:main"

    Unice Gwe Mbuamuh Newbie

      Hi,

      I am trying to start an mbean following the instructions provided on the links below. But i am still getting the exception provided below. Thing is also as mention in the link i have to add org.jboss.as.jmx into the classloader. But i also discovered that org.jboss.as.jmx.PluggableMBeanServerBuilder is not found in the library present in that module. Where can i find this class so that i can add the module in the classloader. I also noticed after some research that the said class was in older versions of the module. What should i do in this case? Thanks for your input.

       

      https://docs.jboss.org/author/display/AS72/JMX+subsystem+configuration

       

      https://community.jboss.org/thread/195249

       

      10:07:50,130 WARN  [org.jboss.modules] (main) Failed to define class org.jboss.as.jmx.PluggableMBeanServerBuilder in Module "org.jboss.as.jmx:main" from local module loader @48ee22f7 (finder: local module finder @a39ab89 (roots: C:\project\jboss-eap-6.1Beta\modules,C:\project\jboss-eap-6.1Beta\modules\system\layers\base)): org.jboss.modules.ModuleLoadError: Error loading module from C:\project\jboss-eap-6.1Beta\modules\system\layers\base\org\jboss\remoting3\remoting-jmx\main\module.xml

          at org.jboss.modules.ModuleLoadException.toError(ModuleLoadException.java:78) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.Module.getPathsUnchecked(Module.java:1180) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.Module.loadModuleClass(Module.java:513) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_41]

          at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_41]

          at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_41]

          at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_41]

          at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:338) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:402) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:254) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.Module.loadModuleClass(Module.java:518) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at javax.management.MBeanServerFactory.loadBuilderClass(MBeanServerFactory.java:423) [rt.jar:1.6.0_41]

          at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:465) [rt.jar:1.6.0_41]

          at javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:511) [rt.jar:1.6.0_41]

          at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:298) [rt.jar:1.6.0_41]

          at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:213) [rt.jar:1.6.0_41]

          at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:174) [rt.jar:1.6.0_41]

          at sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:302) [rt.jar:1.6.0_41]

          at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:504) [rt.jar:1.6.0_41]

          at org.jboss.modules.Main.main(Main.java:324) [jboss-modules.jar:1.2.0.CR1-redhat-1]

      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[25,96]

      Message: Unexpected content of type 'element start' named '{urn:jboss:module:1.1}module'

          at org.jboss.modules.ModuleXmlParser.unexpectedContent(ModuleXmlParser.java:327) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.ModuleXmlParser.parseModuleContents(ModuleXmlParser.java:498) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.ModuleXmlParser.parseDocument(ModuleXmlParser.java:357) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:275) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:244) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.LocalModuleFinder.findModule(LocalModuleFinder.java:115) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.ModuleLoader.findModule(ModuleLoader.java:389) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:293) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:240) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.Module.addPaths(Module.java:840) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.Module.link(Module.java:1194) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.Module.getPaths(Module.java:1155) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          at org.jboss.modules.Module.getPathsUnchecked(Module.java:1178) [jboss-modules.jar:1.2.0.CR1-redhat-1]

          ... 30 more

       

      Exception in thread "main" javax.management.JMRuntimeException: Failed to load MBeanServerBuilder class org.jboss.as.jmx.PluggableMBeanServerBuilder: java.lang.ClassNotFoundException: org.jboss.as.jmx.PluggableMBeanServerBuilder from [Module "org.jboss.as.standalone:main" from local module loader @48ee22f7 (finder: local module finder @a39ab89 (roots: C:\project\jboss-eap-6.1Beta\modules,C:\project\jboss-eap-6.1Beta\modules\system\layers\base))]

          at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:480)

          at javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:511)

          at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:298)

          at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:213)

          at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:174)

          at sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:302)

          at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:504)

          at org.jboss.modules.Main.main(Main.java:324)

      Caused by: java.lang.ClassNotFoundException: org.jboss.as.jmx.PluggableMBeanServerBuilder from [Module "org.jboss.as.standalone:main" from local module loader @48ee22f7 (finder: local module finder @a39ab89 (roots: C:\project\jboss-eap-6.1Beta\modules,C:\project\jboss-eap-6.1Beta\modules\system\layers\base))]

          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:423)

          at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:465)

          ... 7 more

       

       

      Regards

      Unice