12 Replies Latest reply on Aug 18, 2015 5:01 AM by tomjenkinson

    NoClassDefFoundError: com/arjuna/ats/jta/TransactionManager

    doddio

      I'm trying to retrieve the remaining transaction time from com.arjuna.ats.jta.transaction.Transaction.getRemainingTimeoutMills(), but when I attempt to access the TransactionManager I get a NoClassDefFoundError.


      In my ejb project's pom.xml I have:

       

              <dependency>
                  <groupId>org.jboss.narayana.jts</groupId>
                  <artifactId>narayana-jts-jacorb</artifactId>
                  <scope>provided</scope>
              </dependency>
      

       

      In the ejb project's jboss-deployment-structure.xml I have:

       

      <jboss-deployment-structure>
          <deployment>
              <dependencies>
                  <module name="org.jboss.jts" />
              </dependencies>
          </deployment>
      </jboss-deployment-structure>
      

       

      The ejb project is deployed in an ear, which doesn't have a jboss-deployment-structure.xml of its own.

       

      Is it possible to access the TransactionManager from user code under Wildfly, or is that just not allowed? If it's allowed, what am I doing wrong? If there's an alternate approach to getting the remaining transaction time, that would be useful to know too.