
JDBC driver does not support XA, hence cannot be a participant in two
weblogic配置数据库连接池及连接后发布应用,登录应用后,控制台报错:
--------------------------------------------------------------------------------
nested within:
--------------------------------------------------------------------------------
ansaction.RollbackException: Could not prepare resource 'weblogic.jdb
c.wrapper.JTSXAResourceImpl
JDBC driver does not support XA, hence cannot be a participant in two-phase comm
it. To force this participation, set the EnableTwoPhaseCommit property on the co
rresponding JDBCTxDataSource property, to true. Pool = TestPool - with nested ex
ception:
[ansaction.xa.XAException: JDBC driver does not support XA, hence cannot
be a participant in two-phase commit. To force this participation, set the Enab
leTwoPhaseCommit property on the corresponding JDBCTxDataSource property, to tru
e. Pool = TestPool]
ansaction.internal.TransactionImpl.throwRollbackException(
TransactionImpl.java:1644)
ansaction.internal.ServerTransactionImpl.internalCommit(Se
rverTransactionImpl.java:296)
ansaction.internal.ServerTransactionImplmit(ServerTran
sactionImpl.java:217)
at weblogic.ejb20.ute(MDListener.java:404)
at weblogic.ejb20.ansactionalOnMessage(MDListener.
java:308)
at weblogic.ejb20.Message(MDListener.java:273)
at weblogic.jms.Message(JMSSession.java:2550)
at weblogic.jms.ute(JMSSession.java:2470)
at weblogic.ute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
.>
解决方法:
配置你的tx Data Source .选上 Emulate Two-Phase Commit for non-XA Driver和Row Prefetch Enabled