起步软件技术论坛-X3

 找回密码
 立即注册
搜索
查看: 74|回复: 5

【搞定】websphere6新问题**

[复制链接]
发表于 2007-8-13 16:31:17 | 显示全部楼层 |阅读模式
[07-8-13 16:22:36:891 CST] 00000017 SystemErr     R org.springframework.transaction.CannotCreateTransactionException: Could not create Hibernate transaction; nested exception is net.sf.hibernate.exception.GenericJDBCException: Cannot open connection
net.sf.hibernate.exception.GenericJDBCException: Cannot open connection
        at net.sf.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java:90)
        at net.sf.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:79)
        at net.sf.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
        at net.sf.hibernate.impl.BatcherImpl.convert(BatcherImpl.java:328)
        at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:295)
        at net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3373)
        at net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3333)
        at org.springframework.orm.hibernate.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:388)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:289)
        at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:202)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:49)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
        at $Proxy3.toString(Unknown Source)
        at java.lang.String.valueOf(String.java(Inlined Compiled Code))
        at java.lang.StringBuffer.append(StringBuffer.java(Compiled Code))
        at org.springframework.context.support.AbstractApplicationContext.refreshListeners(AbstractApplicationContext.java:465)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:314)
        at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:131)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:224)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:150)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
        at com.atlassian.spring.container.ContainerContextLoaderListener.contextInitialized(ContainerContextLoaderListener.java:32)
        at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1355)
        at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:371)
        at com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:114)
        at com.ibm.ws.webcontainer.VirtualHost.addWebApplication(VirtualHost.java:127)
        at com.ibm.ws.webcontainer.WebContainer.addWebApp(WebContainer.java:776)
        at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:729)
        at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:140)
        at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:360)
        at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1019)
        at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1028)
        at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:538)
        at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:724)
        at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:683)
        at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:1678)
        at com.ibm.ws.runtime.component.ComponentImpl$_AsynchInitializer.run(ComponentImpl.java:304)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
Caused by: 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)
        at net.sf.hibernate.connection.C3P0ConnectionProvider.getConnection(C3P0ConnectionProvider.java:33)
        at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:292)
        ... 34 more
Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.
        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)
        ... 37 more

[07-8-13 16:22:36:891 CST] 00000017 SystemErr     R net.sf.hibernate.exception.GenericJDBCException: Cannot open connection
        at net.sf.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java:90)
        at net.sf.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:79)
        at net.sf.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
        at net.sf.hibernate.impl.BatcherImpl.convert(BatcherImpl.java:328)
        at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:295)
        at net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3373)
        at net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3333)
        at org.springframework.orm.hibernate.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:388)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:289)
        at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:202)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:49)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
        at $Proxy3.toString(Unknown Source)
        at java.lang.String.valueOf(String.java(Inlined Compiled Code))
        at java.lang.StringBuffer.append(StringBuffer.java(Compiled Code))
        at org.springframework.context.support.AbstractApplicationContext.refreshListeners(AbstractApplicationContext.java:465)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:314)
        at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:131)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:224)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:150)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
        at com.atlassian.spring.container.ContainerContextLoaderListener.contextInitialized(ContainerContextLoaderListener.java:32)
        at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1355)
        at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:371)
        at com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:114)
        at com.ibm.ws.webcontainer.VirtualHost.addWebApplication(VirtualHost.java:127)
        at com.ibm.ws.webcontainer.WebContainer.addWebApp(WebContainer.java:776)
        at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:729)
        at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:140)
        at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:360)
        at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1019)
        at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1028)
        at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:538)
        at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:724)
        at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:683)
        at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:1678)
        at com.ibm.ws.runtime.component.ComponentImpl$_AsynchInitializer.run(ComponentImpl.java:304)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
Caused by: 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)
        at net.sf.hibernate.connection.C3P0ConnectionProvider.getConnection(C3P0ConnectionProvider.java:33)
        at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:292)
        ... 34 more
Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.
        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)
        ... 37 more
回复

使用道具 举报

发表于 2007-8-13 17:04:30 | 显示全部楼层
客户端有什么错误么?在干什么的时候出现的问题?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-13 17:07:50 | 显示全部楼层
客户端没什么错误,就是服务器日志中记录下了错误信息
回复 支持 反对

使用道具 举报

发表于 2007-8-13 18:08:14 | 显示全部楼层
从这个错误看应该是websphere在查找hibernate数据源的时候没有找到,而平台中没有使用hibernate这种数据源,应该是websphere本身哪里用到了
楼主可以多观察一下,到底是那个连接使用这种类型的数据源。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-14 09:28:14 | 显示全部楼层
问题原因自己已经找到了,请结贴吧!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-14 09:29:02 | 显示全部楼层
多谢shangxy!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Justep Inc.

GMT+8, 2025-1-13 19:54 , Processed in 0.038109 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表