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

Quartz2 - Bundle c3p0 cannot find JDBC drivers on its classpath

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jboss-fuse-6.2
    • jboss-fuse-6.2
    • Camel
    • None
    • % %
    • Hide

      dev:dynamic-import <ID-of-c3p0-bundle>

      Alternatively:

      A work around using bundle fragments and a custom camel quartz2 feature is described as one of the comments.

      The benefit of the bundle fragment solution is that it survives restarts etc. of the container.

      Show
      dev:dynamic-import <ID-of-c3p0-bundle> Alternatively: A work around using bundle fragments and a custom camel quartz2 feature is described as one of the comments. The benefit of the bundle fragment solution is that it survives restarts etc. of the container.

    Description

      It is not possible to set a durable job store for your quartz2 component. Bundle wrap:mvn:c3p0/c3p0/0.9.1.2 cannot find JDBC drivers on its classpath. I have tested it with H2 and MySQL JDBC driver.

      ? | 274 - wrap_mvn_c3p0_c3p0_0.9.1.2 - 0.0.0 | Could not load driverClass org.h2.Driver
      java.lang.ClassNotFoundException: org.h2.Driver not found by wrap_mvn_c3p0_c3p0_0.9.1.2 [274]
      	at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1556)[org.apache.felix.framework-4.4.1.jar:]
      ...
      

      There is a workaround mentioned above...

      Attachments

        Activity

          People

            yfang@redhat.com Freeman(Yue) Fang
            mbasovni Martin Basovnik (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: