我们在部署到Weblogic 12c的Spring / myBatis应用程序中收到以下错误
错误LoggingAspect - 异常:org.springframework.dao.RecoverableDataAccessException:
at weblogic.jdbc.common.internal.ConnectionEnv.disable(ConnectionEnv.java:380)
at weblogic.jdbc.wrapper.JDBCWrapperImpl.removeConnFromPoolIfFatalError(JDBCWrapperImpl.java:159)
at weblogic.jdbc.wrapper.XAConnection.invocationExceptionHandler(XAConnection.java:167)
at weblogic.jdbc.wrapper.XAConnection.rollback(XAConnection.java:892)
at weblogic.jdbc.wrapper.JTAConnection.checkConnection(JTAConnection.java:113)
at weblogic.jdbc.wrapper.JTAConnection.checkConnection(JTAConnection.java:74)
at weblogic.jdbc.wrapper.Connection.preInvocationHandler(Connection.java:98)
at weblogic.jdbc.wrapper.JTAConnection.getAutoCommit(JTAConnection.java:347)
at org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:84)
at org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:69)
at org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:271)
at org.apache.ibatis.executor.ReuseExecutor.prepareStatement(ReuseExecutor.java:72)
at org.apache.ibatis.executor.ReuseExecutor.doQuery(ReuseExecutor.java:53)
at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:259)
at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:132)
at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:115)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:104)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:98)
此应用程序正在Tomcat上开发,在开发环境中运行良好。
谢谢,
汤姆
答案 0 :(得分:0)
当我们在这种环境中真正需要标准JDBC驱动程序时,我们已经将XA驱动程序JDBC部署到Weblogic 12C。
谢谢,
汤姆