File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes two-phase transaction XA Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "two-phase transaction XA Error" Watch "two-phase transaction XA Error" New topic

two-phase transaction XA Error

deepa karkala
Ranch Hand

Joined: Jan 29, 2003
Posts: 62
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

Joined: Sep 22, 2005
Posts: 3

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

I agree. Here's the link:
subject: two-phase transaction XA Error
It's not a secret anymore!