Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-9304

Quartz2 - Bundle c3p0 cannot find MySQL drivers on its classpath

    XMLWordPrintable

Details

    • % %
    • Hide

      Execute the following in the "Apache ServiceMix :: Bundles :: c3p0" artifact:

      > dev:dynamic-import <c3p0_bundleID>

      Show
      Execute the following in the "Apache ServiceMix :: Bundles :: c3p0" artifact: > dev:dynamic-import <c3p0_bundleID>
    • Hide
      1. Unzip Fuse 7.0.0.fuse-000191-redhat-1 distribution
      2. Grant admin user under etc/user.properties file
      3. Start Fuse server: bin/fuse
      4. Execute the following:

      > osgi:install -s wrap:mvn:mysql/mysql-connector-java/5.1.39
      > features:install camel-quartz2

      Then, put the attached artifact in the deployment folder and check the logs.

      Show
      Unzip Fuse 7.0.0.fuse-000191-redhat-1 distribution Grant admin user under etc/user.properties file Start Fuse server: bin/fuse Execute the following: > osgi:install -s wrap:mvn:mysql/mysql-connector-java/5.1.39 > features:install camel-quartz2 Then, put the attached artifact in the deployment folder and check the logs.

    Description

      There are multiple entries of at the moment of camel-quartz2 feature install:

      2018-08-13 10:21:20,548 | WARN | 766]HelperThread#2 | c.m.v.c.DriverManagerDataSource | 225 - org.apache.servicemix.bundles.c3p0 - 0.9.5.2_1 | Could not load driverClass com.mysql.jdbc.Driver
      java.lang.ClassNotFoundException: com.mysql.jdbc.Driver not found by org.apache.servicemix.bundles.c3p0 [225]
      at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639) ~[?:?]
      at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80) ~[?:?]
      at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053) ~[?:?]
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:?]
      at java.lang.Class.forName0(Native Method) ~[?:?]
      at java.lang.Class.forName(Class.java:264) ~[?:?]
      at com.mchange.v2.c3p0.DriverManagerDataSource.ensureDriverLoaded(DriverManagerDataSource.java:143) [225:org.apache.servicemix.bundles.c3p0:0.9.5.2_1]
      at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:173) [225:org.apache.servicemix.bundles.c3p0:0.9.5.2_1]
      at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:220) [225:org.apache.servicemix.bundles.c3p0:0.9.5.2_1]
      at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:206) [225:org.apache.servicemix.bundles.c3p0:0.9.5.2_1]
      at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:203) [225:org.apache.servicemix.bundles.c3p0:0.9.5.2_1]
      at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1138) [225:org.apache.servicemix.bundles.c3p0:0.9.5.2_1]
      at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1125) [225:org.apache.servicemix.bundles.c3p0:0.9.5.2_1]
      at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44) [225:org.apache.servicemix.bundles.c3p0:0.9.5.2_1]
      at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1870) [225:org.apache.servicemix.bundles.c3p0:0.9.5.2_1]
      at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696) [225:org.apache.servicemix.bundles.c3p0:0.9.5.2_1]
      2018-08-13 10:21:20,551 | WARN | 766]HelperThread#1 | c.m.v.c.DriverManagerDataSource | 225 - org.apache.servicemix.bundles.c3p0 - 0.9.5.2_1 | Could not load driverClass com.mysql.jdbc.Driver
      java.lang.ClassNotFoundException: com.mysql.jdbc.Driver not found by org.apache.servicemix.bundles.c3p0 [225]
      at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639) ~[?:?]
      at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80) ~[?:?]
      at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053) ~[?:?]
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:?]
      at java.lang.Class.forName0(Native Method) ~[?:?]
      at java.lang.Class.forName(Class.java:264) ~[?:?]
      at com.mchange.v2.c3p0.DriverManagerDataSource.ensureDriverLoaded(DriverManagerDataSource.java:143) [225:org.apache.servicemix.bundles.c3p0:0.9.5.2_1]
      at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:173) [225:org.apache.servicemix.bundles.c3p0:0.9.5.2_1]
      at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:220) [225:org.apache.servicemix.bundles.c3p0:0.9.5.2_1]
      at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:206) [225:org.apache.servicemix.bundles.c3p0:0.9.5.2_1]
      at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:203) [225:org.apache.servicemix.bundles.c3p0:0.9.5.2_1]
      at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1138) [225:org.apache.servicemix.bundles.c3p0:0.9.5.2_1]
      at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1125) [225:org.apache.servicemix.bundles.c3p0:0.9.5.2_1]
      at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44) [225:org.apache.servicemix.bundles.c3p0:0.9.5.2_1]
      at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1870) [225:org.apache.servicemix.bundles.c3p0:0.9.5.2_1]
      at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696) [225:org.apache.servicemix.bundles.c3p0:0.9.5.2_1]

      Seems to be related to a previous issue: https://issues.jboss.org/browse/ENTESB-2646.

      Attachments

        Activity

          People

            rhn-support-tasato Tadayoshi Sato
            emunoz@redhat.com Elkin Dario Munoz Duarte
            Tomas Turek Tomas Turek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: