• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

two-phase transaction XA Error

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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(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 ]
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
The world's cheapest jedi mind trick: "Aw c'mon, why not read this tiny ad?"
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic