3 Replies Latest reply on Dec 1, 2008 12:43 PM by vickyk

    Could not enlist in transaction on entering meta-aware objec

    alejosc

      Hi all.

      In my application i have two PersistenceUnits in Persistence.xml, two datasource configuration files:

      Datasource 1:


      <local-tx-datasource>
      <jndi-name>gekDatasource</jndi-name>
      <connection-url>jdbc:oracle:thin:@hp06a:1521:ddiv01</connection-url>
      <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
      <user-name>mdbgekgen</user-name>
      mdbgekgen
      <min-pool-size>10</min-pool-size>
      <max-pool-size>50</max-pool-size>
      </local-tx-datasource>


      Datasource 2:

      datasources>
      <local-tx-datasource>
      <jndi-name>filevalDatasource</jndi-name>
      <connection-url>jdbc:oracle:thin:@hp06a:1521:ddiv01</connection-url>
      <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
      <user-name>fileval</user-name>
      fileval
      <min-pool-size>10</min-pool-size>
      <max-pool-size>50</max-pool-size>
      </local-tx-datasource>


      and... in runtime, i get the following exception:

      WARN [loggerI18N] [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.TxConnectionMan
      esource@786b4f
      WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
      ERROR [JDBCExceptionReporter] 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: a550f09:1116:492d6371:
      tionStatus.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. t
      Imple < ac, BasicAction: a550f09:1116:492d6371:39 status: ActionStatus.ABORT_ONLY >))
      ERROR [RetailoBatchLoadManagerBean] Failure Exception !! IOException: org.hibernate.exception.GenericJDBCException: Cannot open connection
      ERROR [RetailoBatchLoadManagerBean] [Ljava.lang.StackTraceElement;@5ba0d9

      Any help greatly appreciated.
      Thanks.