7 Replies Latest reply on Oct 21, 2013 7:02 AM by Tom Jenkinson

    JBoss AS 7.1.0.Beta1 - ARJUNA12140: Adding multiple last resources is disallowed

    bika_8 Newbie

      Hello!

       

      I'm getting this error:

       

      15:15:16,723 WARN  [com.arjuna.ats.arjuna] (MSC service thread 1-3) ARJUNA12140: Adding multiple last resources is disallowed. Current resource is com.arjuna.ats.internal.arjuna.abstractrecords.LastResourceRecord@4c689e

      15:15:16,723 ERROR [com.edg.common.logger.Log] (MSC service thread 1-3) java.sql.SQLException: javax.resource.ResourceException: IJ000457: Unchecked throwable in managedConnectionReconnected() cl=org.jboss.jca.core.connectionmanager.listener.TxConnectionListener@1662a95[state=NORMAL managed connection=org.jboss.jca.adapters.jdbc.local.LocalManagedConnection@14174f9 connection handles=0 lastUse=1323440116723 trackByTx=false pool=org.jboss.jca.core.connectionmanager.pool.strategy.OnePool@669255 pool internal context=org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool@5292e6 xaResource=org.jboss.jca.core.tx.jbossts.LocalXAResourceImpl@75d65c txSync=null]

       

       

      Does anyone know hot to solve this problem?

        • 1. Re: JBoss AS 7.1.0.Beta1 - ARJUNA12140: Adding multiple last resources is disallowed
          Jesper Pedersen Master

          Can you post the entire stack trace -and show us your configuration plus code leading to this ?

          • 2. Re: JBoss AS 7.1.0.Beta1 - ARJUNA12140: Adding multiple last resources is disallowed
            bika_8 Newbie

            Log:

             

            16:26:18,086 WARN  [com.arjuna.ats.arjuna] (MSC service thread 1-4) ARJUNA12140: Adding multiple last resources is disallowed. Current resource is com.arjuna.ats.internal.arjuna.abstractrecords.LastResourceRecord@155e0bc

            16:26:18,086 ERROR [com.edg.common.logger.Log] (MSC service thread 1-4) java.sql.SQLException: javax.resource.ResourceException: IJ000457: Unchecked throwable in managedConnectionReconnected() cl=org.jboss.jca.core.connectionmanager.listener.TxConnectionListener@b1656f[state=NORMAL managed connection=org.jboss.jca.adapters.jdbc.local.LocalManagedConnection@5292e6 connection handles=0 lastUse=1323444378086 trackByTx=false pool=org.jboss.jca.core.connectionmanager.pool.strategy.OnePool@12a6e85 pool internal context=org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool@ec849e xaResource=org.jboss.jca.core.tx.jbossts.LocalXAResourceImpl@7a6c34 txSync=null]

            16:26:18,086 FATAL [com.edg.zoosk.cs.server.Start] (MSC service thread 1-4) : java.sql.SQLException: javax.resource.ResourceException: IJ000457: Unchecked throwable in managedConnectionReconnected() cl=org.jboss.jca.core.connectionmanager.listener.TxConnectionListener@b1656f[state=NORMAL managed connection=org.jboss.jca.adapters.jdbc.local.LocalManagedConnection@5292e6 connection handles=0 lastUse=1323444378086 trackByTx=false pool=org.jboss.jca.core.connectionmanager.pool.strategy.OnePool@12a6e85 pool internal context=org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool@ec849e xaResource=org.jboss.jca.core.tx.jbossts.LocalXAResourceImpl@7a6c34 txSync=null]

                      at org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:137)

                      at com.transfer.test.zoosk.db.ConnectionCache.fetchConnection(ConnectionCache.java:75) [test-zoosk-Integration.jar:]

                      at com.transfer.test.zoosk.db.ConnectionCache.getConnection(ConnectionCache.java:52) [test-zoosk-Integration.jar:]

                      at com.edg.common.jdbc.ConnectionCache.getConnection(ConnectionCache.java:77) [zoosk-Common.jar:]

                      at com.edg.zoosk.cs.common.SumUsernameMap.initializeMap(SumUsernameMap.java:56) [zoosk-Common.jar:]

                      at com.edg.zoosk.cs.server.Start.perform(Start.java:67) [zoosk-Server.jar:]

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_29]

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_29]

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_29]

                      at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_29]

                      at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptorFactory$ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptorFactory.java:130) [jboss-as-ee-7.1.0.Beta1.jar:]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:]

                      at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final.jar:]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:]

                      at org.jboss.as.ee.component.interceptors.DependencyInjectionCompleteMarker$1.processInvocation(DependencyInjectionCompleteMarker.java:43) [jboss-as-ee-7.1.0.Beta1.jar:]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:]

                      at org.jboss.as.ee.component.ManagedReferenceInterceptorFactory$ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptorFactory.java:92) [jboss-as-ee-7.1.0.Beta1.jar:]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:]

                      at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final.jar:]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:]

                      at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:44) [jboss-as-ee-7.1.0.Beta1.jar:]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:]

                      at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:230) [jboss-as-ejb3-7.1.0.Beta1.jar:]

                      at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:337) [jboss-as-ejb3-7.1.0.Beta1.jar:]

                      at org.jboss.as.ejb3.tx.SingletonLifecycleCMTTxInterceptor.processInvocation(SingletonLifecycleCMTTxInterceptor.java:56) [jboss-as-ejb3-7.1.0.Beta1.jar:]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:]

                      at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [jboss-as-ejb3-7.1.0.Beta1.jar:]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:]

                      at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.1.0.Beta1.jar:]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:]

                      at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:]

                      at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:155) [jboss-as-ee-7.1.0.Beta1.jar:]

                      at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:79) [jboss-as-ee-7.1.0.Beta1.jar:]

                      at org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:138) [jboss-as-ejb3-7.1.0.Beta1.jar:]

                      at org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:151) [jboss-as-ejb3-7.1.0.Beta1.jar:]

                      at org.jboss.as.ee.component.ComponentStartService.start(ComponentStartService.java:44) [jboss-as-ee-7.1.0.Beta1.jar:]

                      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)

                      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)

                      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_29]

                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_29]

                      at java.lang.Thread.run(Thread.java:662) [:1.6.0_29]

            Caused by: javax.resource.ResourceException: IJ000457: Unchecked throwable in managedConnectionReconnected() cl=org.jboss.jca.core.connectionmanager.listener.TxConnectionListener@b1656f[state=NORMAL managed connection=org.jboss.jca.adapters.jdbc.local.LocalManagedConnection@5292e6 connection handles=0 lastUse=1323444378086 trackByTx=false pool=org.jboss.jca.core.connectionmanager.pool.strategy.OnePool@12a6e85 pool internal context=org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool@ec849e xaResource=org.jboss.jca.core.tx.jbossts.LocalXAResourceImpl@7a6c34 txSync=null]

                      at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.reconnectManagedConnection(AbstractConnectionManager.java:588)

                      at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:451)

                      at org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:129)

                      ... 40 more

            Caused by: javax.resource.ResourceException: Could not enlist in transaction on entering meta-aware object

                      at org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl.managedConnectionReconnected(TxConnectionManagerImpl.java:430)

                      at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.reconnectManagedConnection(AbstractConnectionManager.java:583)

                      ... 42 more

            Caused by: javax.transaction.SystemException: IJ000356: Failed to enlist: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: 0:ffffc0a800bb:-5191b5e1:4ee22896:7 status: ActionStatus.ABORT_ONLY >

                      at org.jboss.jca.core.connectionmanager.listener.TxConnectionListener$TransactionSynchronization.checkEnlisted(TxConnectionListener.java:552)

                      at org.jboss.jca.core.connectionmanager.listener.TxConnectionListener.enlist(TxConnectionListener.java:282)

                      at org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl.managedConnectionReconnected(TxConnectionManagerImpl.java:423)

                      ... 43 more

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4) java.sql.SQLException: javax.resource.ResourceException: IJ000457: Unchecked throwable in managedConnectionReconnected() cl=org.jboss.jca.core.connectionmanager.listener.TxConnectionListener@b1656f[state=NORMAL managed connection=org.jboss.jca.adapters.jdbc.local.LocalManagedConnection@5292e6 connection handles=0 lastUse=1323444378086 trackByTx=false pool=org.jboss.jca.core.connectionmanager.pool.strategy.OnePool@12a6e85 pool internal context=org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool@ec849e xaResource=org.jboss.jca.core.tx.jbossts.LocalXAResourceImpl@7a6c34 txSync=null]

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:137)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at com.transfer.test.zoosk.db.ConnectionCache.fetchConnection(ConnectionCache.java:75)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at com.transfer.test.zoosk.db.ConnectionCache.getConnection(ConnectionCache.java:52)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at com.edg.common.jdbc.ConnectionCache.getConnection(ConnectionCache.java:77)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at com.edg.zoosk.cs.common.SumUsernameMap.initializeMap(SumUsernameMap.java:56)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at com.edg.zoosk.cs.server.Start.perform(Start.java:67)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at java.lang.reflect.Method.invoke(Method.java:597)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptorFactory$ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptorFactory.java:130)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.as.ee.component.interceptors.DependencyInjectionCompleteMarker$1.processInvocation(DependencyInjectionCompleteMarker.java:43)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.as.ee.component.ManagedReferenceInterceptorFactory$ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptorFactory.java:92)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:44)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:230)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:337)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.as.ejb3.tx.SingletonLifecycleCMTTxInterceptor.processInvocation(SingletonLifecycleCMTTxInterceptor.java:56)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:155)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:79)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:138)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:151)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.as.ee.component.ComponentStartService.start(ComponentStartService.java:44)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

             

             

            16:26:18,086 ERROR [stderr] (MSC service thread 1-4)           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

             

             

            16:26:18,102 ERROR [stderr] (MSC service thread 1-4)           at java.lang.Thread.run(Thread.java:662)

             

             

            16:26:18,102 ERROR [stderr] (MSC service thread 1-4) Caused by: javax.resource.ResourceException: IJ000457: Unchecked throwable in managedConnectionReconnected() cl=org.jboss.jca.core.connectionmanager.listener.TxConnectionListener@b1656f[state=NORMAL managed connection=org.jboss.jca.adapters.jdbc.local.LocalManagedConnection@5292e6 connection handles=0 lastUse=1323444378086 trackByTx=false pool=org.jboss.jca.core.connectionmanager.pool.strategy.OnePool@12a6e85 pool internal context=org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool@ec849e xaResource=org.jboss.jca.core.tx.jbossts.LocalXAResourceImpl@7a6c34 txSync=null]

             

             

            16:26:18,102 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.reconnectManagedConnection(AbstractConnectionManager.java:588)

             

             

            16:26:18,102 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:451)

             

             

            16:26:18,102 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:129)

             

             

            16:26:18,102 ERROR [stderr] (MSC service thread 1-4)           ... 40 more

             

             

            16:26:18,102 ERROR [stderr] (MSC service thread 1-4) Caused by: javax.resource.ResourceException: Could not enlist in transaction on entering meta-aware object

             

             

            16:26:18,102 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl.managedConnectionReconnected(TxConnectionManagerImpl.java:430)

             

             

            16:26:18,102 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.reconnectManagedConnection(AbstractConnectionManager.java:583)

             

             

            16:26:18,102 ERROR [stderr] (MSC service thread 1-4)           ... 42 more

             

             

            16:26:18,102 ERROR [stderr] (MSC service thread 1-4) Caused by: javax.transaction.SystemException: IJ000356: Failed to enlist: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: 0:ffffc0a800bb:-5191b5e1:4ee22896:7 status: ActionStatus.ABORT_ONLY >

             

             

            16:26:18,102 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.jca.core.connectionmanager.listener.TxConnectionListener$TransactionSynchronization.checkEnlisted(TxConnectionListener.java:552)

             

             

            16:26:18,102 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.jca.core.connectionmanager.listener.TxConnectionListener.enlist(TxConnectionListener.java:282)

             

             

            16:26:18,102 ERROR [stderr] (MSC service thread 1-4)           at org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl.managedConnectionReconnected(TxConnectionManagerImpl.java:423)

             

             

            16:26:18,102 ERROR [stderr] (MSC service thread 1-4)           ... 43 more

             

            --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

             

            Part of my standalone.xml:

             

            <subsystem xmlns="urn:jboss:domain:datasources:1.0">

                        <datasources>

                            <datasource jndi-name="java:/OracleDS" pool-name="java:jboss/OracleDS" enabled="true" jta="true" use-java-context="false" use-ccm="true">

                                <connection-url>

                                    my-connection-url

                                </connection-url>

                                <connection-property name="autoCommit">

                                    false

                                </connection-property>

                                <driver>

                                    oracle

                                </driver>

                                <transaction-isolation>

                                    TRANSACTION_READ_COMMITTED

                                </transaction-isolation>

                                <pool>

                                    <prefill>

                                        true

                                    </prefill>

                                    <use-strict-min>

                                        false

                                    </use-strict-min>

                                    <flush-strategy>

                                        FailingConnectionOnly

                                    </flush-strategy>

                                </pool>

                                <security>

                                    <user-name>

                                        test

                                    </user-name>

                                    <password>

                                        test

                                    </password>

                                </security>

                            </datasource>

                             <datasource jndi-name="java:/OracleDSForJDBC" pool-name="java:/OracleDSForJDBC" enabled="true" jta="true" use-java-context="false" use-ccm="true">

                                <connection-url>

                                    my-connection-url

                                </connection-url>

                                <connection-property name="autoCommit">

                                    false

                                </connection-property>

                                <driver>

                                    oracle

                                </driver>

                                <transaction-isolation>

                                    TRANSACTION_READ_COMMITTED

                                </transaction-isolation>

                                <pool>

                                    <prefill>

                                        true

                                    </prefill>

                                    <use-strict-min>

                                        false

                                    </use-strict-min>

                                    <flush-strategy>

                                        FailingConnectionOnly

                                    </flush-strategy>

                                </pool>

                                <security>

                                    <user-name>

                                       test

                                    </user-name>

                                    <password>

                                        test

                                    </password>

                                </security>

                            </datasource>

                            <drivers>

                                <driver name="oracle" module="com.oracle.ojdbc6">

                                    <xa-datasource-class>

                                        oracle.jdbc.OracleDriver

                                    </xa-datasource-class>

                                </driver>

                            </drivers>

                        </datasources>

                    </subsystem>


            • 3. Re: JBoss AS 7.1.0.Beta1 - ARJUNA12140: Adding multiple last resources is disallowed
              Jesper Pedersen Master

              Can you try master ? And attach the TRACE log (org.jboss.jca) if the problem remains.

              • 4. Re: JBoss AS 7.1.0.Beta1 - ARJUNA12140: Adding multiple last resources is disallowed
                Feng Jiang Newbie

                Hi, I have the some problem ,too.   When i am trying use  two datasource in the seam3 application which build on JBoss as7.1.0.Final , but on 7.0.2.Final it is OK.      Have you solved this problem ? What is the reason?

                • 6. Re: JBoss AS 7.1.0.Beta1 - ARJUNA12140: Adding multiple last resources is disallowed
                  Feng Jiang Newbie

                  My application is fine.  I create the JNDI datasource by the jboss management.  I used two datasource and inject them in a same bean in my Seam3.1 application.  you can have a try with JBoss as7.1.0.Final.

                  give you the datasource configuration in the standalone.xml  . I hope it is helpful for you.

                   

                   

                  <subsystem xmlns="urn:jboss:domain:datasources:1.0">
                              <datasources>
                                  <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
                                      <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url>
                                      <driver>h2</driver>
                                      <security>
                                          <user-name>sa</user-name>
                                          <password>sa</password>
                                      </security>
                                  </datasource>
                                  <datasource jta="false" jndi-name="java:jboss/MySqlDS" pool-name="MySqlDS" enabled="true" use-ccm="false">
                                      <connection-url>jdbc:mysql://localhost:3306/jweb</connection-url>
                                      <driver-class>com.mysql.jdbc.Driver</driver-class>
                                      <driver>mysql</driver>
                                      <security>
                                          <user-name>root</user-name>
                                          <password>11111</password>
                                      </security>
                                      <validation>
                                          <validate-on-match>false</validate-on-match>
                                          <background-validation>false</background-validation>
                                          <background-validation-millis>0</background-validation-millis>
                                      </validation>
                                      <statement>
                                          <prepared-statement-cache-size>0</prepared-statement-cache-size>
                                          <share-prepared-statements>false</share-prepared-statements>
                                      </statement>
                                  </datasource>
                                  <datasource jta="false" jndi-name="java:jboss/MySql2" pool-name="MySql2" enabled="true" use-ccm="false">
                                      <connection-url>jdbc:mysql://localhost:3306/mytest</connection-url>
                                      <driver-class>com.mysql.jdbc.Driver</driver-class>
                                      <driver>mysql</driver>
                                      <security>
                                          <user-name>root</user-name>
                                          <password>11111</password>
                                      </security>
                                      <validation>
                                          <validate-on-match>false</validate-on-match>
                                          <background-validation>false</background-validation>
                                          <background-validation-millis>0</background-validation-millis>
                                      </validation>
                                      <statement>
                                          <prepared-statement-cache-size>0</prepared-statement-cache-size>
                                          <share-prepared-statements>false</share-prepared-statements>
                                      </statement>
                                  </datasource>
                                  <drivers>
                                      <driver name="mysql" module="com.mysql">
                                          <xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
                                      </driver>
                                      <driver name="h2" module="com.h2database.h2">
                                          <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
                                      </driver>
                                  </drivers>
                              </datasources>
                          </subsystem>

                  • 7. Re: JBoss AS 7.1.0.Beta1 - ARJUNA12140: Adding multiple last resources is disallowed
                    Tom Jenkinson Master

                    By default multiple 1PC resources are not allowed in an XA transaction as it is dangerous and so not advisable, I would ask why you would like to do that, I would recommend you to consider configuring your datasources as xa ones.

                     

                    If you have to have it you can set a system property: com.arjuna.ats.arjuna.CoreEnvironmentBean.allowMultipleLastResources - please don't do this unless you absolutely know that it is what you must do.