com.ibm.ws.Transaction.IllegalResourceIn2PCTransactionException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • WebSphere, ActiveMQ, Hibernate, EJB transaction issue
    via by Unknown author,
    • com.ibm.ws.Transaction.IllegalResourceIn2PCTransactionException: Illegal attempt to enlist multiple 1PC XAResources at com.ibm.ws.Transaction.JTA.RegisteredResources.enlistResource(RegisteredResources.java:398) at com.ibm.ws.Transaction.JTA.TransactionImpl.enlistResource(TransactionImpl.java:3090) at com.ibm.ws.Transaction.JTA.TranManagerSet.enlistOnePhase(TranManagerSet.java:438) at com.ibm.ejs.j2c.LocalTransactionWrapper.enlist(LocalTransactionWrapper.java:585) at com.ibm.ejs.j2c.ConnectionManager.lazyEnlist(ConnectionManager.java:1747) at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl.lazyEnlist(WSRdbManagedConnectionImpl.java:2116) at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.beginTransactionIfNecessary(WSJdbcConnection.java:600) at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.getMetaData(WSJdbcConnection.java:1533) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:86) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292) at com.aciworldwide.ecourier.utility.hibernate.HibernateCfgSessionFactoryProvider.createNewSessionFactory(HibernateCfgSessionFactoryProvider.java:95) at com.aciworldwide.ecourier.utility.hibernate.HibernateSessionManager.getSessionFactory(HibernateSessionManager.java:136) at com.aciworldwide.ecourier.utility.hibernate.HibernateSessionManager.getCurrentSession(HibernateSessionManager.java:89) at com.aciworldwide.ecourier.utility.ejb.AbstractSessionBean.getCurrentSession(AbstractSessionBean.java:719) at com.aciworldwide.ecourier.management.ejb.OperationsManagerSessionBean.createUser(OperationsManagerSessionBean.java:1118) at com.aciworldwide.ecourier.management.ejb.remote.EJSRemoteStatelessOperationsManager_096eb77f.createUser(Unknown Source) at com.aciworldwide.ecourier.management.ejb.remote._EJSRemoteStatelessOperationsManager_096eb77f_Tie.createUser(_EJSRemoteStatelessOperationsManager_096eb77f_Tie.java:406) at com.aciworldwide.ecourier.management.ejb.remote._EJSRemoteStatelessOperationsManager_096eb77f_Tie._invoke(_EJSRemoteStatelessOperationsManager_096eb77f_Tie.java:98) at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:613) at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:466) at com.ibm.rmi.iiop.ORB.process(ORB.java:503) at com.ibm.CORBA.iiop.ORB.process(ORB.java:1552) at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2673) at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2551) at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:62) at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
    No Bugmate found.