5 Replies Latest reply on Oct 12, 2007 8:39 AM by Clebert Suconic

    Incorrect api for looking up TransactionManager

    Adrian Brock Master

      When I remove the old transaction from jboss-head, I'm seeing this error
      with JBossMessaging:

      18:08:12,510 ERROR [ExceptionUtil] org.jboss.messaging.core.jmx.JDBCPersistenceManagerService@18c3efb startService
      java.lang.NoClassDefFoundError: org/jboss/tm/TransactionManagerServiceMBean
       at org.jboss.messaging.core.jmx.JDBCServiceSupport.getTransactionManagerReference(JDBCServiceSupport.java:171)
       at org.jboss.messaging.core.jmx.JDBCPersistenceManagerService.startService(JDBCPersistenceManagerService.java:84)
      


      + one other

      *** CONTEXTS IN ERROR: Name -> Error
      
      jboss.messaging:service=JMSUserManager -> java.lang.NoClassDefFoundError: org/jboss/tm/TransactionManagerServiceMBean
      
      jboss.messaging:service=PersistenceManager -> java.lang.NoClassDefFoundError: org/jboss/tm/TransactionManagerServiceMBean
      


      The correct api to get the transaction manager is
      TransactionManager tm = TransactionManagerLocator.getInstance().locate();
      


      for now I'm going to move this interface to the server project, but this needs
      fixing.