0 Replies Latest reply on Mar 24, 2010 1:03 AM by H U

    Migrating from Jboss 4.0.3 to 5.1

    H U Newbie

      Hi,

       

            I was trying to migrate our enterprise application from 4.0.3 to 5.1.  We were doing all the necessary changes as part of the migratiion process.  I got the following exception after I launch the application.  This application contains lots of EJBs (Entity and Stateful Session beans) and referring multiple data sources with in the same transaction.  Apart from that, a big transaction contains multiple small transactions.  Please help me to resolve the issue.

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

       

      [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow]
      [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow]
      Adding multiple last resources is disallowed. Current resource is
      org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@2ed92f(WARN)
      03/22 17:52:37 putting ManagedConnection back into pool kill=false
      cl=org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@bb633e[state=NORMAL
      mc=org.jboss.resource.adapter.jdbc.local.LocalManagedConnection@70988b
      handles=0 lastUse=1269305553986 permit=true trackByTx=false
      mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@14e8c69
      context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@1e44a5f
      xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@2ed92f
      txSync=null](TRACE)
      03/22 17:52:37 Returning connection to pool
      org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@bb633e[state=NORMAL
      mc=org.jboss.resource.adapter.jdbc.local.LocalManagedConnection@70988b
      handles=0 lastUse=1269305557267 permit=false trackByTx=false
      mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@14e8c69
      context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@1e44a5f
      xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@2ed92f
      txSync=null] [InUse/Available/Max]: [0/20/20](TRACE)
      03/22 17:52:37 Unable to get database connection:
      org.jboss.util.NestedSQLException: Could not enlist in transaction on
      entering meta-aware object!; - nested throwable:
      (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist
      resource, see the previous warnings. tx=TransactionImple < ac,
      BasicAction: a6462f2:c53:4ba8107c:8a status: ActionStatus.ABORT_ONLY >); -
      nested throwable: (org.jboss.resource.JBossResourceException: Could not
      enlist in transaction on entering meta-aware object!; - nested throwable:
      (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist
      resource, see the previous warnings. tx=TransactionImple < ac,
      BasicAction: a6462f2:c53:4ba8107c:8a status: ActionStatus.ABORT_ONLY
      >))(ERROR)
      03/22 17:52:37 Retrying GetConnection 1 Time.(INFO)
      03/22 17:52:37 Unable to get database connection:
      org.jboss.util.NestedSQLException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >; - nested throwable:
      (javax.resource.ResourceException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >)(ERROR)
      03/22 17:52:37 Retrying GetConnection 2 Time.(INFO)
      03/22 17:52:37 Unable to get database connection:
      org.jboss.util.NestedSQLException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >; - nested throwable:
      (javax.resource.ResourceException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >)(ERROR)
      03/22 17:52:37 Retrying GetConnection 3 Time.(INFO)
      03/22 17:52:37 Unable to get database connection:
      org.jboss.util.NestedSQLException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >; - nested throwable:
      (javax.resource.ResourceException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >)(ERROR)
      03/22 17:52:37 Retrying GetConnection 4 Time.(INFO)
      03/22 17:52:37 Unable to get database connection:
      org.jboss.util.NestedSQLException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >; - nested throwable:
      (javax.resource.ResourceException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >)(ERROR)
      03/22 17:52:37 Retrying GetConnection 5 Time.(INFO)
      03/22 17:52:37 Unable to get database connection:
      org.jboss.util.NestedSQLException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >; - nested throwable:
      (javax.resource.ResourceException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >)(ERROR)
      03/22 17:52:37 Retrying GetConnection 6 Time.(INFO)
      03/22 17:52:37 Unable to get database connection:
      org.jboss.util.NestedSQLException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >; - nested throwable:
      (javax.resource.ResourceException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >)(ERROR)
      03/22 17:52:37 Retrying GetConnection 7 Time.(INFO)
      03/22 17:52:37 Unable to get database connection:
      org.jboss.util.NestedSQLException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >; - nested throwable:
      (javax.resource.ResourceException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >)(ERROR)
      03/22 17:52:37 Retrying GetConnection 8 Time.(INFO)
      03/22 17:52:37 Unable to get database connection:
      org.jboss.util.NestedSQLException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >; - nested throwable:
      (javax.resource.ResourceException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >)(ERROR)
      03/22 17:52:37 Retrying GetConnection 9 Time.(INFO)
      03/22 17:52:37 Unable to get database connection:
      org.jboss.util.NestedSQLException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >; - nested throwable:
      (javax.resource.ResourceException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >)(ERROR)
      03/22 17:52:37 Retrying GetConnection 10 Time.(INFO)
      03/22 17:52:37 Unable to get database connection:
      org.jboss.util.NestedSQLException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >; - nested throwable:
      (javax.resource.ResourceException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >)(ERROR)
      03/22 17:52:37 Retrying GetConnection 11 Time.(INFO)
      03/22 17:52:37 Unable to get database connection:
      org.jboss.util.NestedSQLException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >; - nested throwable:
      (javax.resource.ResourceException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >)(ERROR)
      03/22 17:52:37 Retrying GetConnection 12 Time.(INFO)
      03/22 17:52:37 Unable to get database connection:
      org.jboss.util.NestedSQLException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >; - nested throwable:
      (javax.resource.ResourceException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >)(ERROR)
      03/22 17:52:37 Retrying GetConnection 13 Time.(INFO)
      03/22 17:52:37 Unable to get database connection:
      org.jboss.util.NestedSQLException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >; - nested throwable:
      (javax.resource.ResourceException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >)(ERROR)
      03/22 17:52:37 Retrying GetConnection 14 Time.(INFO)
      03/22 17:52:37 Unable to get database connection:
      org.jboss.util.NestedSQLException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >; - nested throwable:
      (javax.resource.ResourceException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >)(ERROR)
      03/22 17:52:37 Retrying GetConnection 15 Time.(INFO)
      03/22 17:52:37 Unable to get database connection:
      org.jboss.util.NestedSQLException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >; - nested throwable:
      (javax.resource.ResourceException: Transaction is not active:
      tx=TransactionImple < ac, BasicAction: a6462f2:c53:4ba8107c:8a status:
      ActionStatus.ABORT_ONLY >)(ERROR)
      03/22 17:52:37 Retrying GetConnection 16 Time.(INFO)
      ------------------------------------------------------------------------------------------------------------------------------------------------------------