Atomikos Forum

com.atomikos.icatch.jta.UserTransactionImp and UserTransaction

Hi all,

I have a twilight zone problem I am currently grappling with, I don't know if anyone has seen this before.

Tomcat is configured to make an instance of com.atomikos.icatch.jta.UserTransactionImp available via JNDI, and the war code is able to successfully look up and return the object.

The problem happens when I try and cast this object to javax.transaction.UserTransaction: I get a ClassCastException.

An attempt to evaluate (object instanceof UserTransaction) returns false, which makes no sense, as an attempt to iterate through the interfaces on this looked up object shows that one of the interfaces is javax.transaction.UserTransaction.

The version of JTA used is jta v1.1.

Has anyone encountered weirdness like this before?

Regards,
Graham
--
Graham Leggett Send private email
Monday, October 06, 2008
 
 
Hi,

We shop with JTA 1.0.1 - 1.1 is planned for a later release.

Try replacing the jta.jar with the one in our download.
Guy Pardon Send private email
Tuesday, October 07, 2008
 
 
I also suspect a classloader issue. Yhe Atomikos JARs (including jta.jar) should only lie in $TOMCAT_HOME/common/lib and must not be included in your WAR file.

Check http://www.atomikos.com/Documentation/Tomcat55Integration33 for more details.
Ludovic Orban Send private email
Tuesday, October 07, 2008
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics