日期:2014-05-19  浏览次数:20979 次

org.hibernate.util.JDBCExceptionReporter
原来在Tomcat里测试都是好好的,后来重新装了下Tomcat,测试就出错了。
log文件部分内容如下:
>>>>>>>LOG4J<<<<<<< 0 2009-04-27 17:54:49,328 ERROR [org.hibernate.util.JDBCExceptionReporter] - Connections could not be acquired from the underlying database!
>>>>>>>LOG4J<<<<<<< 1000 2009-04-27 17:54:50,328 ERROR [org.hibernate.util.JDBCExceptionReporter] - Connections could not be acquired from the underlying database!
>>>>>>>LOG4J<<<<<<< 1000 2009-04-27 17:54:50,328 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] - could not get database metadata
java.sql.SQLException: Connections could not be acquired from the underlying database!
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:104)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:264)
at com.mchange.v2.resourcepool.BasicResourcePool.awaitAcquire(BasicResourcePool.java:972)
at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:208)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:260)
... 52 more
>>>>>>>LOG4J<<<<<<< 1093 2009-04-27 17:54:50,421 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] - could not complete schema update
java.sql.SQLException: Connections could not be acquired from the underlying database!
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:104)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:264)
at com.mchange.v2.c3p0.PoolBackedDataSource.getConnection(PoolBackedDataSource.java:94)

... 52 more
>>>>>>>LOG4J<<<<<<< 29156 2009-04-27 17:55:18,484 ERROR [org.hibernate.util.JDBCExceptionReporter] - Connections could not be acquired from the underlying database!
>>>>>>>LOG4J<<<<<<< 29172 2009-04-27 17:55:18,500 ERROR [org.hibernate.util.JDBCExceptionReporter] - Connections could not be acquired from the underlying database!
>>>>>>>LOG4J<<<<<<< 90312 2009-04-27 17:56:19,640 ERROR [org.hibernate.util.JDBCExceptionReporter] - Connections could not be acquired from the underlying database!
>>>>>>>LOG4J<<<<<<< 90312 2009-04-27 17:56:19,640 ERROR [org.hibernate.util.JDBCExceptionReporter] - Connections could not be acquired from the underlying database!
>>>>>>>LOG4J<<<<<<< 90312 2009-04-27 17:56:19,640 ERROR [org.hibernate.util.JDBCExceptionReporter] - An SQLException was provoked by the following failure: com.mchange.v2.resourcepool.ResourcePoolException: A ResourcePool cannot acquire a new resource -- the factory or source appears to be down.
>>>>>>>LOG4J<<<<<<< 90312 2009-04-27 17:56:19,640 ERROR [org.hibernate.util.JDBCExceptionReporter] - An SQLException was provoked by the following failure: com.mchange.v2.resourcepool.ResourcePoolException: A ResourcePool cannot acquire a new resource -- the factory or source appears to be down.
请多多指教。


------解决方案--------------------
你有把所有JAR都放进去吗,还有数据库服务开了没?
------解决方案------