ClassNotFoundException - P6SpyManager

Help
Jorge Mota
2006-08-03
2013-04-25
  • Jorge Mota
    Jorge Mota
    2006-08-03

    Hi everybody!!

    I'm trying to put P6Spy in JBoss.
    The version I have instaled is jboss-3.0.8_tomcat-4.1.24.
    I'm having the error below:

    2006-08-03 12:08:39,195 INFO  [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/opt/jboss-3.0.8_tomcat-4.1.24/server/mdde/deploy/p6spy-service.xml
    2006-08-03 12:08:39,305 WARN  [org.jboss.system.ServiceConfigurator] Failed to complete install
    java.lang.ClassNotFoundException: Unexpected error during load of: com.p6spy.management.jboss.P6SpyManager, msg=org/jboss/util/ServiceMBeanSupport
            at org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:198)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
            at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:790)
            at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:266)
            at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:293)
            at org.jboss.system.ServiceCreator.install(ServiceCreator.java:86)
            at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:165)
            at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:128)
            at org.jboss.system.ServiceController.install(ServiceController.java:231)
            at java.lang.reflect.Method.invoke(Native Method)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
            at $Proxy2.install(Unknown Source)
            at org.jboss.deployment.SARDeployer.create(SARDeployer.java:191)
            at org.jboss.deployment.MainDeployer.create(MainDeployer.java:766)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:626)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
            at java.lang.reflect.Method.invoke(Native Method)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
            at $Proxy3.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:656)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:266)
            at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
            at java.lang.reflect.Method.invoke(Native Method)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:413)
            at java.lang.reflect.Method.invoke(Native Method)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
            at $Proxy2.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:232)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:575)
            at java.lang.reflect.Method.invoke(Native Method)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:324)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:221)
            at org.jboss.Main.boot(Main.java:148)
            at org.jboss.Main$1.run(Main.java:381)
            at java.lang.Thread.run(Thread.java:479)
    2006-08-03 12:08:39,364 ERROR [org.jboss.deployment.MainDeployer] could not create deployment: file:/opt/jboss-3.0.8_tomcat-4.1.24/server/mdde/deploy/p6spy-service.xml
    org.jboss.deployment.DeploymentException: p6spy:service=P6SpyManager is not registered.; - nested throwable: (javax.management.InstanceNotFoundException: p6spy:service=P6SpyManager is not registered.)
            at org.jboss.deployment.SARDeployer.create(SARDeployer.java:210)
            at org.jboss.deployment.MainDeployer.create(MainDeployer.java:766)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:626)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
            at java.lang.reflect.Method.invoke(Native Method)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
            at $Proxy3.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:656)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:266)
            at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
            at java.lang.reflect.Method.invoke(Native Method)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:413)
            at java.lang.reflect.Method.invoke(Native Method)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
            at $Proxy2.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:232)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:575)
            at java.lang.reflect.Method.invoke(Native Method)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:324)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:221)
            at org.jboss.Main.boot(Main.java:148)
            at org.jboss.Main$1.run(Main.java:381)
            at java.lang.Thread.run(Thread.java:479)

    It seems to me that there is one dependency of p6spy.jar that I don't have. I can't find the jar that contains the org.jboss.util.ServiceMBeanSupport class anywhere. But can't find it in the Internet too.

    Anyone can help me?

     
    • Pat
      Pat
      2009-03-13

      did u check standard jboss dist?

       
  • Pat
    Pat
    2010-12-29

    Hi there -

    Sorry for the late response. I think I am the only one who has recently done anything with p6spy. I got some basic access to this project from the only original developer I could reach. Unfortunately, not full project admin access. So I have moved over to github for further development.

    You are welcome to help out there by forking and then sending me a pull request.

    Further development at : https://github.com/patmoore/p6spy