com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source

Solution 1:

Another problem which may cause this kind of exception is that your JDBC driver doesn't exists in the classpath ...

Solution 2:

Some external problems and answers that might help:

  • Problem with c3p0
  • Problems to connect to mysql with hibernate
  • java.sql.SQLException Connections Could not be Acquired from the Underlying Database!

Please follow the links, they all cover problems with the same exception.