2 Replies Latest reply on Aug 3, 2009 5:02 AM by Rajika Kumarasiri

    org/jboss/mx/server/MBeanServerBuilderImpl not found execpti

    Rajika Kumarasiri Newbie

      hello everybody,
      I guess this the correct forum to ask this question. If not please forward me to the correct one.

      Environment:
      OS - Linux
      JBoss 5.0.0GA.

      I am trying to deploy my application on JBoss. My application requires some data sources so I configured them as follows.

      <datasources>
       <local-tx-datasource>
      
       <!-- The jndi name of the DataSource, it is prefixed with java:/ -->
       <!-- Datasources are not available outside the virtual machine -->
       <jndi-name>XADerbyDS</jndi-name>
      
       <!-- for in-process persistent db, saved when jboss stops. The
       org.jboss.jdbc.DerbyDatabase mbean is necessary for properly db shutdown -->
       <connection-url>jdbc:derby://localhost:1527/esbdb;create=false</connection-url>
      
       <!-- The driver class -->
       <driver-class>org.apache.derby.jdbc.ClientDriver</driver-class>
      
       <!-- The login and password -->
       <user-name>esb</user-name>
       <password>esb</password>
      
       <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
       <min-pool-size>5</min-pool-size>
      
       <!-- The maximum connections in a pool/sub-pool -->
       <max-pool-size>20</max-pool-size>
      
       <!-- The time before an unused connection is destroyed -->
       <idle-timeout-minutes>5</idle-timeout-minutes>
      
       <!-- Whether to check all statements are closed when the connection is returned to the pool,
       this is a debugging feature that should be turned off in production -->
       <track-statements/>
      
       <!-- This mbean can be used when using in process persistent derby -->
       <!-- <depends>jboss:service=Derby</depends> -->
       </local-tx-datasource>
       <local-tx-datasource>
       <jndi-name>XADerbyDS1</jndi-name>
       <connection-url>jdbc:derby://localhost:1527/esbdb1;create=false</connection-url>
       <driver-class>org.apache.derby.jdbc.ClientDriver</driver-class>
       <user-name>esb</user-name>
       <password>esb</password>
       <min-pool-size>5</min-pool-size>
       <max-pool-size>20</max-pool-size>
       <idle-timeout-minutes>5</idle-timeout-minutes>
       <track-statements/>
       <depends>jboss:service=Derby</depends>
       </local-tx-datasource>
      
       <mbean code="org.jboss.jdbc.DerbyDatabase" name="jboss:service=Derby"/>
      </datasources>
      
      


      I put the required jars (derby.jar, derbyclient.jar, derbynet.jar and derby-plugin.jar) into
      $JBOSS_HOME/server/default/lib and I put the jboss-jmx.jar jar also into the same directory. But still I am getting the following exception when starting the JBOss server. Any help to fix the issue is greatly appreciate. Thanks in advance.


      12:34:30,148 ERROR [AbstractKernelController] Error installing to Start: name=jboss:service=Derby state=Create mode=Manual requiredState=Installed
      java.lang.ExceptionInInitializerError
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:242)
       at org.jboss.jdbc.DerbyDatabase.getConnection(DerbyDatabase.java:222)
       at org.jboss.jdbc.DerbyDatabase.startService(DerbyDatabase.java:189)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
       at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
       at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)
       at $Proxy36.start(Unknown Source)
       at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
       at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
       at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
       at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
       at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
       at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
       at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
       at org.jboss.system.ServiceController.start(ServiceController.java:460)
       at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)
       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
       at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
       at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
       at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
       at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
       at org.jboss.Main.boot(Main.java:209)
       at org.jboss.Main$1.run(Main.java:547)
       at java.lang.Thread.run(Thread.java:595)
      Caused by: javax.management.JMRuntimeException: Failed to load MBeanServerBuilder class org.jboss.mx.server.MBeanServerBuilderImpl: java.lang.ClassNotFoundException: org/jboss/mx/server/MBeanServerBuilderImpl
       at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:499)
       at javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:530)
       at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:304)
       at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:219)
       at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:180)
       at sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:264)
       at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:512)
       at org.apache.derby.impl.services.jmx.JMXManagementService$3.run(Unknown Source)
       at org.apache.derby.impl.services.jmx.JMXManagementService$3.run(Unknown Source)
       at java.security.AccessController.doPrivileged(Native Method)
       at org.apache.derby.impl.services.jmx.JMXManagementService.findServer(Unknown Source)
       at org.apache.derby.impl.services.jmx.JMXManagementService.boot(Unknown Source)
       at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
       at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
       at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown Source)
       at org.apache.derby.iapi.services.monitor.Monitor.startSystemModule(Unknown Source)
       at org.apache.derby.impl.services.monitor.BaseMonitor.runWithState(Unknown Source)
       at org.apache.derby.impl.services.monitor.FileMonitor.<init>(Unknown Source)
       at org.apache.derby.iapi.services.monitor.Monitor.startMonitor(Unknown Source)
       at org.apache.derby.iapi.jdbc.JDBCBoot.boot(Unknown Source)
       at org.apache.derby.jdbc.EmbeddedDriver.boot(Unknown Source)
       at org.apache.derby.jdbc.EmbeddedDriver.<clinit>(Unknown Source)
       ... 56 more
      Caused by: java.lang.ClassNotFoundException: org/jboss/mx/server/MBeanServerBuilderImpl
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:164)
       at javax.management.MBeanServerFactory.loadBuilderClass(MBeanServerFactory.java:445)
       at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:484)
       ... 77 more
      12:34:30,194 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/home/rajika/installtion/jboss/jboss-5.0.0.GA/server/default/deploy/esb-derby-ds.xml state=PreReal mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: Error deploying: jboss:service=Derby
       at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:123)
       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
       at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
       at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
       at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
       at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
       at org.jboss.Main.boot(Main.java:209)
       at org.jboss.Main$1.run(Main.java:547)
       at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.ExceptionInInitializerError
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:242)
       at org.jboss.jdbc.DerbyDatabase.getConnection(DerbyDatabase.java:222)
       at org.jboss.jdbc.DerbyDatabase.startService(DerbyDatabase.java:189)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
       at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
       at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)
       at $Proxy36.start(Unknown Source)
       at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
       at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
       at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
       at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
       at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
       at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
       at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
       at org.jboss.system.ServiceController.start(ServiceController.java:460)
       at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)
       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
       ... 23 more
      Caused by: javax.management.JMRuntimeException: Failed to load MBeanServerBuilder class org.jboss.mx.server.MBeanServerBuilderImpl: java.lang.ClassNotFoundException: org/jboss/mx/server/MBeanServerBuilderImpl
       at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:499)
       at javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:530)
       at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:304)
       at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:219)
       at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:180)
       at sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:264)
       at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:512)
       at org.apache.derby.impl.services.jmx.JMXManagementService$3.run(Unknown Source)
       at org.apache.derby.impl.services.jmx.JMXManagementService$3.run(Unknown Source)
       at java.security.AccessController.doPrivileged(Native Method)
       at org.apache.derby.impl.services.jmx.JMXManagementService.findServer(Unknown Source)
       at org.apache.derby.impl.services.jmx.JMXManagementService.boot(Unknown Source)
       at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
       at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
       at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown Source)
       at org.apache.derby.iapi.services.monitor.Monitor.startSystemModule(Unknown Source)
       at org.apache.derby.impl.services.monitor.BaseMonitor.runWithState(Unknown Source)
       at org.apache.derby.impl.services.monitor.FileMonitor.<init>(Unknown Source)
       at org.apache.derby.iapi.services.monitor.Monitor.startMonitor(Unknown Source)
       at org.apache.derby.iapi.jdbc.JDBCBoot.boot(Unknown Source)
       at org.apache.derby.jdbc.EmbeddedDriver.boot(Unknown Source)
       at org.apache.derby.jdbc.EmbeddedDriver.<clinit>(Unknown Source)
       ... 56 more
      Caused by: java.lang.ClassNotFoundException: org/jboss/mx/server/MBeanServerBuilderImpl
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:164)
       at javax.management.MBeanServerFactory.loadBuilderClass(MBeanServerFactory.java:445)
       at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:484)
       ... 77 more