JBOSS 6: [CachedConnectionManager] Closing a connection for you. Please close them yourself

北城以北 提交于 2019-12-06 11:11:30

track-statements : This boolean element specifies whether to check for unclosed statements when a connection is returned to the pool. If true, a warning message is issued for each unclosed statement. If the log4j category org.jboss.resource.adapter.jdbc.WrappedConnection has trace level enabled, a stack trace of the connection close call is logged as well. This is a debug feature that can be turned off in production.

source: http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/beta500/html/ch13s13.html

Deepak

Please Follow below steps below in Jboss 6.1 to solve this issue, 01:15:19,406 INFO [CachedConnectionManager] Closing a connection for you. Please close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@ef028b

java.lang.Throwable: STACKTRACE

at org.jboss.resource.connectionmanager.CachedConnectionManager.register

I disable JBoss CachedConnectionManager to fix issues.

Step 1: $JBOSS_HOME/server\default\deploy\jbossweb.sar/server.xml

Comment or delete the className CachedConnectionValue:

<!--Valve className="org.jboss.web.tomcat.service.jca.CachedConnectionValve"

                cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionManager"

                transactionManagerObjectName="jboss:service=TransactionManager" /-->

Step 2: server/default/deploy/jbossweb.sar/META-INF/jboss-beans.xml

Comment or delete CachedConnectionManager:

<!--

      <depends>jboss.jca:service=CachedConnectionManager</depends>

-->

Step 3: $JBOSS_HOME/server/default/conf/standardjboss.xml

Comment or delete all CachedConnectionInterceptor statements:

<!--

    <interceptor>org.jboss.resource.connectionmanager.CachedConnectionInterceptor</interceptor>

-->  
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!