aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "two-phase transaction XA Error" Watch "two-phase transaction XA Error" New topic
Author

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(XA.java:105) at weblogic.jdbc.jta.DataSource.start(DataSource.java:641) at weblogic.transaction.internal.ServerResourceInfo.start(ServerResource Info.java:1202) at weblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResour ceInfo.java:1136) at weblogic.transaction.internal.ServerResourceInfo.enlist(ServerResourc eInfo.java:289) at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(Se rverTransactionImpl.java:411) at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1220) at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1 183) at weblogic.jdbc.jta.Connection.getXAConn(Connection.java:152) at weblogic.jdbc.jta.Connection.createStatement(Connection.java:257) 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 rifier.java:389) at weblogic.ejb20.utils.TableVerifier.verifyTableExistsAndCreateMaybe(Ta bleVerifier.java:440) at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.verifyTablesExist(RD BMSPersistenceManager.java:1120) at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersisten ceManager.java:150) at weblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.ja va:209) at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java :179) at weblogic.ejb20.manager.DBManager.setup(DBManager.java:158) at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrive nBeanInfoImpl.java:952) at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1317) at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:247) at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:85) at weblogic.j2ee.Application.addComponent(Application.java:307) at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:148) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl oymentTarget.java:375) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep loymentTarget.java:303) at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy ments(DeploymentTarget.java:256) at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments( DeploymentTarget.java:207) at java.lang.reflect.Method.invoke(Native Method) at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB eanImpl.java:750) at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl

................................................................


Please help me in this regard. thanks, jyothi
[ August 11, 2006: Message edited by: Bear Bibeault ]
puneetjcpjain jain
Greenhorn

Joined: Sep 22, 2005
Posts: 3
Hi,

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

cheers
puneet
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: two-phase transaction XA Error