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

爱⌒轻易说出口 提交于 2019-11-27 08:53:40

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

Andreas_D

Some external problems and answers that might help:

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

Your c3p0-config.xml or c3p0-config.properties is not getting loaded, make sure one of the file should be include in the classpath while deploying in server.

Check your database connection. When it is down can happen this exception

Was missing a configuration property while setting up the ComboPooledDataSource ; was missing the jdbc driver name; when I set this - was able to get the connection;

Check your JDBC driver version, I've got the same problem. I'm using postgresql, I'd just updated the version in pom.xml and everything worked fine.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!