Jeremy,

I'd like to see how the jdo-conf.xml file you are using looks like ? Any
chances of attaching this ? As explained below, th ecall to
setTransactionManager() has been deprecated in favour of declaring
transaction demarcation semantics in the JDO config file. But it looks
to me like you might be using a non-standard context name for the
transaction manager to lookup. If that's the case, you'll have to make
this known in the JDO confil file as well.

Werner

PS I have been talking to David Blevins the other day re: Derby support
with Castor. As far as I know, he's trying to get Castor 0.9.9M2 running
against your system as well.
PSS Feel free to hop onto irc://irc.codehaus.org/castor to talk about
your issue.

> -----Original Message-----
> From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] 
> Sent: Freitag, 16. September 2005 07:45
> To: Castor-User
> Subject: [castor-user] Upgrading From 0.9.5.3 to 0.9.9M2
> 
> Hey all,
>      I'm trying to update OpenEJB so that it uses the latest 
> version of Castor.  In doing so, I've run into some issues 
> that debugging through the source, of both OpenEJB and 
> Castor, hasn't seemed to help.
>  I have the jdo-conf.xml files right but when I do 
> JDO.getDatabase(), I get an error on line 595 of JDO.java.  I 
> have a _transactionManager but no _transactionManagerFactory. 
>  This leads me to believe that there is more to this than 
> just a few API fixes so the class will compile.  So, here is 
> some of the problematic code:
> 
> jdo_ForGlobalTransaction = new JDO();
> 
> // Assign the TransactionManager JNDI name to the dynamically 
> generated JNDI name
> //        jdo_ForGlobalTransaction.setTransactionManager( "java:comp/"
> + transactionManagerJndiNameTyrex );
> jdo_ForGlobalTransaction.setTransactionManager("java:openejb/T
> ransactionManager");
> jdo_ForGlobalTransaction.setDatabasePooling( true ); 
> jdo_ForGlobalTransaction.setConfiguration( 
> gTxDb.getAbsolutePath() ); 
> jdo_ForGlobalTransaction.setDatabaseName(EnvProps.GLOBAL_TX_DATABASE);
> jdo_ForGlobalTransaction.setCallbackInterceptor( this ); 
> jdo_ForGlobalTransaction.setInstanceFactory( this ); 
> jdo_ForGlobalTransaction.setLogInterceptor( new
> CMPLogger(EnvProps.GLOBAL_TX_DATABASE) );
> 
> I know that I need to comment out the
> JDO.setTransactionManager(String), since that's taken care of 
> in the jdo-conf.xml, but when I do so and get the class to 
> compile, when I call JDO.getDatabase(), I get the error 
> mentioned above where line 595 of JDO.java throws a 
> NullPointerException because _transactionManagerFactory is 
> null.  Can someone point me to the light?  I am not sure what 
> is going wrong.  I do know that I've debugged through a good 
> bit of the code and I still am at square one so that is why I'm here.
> 
> Take care,
>      Jeremy
> 
> --
> He who listens well, speaks well.
> 
> -------------------------------------------------
> 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