Atomikos Forum |
|
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 --
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. |