javax.resource.ResourceException

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,
    • javax.resource.ResourceException: enlist: caught Exception at com.ibm.ejs.j2c.LocalTransactionWrapper.enlist(LocalTransactionWrapper.java:688) at com.ibm.ejs.j2c.ConnectionEventListener.localTransactionStarted(ConnectionEventListener.java:713) at com.ibm.ejs.jms.JMSManagedSession.localTransactionStarted(JMSManagedSession.java:967) at com.ibm.ejs.jms.JMSManagedSession.enlist(JMSManagedSession.java:919) at com.ibm.ejs.jms.JMSMessageProducerHandle.enlist(JMSMessageProducerHandle.java:797) at com.ibm.ejs.jms.JMSMessageProducerHandle.send(JMSMessageProducerHandle.java:1168) at com.loyaltycentral.ejb.session.JobManagerEJBBean.submitJob(JobManagerEJBBean.java:149) at com.loyaltycentral.ejb.session.JobManagerEJBBean.submitJob(JobManagerEJBBean.java:129) at com.loyaltycentral.ejb.session.EJSRemoteStatelessJobManagerEJB_f60b1620.submitJob(EJSRemoteStatelessJobManagerEJB_f60b1620.java:112) at com.loyaltycentral.ejb.session._JobManagerEJB_Stub.submitJob(_JobManagerEJB_Stub.java:536) at com.loyaltycentral.service.CardManagementEJBBean.submitJob(CardManagementEJBBean.java:666) at com.loyaltycentral.service.client.EJSRemoteStatelessCardManagementEJB_2813c24d.submitJob(EJSRemoteStatelessCardManagementEJB_2813c24d.java:403) at com.loyaltycentral.service.client._CardManagementEJB_Stub.submitJob(_CardManagementEJB_Stub.java:745) at com.loyaltycentral.web.cardmgmt.CreateCardsAction.execute(CreateCardsAction.java:115) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at com.loyaltycentral.web.LcRequestProcessor.process(LcRequestProcessor.java:100) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:501) at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464) at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744) at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:113) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383) at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102) at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136) at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195) at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743) at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469) Caused by: com.ibm.ws.Transaction.IllegalResourceIn2PCTransactionException: Illegal attempt to enlist multiple 1PC XAResources at com.ibm.ws.Transaction.JTA.RegisteredResources.enlistResource(RegisteredResources.java:399) at com.ibm.ws.Transaction.JTA.TransactionImpl.enlistResource(TransactionImpl.java:3147) at com.ibm.ws.Transaction.JTA.TranManagerSet.enlistOnePhase(TranManagerSet.java:438) at com.ibm.ejs.j2c.LocalTransactionWrapper.enlist(LocalTransactionWrapper.java:585) ... 38 more
    No Bugmate found.