3 Replies Latest reply on May 9, 2008 8:26 AM by jaikiran pai

    No ClassLoaders found for: com.mchange.v2.c3p0.jboss.C3P0Poo

    Chandrakanth Patil Newbie

      I am using jboss 3.2.6. I am trying to configure c3p0 connection pool, but getting exception 'No ClassLoaders found for: com.mchange.v2.c3p0.jboss.C3P0PooledDataSource' when starting jboss. c3p0 has dependancy with JMX, I have added jmx jar in the lib folder, but still I am getting the same error.
      I am using j2sdk1.4. If I change it to j2sdk1.5, c3p0 works fine. But my application works on j2sdk1.4, so I need to get c3p0 working on j2sdk1.4.
      Please let me know if any one faced the same problem.

        • 1. Re: No ClassLoaders found for: com.mchange.v2.c3p0.jboss.C3P
          jaikiran pai Master

          Please post the entire exception stacktrace. Have you placed the c3p0-*.jar in the %JBOSS_HOME%\server\< serverName>\lib folder?

          • 2. Re: No ClassLoaders found for: com.mchange.v2.c3p0.jboss.C3P
            Chandrakanth Patil Newbie

            With JMX jars I am getting a different error. Well, I tried again by taking a fresh Jboss install and then added just c3p0 jar file in lib and also added c3p0-service.xml file in deploy folder. Now, when I start jboss it throws below exception. But this exception doesn't block/stop any thing, the pool gets created and my application runs fine. I couldn't figure out how to disabling this exception. again this is related to JMX only.

            2008-05-08 21:10:53,095 INFO com.mchange.v2.c3p0.C3P0Registry - jdk1.5 management interfaces unavailable... JMX support disabled.
            java.lang.ClassNotFoundException: No ClassLoaders found for: java.lang.management.ManagementFactory
            at org.jboss.mx.loading.LoadMgr3.beginLoadTask(Unknown Source)
            at org.jboss.mx.loading.UnifiedClassLoader3.loadClassImpl(Unknown Source)
            at org.jboss.mx.loading.UnifiedClassLoader3.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:141)
            at com.mchange.v2.c3p0.C3P0Registry.(C3P0Registry.java:132)
            at com.mchange.v2.c3p0.impl.PoolBackedDataSourceBase.(PoolBackedDataSourceBase.java:228)
            at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.(AbstractPoolBackedDataSource.java:62)
            at com.mchange.v2.c3p0.ComboPooledDataSource.(ComboPooledDataSource.java:109)
            at com.mchange.v2.c3p0.ComboPooledDataSource.(ComboPooledDataSource.java:105)
            at com.mchange.v2.c3p0.jboss.C3P0PooledDataSource.(C3P0PooledDataSource.java:46)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
            at org.jboss.mx.server.MBeanServerImpl.instantiate(Unknown Source)
            at org.jboss.mx.server.MBeanServerImpl.instantiate(Unknown Source)
            at org.jboss.mx.server.MBeanServerImpl.createMBean(Unknown Source)
            at org.jboss.system.ServiceCreator.install(Unknown Source)
            at org.jboss.system.ServiceConfigurator.internalInstall(Unknown Source)
            at org.jboss.system.ServiceConfigurator.install(Unknown Source)
            at org.jboss.system.ServiceController.install(Unknown Source)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(Unknown Source)
            at org.jboss.mx.server.Invocation.dispatch(Unknown Source)
            at org.jboss.mx.server.Invocation.dispatch(Unknown Source)
            at org.jboss.mx.server.Invocation.invoke(Unknown Source)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Unknown Source)
            at org.jboss.mx.server.MBeanServerImpl.invoke(Unknown Source)
            at org.jboss.mx.util.MBeanProxyExt.invoke(Unknown Source)
            at $Proxy4.install(Unknown Source)
            at org.jboss.deployment.SARDeployer.create(Unknown Source)
            at org.jboss.deployment.MainDeployer.create(Unknown Source)
            at org.jboss.deployment.MainDeployer.deploy(Unknown Source)
            at org.jboss.deployment.MainDeployer.deploy(Unknown Source)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(Unknown Source)
            at org.jboss.mx.server.Invocation.dispatch(Unknown Source)
            at org.jboss.mx.server.Invocation.dispatch(Unknown Source)
            at org.jboss.mx.server.Invocation.invoke(Unknown Source)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Unknown Source)
            at org.jboss.mx.server.MBeanServerImpl.invoke(Unknown Source)
            at org.jboss.mx.util.MBeanProxyExt.invoke(Unknown Source)
            at $Proxy8.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(Unknown Source)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(Unknown Source)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(Unknown Source)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(Unknown Source)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(Unknown Source)
            at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(Unknown Source)
            at org.jboss.mx.server.Invocation.dispatch(Unknown Source)
            at org.jboss.mx.server.Invocation.dispatch(Unknown Source)
            at org.jboss.mx.server.Invocation.invoke(Unknown Source)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Unknown Source)
            at org.jboss.mx.server.MBeanServerImpl.invoke(Unknown Source)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(Unknown Source)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(Unknown Source)
            at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(Unknown Source)
            at org.jboss.mx.server.Invocation.dispatch(Unknown Source)
            at org.jboss.mx.server.Invocation.dispatch(Unknown Source)
            at org.jboss.mx.server.Invocation.invoke(Unknown Source)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Unknown Source)
            at org.jboss.mx.server.MBeanServerImpl.invoke(Unknown Source)
            at org.jboss.mx.util.MBeanProxyExt.invoke(Unknown Source)
            at $Proxy4.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(Unknown Source)
            at org.jboss.deployment.MainDeployer.start(Unknown Source)
            at org.jboss.deployment.MainDeployer.deploy(Unknown Source)
            at org.jboss.deployment.MainDeployer.deploy(Unknown Source)
            at org.jboss.deployment.MainDeployer.deploy(Unknown Source)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(Unknown Source)
            at org.jboss.mx.server.Invocation.dispatch(Unknown Source)
            at org.jboss.mx.server.Invocation.dispatch(Unknown Source)
            at org.jboss.mx.server.Invocation.invoke(Unknown Source)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Unknown Source)
            at org.jboss.mx.server.MBeanServerImpl.invoke(Unknown Source)
            at org.jboss.mx.util.MBeanProxyExt.invoke(Unknown Source)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(Unknown Source)
            at org.jboss.system.server.ServerImpl.start(Unknown Source)
            at org.jboss.Main.boot(Unknown Source)
            at org.jboss.Main$1.run(Unknown Source)
            at java.lang.Thread.run(Thread.java:534)
            2008-05-08 21:10:53,095 INFO com.mchange.v2.c3p0.C3P0Registry - Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]

            • 3. Re: No ClassLoaders found for: com.mchange.v2.c3p0.jboss.C3P
              jaikiran pai Master

              The java.lang.management.ManagementFactory class was introduced in Java 5. Since you are using JDK 1.4, this is not available. I guess, you can ignore those INFO messages:


              2008-05-08 21:10:53,095 INFO com.mchange.v2.c3p0.C3P0Registry - jdk1.5 management interfaces unavailable... JMX support disabled.