Hi Bryan,

as the exception occures at JDOManager castor is also able to retrieve the transaction manager from JNDI. It fails at a much later point when you call getDatabase() which executes the following code:

           Transaction tx = null;
           int status = -1;
           try {
               tx = transactionManager.getTransaction();
               if (tx != null) { status = tx.getStatus(); }
           } catch (Exception ex) { // SystemException
// Failed to get transaction from transaction manager or failed to get
               // status information from transaction.
String msg = Messages.message("jdo.manager.failCreateTransaction");
               LOG.error(msg, ex);
               throw new PersistenceException(msg, ex);
           }
if ((tx == null) || (status != Status.STATUS_ACTIVE)) { String msg = Messages.message("jdo.manager.failGetTransaction");
               LOG.error(msg);
               throw new PersistenceException(msg);
           }

It calls getTransaction() on the transaction manager and if it got a transaction gets its status. What seams to happen is, that the transaction is null or the status of the transaction is not active. If you take a look at javadoc of org.jboss.tm.TxManager.getTransaction() you will find:

Return the transaction currently associated with the invoking thread, or |null| if no active transaction is currently associated.

I expect that you are hit by not having a active transaction associated to the invoking thread.

Regards
Ralf


[EMAIL PROTECTED] schrieb:

Does anyone have a different setting in there jdo-conf.xml for
TransactionManager in jboss? I am getting the error below.

[JDOManager] Failed to get an active transaction from J2EE
transaction manager.

 <jdo-conf>
    <database name="test" engine="mysql">
       <jndi name="java:/MYSQL"/>
       <mapping href="jdo.xml"/>
    </database>
    <transaction-demarcation mode="global">
       <transaction-manager name="jndi">
          <param name="jndiEnc"
value="java:/TransactionManager"/>
       </transaction-manager>
    </transaction-demarcation>
 </jdo-conf>

-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to