Closed thirdreplicator closed 9 years ago
Is there a way to pass in an existing database connection object into korma?
One possible cause for this could be missing JBDC driver - do you have it on classpath?
I rebooted my computer and then the problem went away.
On Sun, Oct 26, 2014 at 9:57 AM, Immo Heikkinen notifications@github.com wrote:
One possible cause for this could be missing JBDC driver - do you have it on classpath?
— Reply to this email directly or view it on GitHub https://github.com/korma/Korma/issues/257#issuecomment-60523700.
Hi, I'm embedding korma in a Grails 2 application (by putting an uberjar in the GRAILS_APP/lib directory). The code runs fine in leiningen, but in the context of the grails app I'm having trouble connecting to the database. Any suggestions would be greatly appreciated. Thanks in advance.
| Error Caused by: java.sql.SQLException: Connections could not be acquired from the underlying database! | Error at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106) | Error at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:529) | Error at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128) | Error at clojure.java.jdbc$get_connection.invoke(jdbc.clj:248) | Error at korma.db$do_query.invoke(db.clj:273) | Error at korma.core$exec.invoke(core.clj:491) | Error at | mycode.database$tag_cluster_list_by_cluster_run_id.invoke(database.clj:389)
...
| Error Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.