Uploaded image for project: 'Hibernate ORM'
  1. HHH-8209

C3P0 and Proxool classloaders do not work in OSGi

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      java.sql.SQLException: No suitable driver
      	at java.sql.DriverManager.getDriver(DriverManager.java:289)[:1.7.0_06]
      	at com.mchange.v2.c3p0.DriverManagerDataSource.driver(DriverManagerDataSource.java:224)[68:wrap_mvn_c3p0_c3p0_0.9.1:0]
      	at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:135)[68:wrap_mvn_c3p0_c3p0_0.9.1:0]
      	at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)[68:wrap_mvn_c3p0_c3p0_0.9.1:0]
      	at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)[68:wrap_mvn_c3p0_c3p0_0.9.1:0]
      	at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)[68:wrap_mvn_c3p0_c3p0_0.9.1:0]
      	at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)[68:wrap_mvn_c3p0_c3p0_0.9.1:0]
      	at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)[68:wrap_mvn_c3p0_c3p0_0.9.1:0]
      	at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)[68:wrap_mvn_c3p0_c3p0_0.9.1:0]
      	at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)[68:wrap_mvn_c3p0_c3p0_0.9.1:0]
      
      org.logicalcobwebs.proxool.ProxoolException: Couldn't load class org.h2.Driver
      

      They're not able to find the connection driver. Attempt to override TCCL within the connection provider?

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                brmeyer Brett Meyer
                Reporter:
                brmeyer Brett Meyer
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: