在http://www.jeecms.com网站上下载了一个源码程序,按照他们说的步骤导入myeclipise之后,启动Tomcat之后,报错如下所示:
3:27:39.515 ERROR org.hibernate.util.JDBCExceptionReporter - Connections could not be acquired from the underlying database!
[Cause: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.
at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1319)
at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)
at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)
at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:111)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)
请各位高手帮我看看到底是怎么回事啊??谢谢了
3:27:39.515 ERROR org.hibernate.util.JDBCExceptionReporter - Connections could not be acquired from the underlying database!
[Cause: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.
at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1319)
at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)
at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)
at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:111)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)
请各位高手帮我看看到底是怎么回事啊??谢谢了
解决方案 »
- 关于WEB系统备份和还原,让我困惑!该如何学习
- 如何可以得到回调的URL呢?
- java mail 带附件发送问题
- 谁有spring in action 和 hibernate in action的电子书,给个地址,或给个联系方式传给我,谢谢!
- session的参数值不是当前的是怎麽回事
- 高手指教:jsp中出现The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs异常
- 关于怎样用脚本代码实现自动设定IE为每次访问次页时都检查,给高分啊!
- 利用JSP开发SHOU一样的新闻系统,请问怎么样生成新闻呀?
- 用java实现像QQ,旺旺这样的网页版即时通讯,求指导
- 谁知道哪有连MSSQL7.0的jdbc包下载
- 请教高手:spring +struts2+hibernate 问题
- jsp等待页面的代码怎么写啊?
数据库连接不上
看一下项目的连接设置
PS:需要先在本地用源代码中的sql脚本生成数据库schema然后再用