1 Reply Latest reply on Jul 20, 2002 10:03 PM by David Jencks

    Problem trying to start a LocalTransaction

    Michael Newbie

      when i invoke a bean method (the method acquires a jca and has container managed transaction settings) , i get the following exception: javax.transaction.xa.XAException: Error trying to start local tx: javax.resource.spi.EISSystemException: Could not beginLocalTransaction : Attempt to start local transaction while xa transaction is active!
      at org.jboss.resource.connectionmanager.LocalTxConnectionManager$LocalConnectionEventListener.start(LocalTxConnectionManager.java:502)
      at org.jboss.tm.TxCapsule.startResource(TxCapsule.java:1172)
      at org.jboss.tm.TxCapsule.enlistResource(TxCapsule.java:674)
      at org.jboss.tm.TransactionImpl.enlistResource(TransactionImpl.java:103)
      at org.jboss.resource.connectionmanager.LocalTxConnectionManager$LocalConnectionEventListener.enlist(LocalTxConnectionManager.java:320)
      at org.jboss.resource.connectionmanager.LocalTxConnectionManager.managedConnectionReconnected(LocalTxConnectionManager.java:255)
      at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:534)
      at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:812)
      at JdoConnectionFactory.getPersistenceManager(JdoConnectionFactory.java:74) at JdoConnectionFactory.getPersistenceManager(JdoConnectionFactory.java:90) at j2ee_tut.session.EShopEJB.createCatalog(EShopEJB.java:121).



      My genie-service.xml is:

      <?xml version="1.0" encoding="UTF-8"?>


      <depends optional-attribute-name="ManagedConnectionFactoryName">
      <!--embedded mbean-->

      genie



      <!--Below here are advanced properties -->
      <!--hack-->
      <depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=jdogenie

      <!--real attributes-->



      <depends optional-attribute-name="ManagedConnectionPool">
      <!--embedded mbean-->


      0
      50
      5000
      15
      ByContainer



      <depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager

      <depends optional-attribute-name="JaasSecurityManagerService">jboss.security:name=JaasSecurityManager

      java:/TransactionManager
      jboss.jca:service=RARDeployer






      My rar.xml is:
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE connector PUBLIC
      '-//Sun Microsystems, Inc.//DTD Connector 1.0//EN'
      'http://java.sun.com/dtd/connector_1_0.dtd'>

      <display-name>genie</display-name>
      <vendor-name>HT</vendor-name>
      <spec-version>1.0</spec-version>
      <eis-type>jdo</eis-type>
      1.0

      <license-required>false</license-required>


      <managedconnectionfactory-class>JdoManagedConnectionFactory</managedconnectionfactory-class>
      <connectionfactory-interface>javax.jdo.PersistenceManagerFactory</connectionfactory-interface>
      <connectionfactory-impl-class>JdoConnectionFactory</connectionfactory-impl-class>


      <connection-interface>javax.jdo.PersistenceManager</connection-interface>
      <connection-impl-class>JdoConnection</connection-impl-class>

      <transaction-support>LocalTransaction</transaction-support>

      <authentication-mechanism>
      <authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
      <credential-interface>javax.resource.security.PasswordCredential</credential-interface>
      </authentication-mechanism>
      <reauthentication-support>false</reauthentication-support>





      Can any one fix the problem