This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

two-phase transaction XA Error  RSS feed

deepa karkala
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone, I am updating 2 databases from 2 different EJBs. I am using ORacle XA thing driver oracle.jdbc.xa.client.OracleXADataSource and 2 TX data sources, 2 TX connection pools.

When I start the manager server, I am getting ejb deployment error regarding XA driver.

By the way, in both databases I have taken care of � Grant select on dba_pending_transactions to public� which related to the error XAER_RMERR.

An error occurred while the EJB container was attempting to obtain information a bout the table �table1� from the database. This information is necessary to validate the mapping between the fields of the EJB 'ejb1' and the table. The exception is: XA error: XAER_RMERR : A resource manager error has occur ed in the transaction branch start() failed on resource 'jytPool': XAER_RMERR : A resource manager error has occured in the transaction branch javax.transaction.xa.XAException: Unexpected error during start for XAResource ' jytPool': null at weblogic.jdbc.jta.XA.createException( at weblogic.jdbc.jta.DataSource.start( at weblogic.transaction.internal.ServerResourceInfo.start(ServerResource at weblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResour at weblogic.transaction.internal.ServerResourceInfo.enlist(ServerResourc at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(Se at weblogic.jdbc.jta.DataSource.enlist( at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist( 183) at weblogic.jdbc.jta.Connection.getXAConn( at weblogic.jdbc.jta.Connection.createStatement( at weblogic.ejb20.utils.TableVerifier.checkTableAndColumns(TableVerifier .java:135) at weblogic.ejb20.utils.TableVerifier.checkTableAndColumns(TableVerifier .java:81) at weblogic.ejb20.utils.TableVerifier.verifyTableAndColumnsExist(TableVe at weblogic.ejb20.utils.TableVerifier.verifyTableExistsAndCreateMaybe(Ta at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.verifyTablesExist(RD at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersisten at weblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.ja va:209) at weblogic.ejb20.manager.BaseEntityManager.setup( :179) at weblogic.ejb20.manager.DBManager.setup( at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrive at weblogic.ejb20.deployer.EJBDeployer.activate( at weblogic.ejb20.deployer.Deployer.deploy( at weblogic.j2ee.EJBComponent.deploy( at weblogic.j2ee.Application.addComponent( at weblogic.j2ee.J2EEService.addDeployment( at at at ments( at at java.lang.reflect.Method.invoke(Native Method) at at


Please help me in this regard. thanks, jyothi
[ August 11, 2006: Message edited by: Bear Bibeault ]
puneetjcpjain jain
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I was facing this problem while using hibernate and spring.
the problem was like this

call getconnection on xa datasource - TX-REQUIRED
tx starts
call getconnection on local datasource
local tx starts
call getConnection on xa datasource
for this call i have declared TX_Support

so you might be facing this kind of situation, bring the local tx out of the
xa transaction

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!