How to configure JPA using hibernate to use Openshift mysql

Solution In Progress - Updated -


  • How to configure JPA using hibernate to use Openshift mysql database.
  • Why do we see below error when trying to connect to Openshift mysql.
 Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception:
java.sql.SQLException: No suitable driver
        at java.sql.DriverManager.getDriver(
        at com.mchange.v2.c3p0.DriverManagerDataSource.driver(
        at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(
        at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(
        at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(
        at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(
        at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(
        at com.mchange.v2.resourcepool.BasicResourcePool.access$800(
        at com.mchange.v2.resourcepool.BasicResourcePool$
        at com.mchange.v2.async.ThreadPoolAsynchronousRunner$


  • Openshift Enterprise
  • Openshift online

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In