java连接oracle报错_java 项目连接oracle 报错如下

在启动Java项目时遇到严重错误,具体表现为在向监听器发送contextinitialized事件时异常。问题根源在于Spring事务管理器无法开启JDBC事务,进一步追踪发现是由SQLException引起,其内部原因指向资源池无法从主要工厂或源获取资源。异常堆栈中涉及了C3P0连接池。开发者已经尝试百度搜索解决方案但未果,寻求专家帮助。
摘要由CSDN通过智能技术生成

org.apache.catalina.core.StandardContextlistenerStart严重:Exceptionsendingcontextinitializedeventtolistenerinstanceofclasscom.huicent.hcframe.listener.ApplicationInitList...

org.apache.catalina.core.StandardContext listenerStart

严重: Exception sending context initialized event to listener instance of class com.huicent.hcframe.listener.ApplicationInitListener

org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: An SQLException was provoked by the following failure: com.mchange.v2.resourcepool.ResourcePoolException: A ResourcePool could not acquire a resource from its primary factory or source.

at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:238)

..................................

Caused by: java.sql.SQLException: An SQLException was provoked by the following failure: com.mchange.v2.resourcepool.ResourcePoolException: A ResourcePool could not acquire a resource from its primary factory or source.

...........................

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

at com.mchange.v2.resourcepool.BasicResourcePool.awaitAcquire(BasicResourcePool.java:870)

at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:201)

at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:209)

... 37 more

百度半天不知道什么原因,求大侠指教

展开

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值