I'm getting the same error, except I do not have any jta.jar in my jboss-4.0.3SP1 (all) install. Is this something that must be added in afterwards? I chose the all selection in the installer, and confirmed in the detailed option that it was installing JTA.
What was the final spring configuration for the transactionManager?
Nevermind. I got it. You do have to specify a name, apparently. It also must be "UserTransaction" as in:
<bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager"> <property name="userTransactionName"> <value>UserTransaction</value> </property> </bean>
Then it seems to work...mysterious.
Im having the same problem. Im trying to connect to the TransactionManager and get the same error. I've gone through the jar files i deploy in the WAR file and there is no jta.jar or any other jar file containnig javax.transaction.TransactionManager. Still it get the
[java:/TransactionManager] is not assignable to [javax.transaction.TransactionManager].
I get that it must be that i have the wrong TransactionManager class in the classpath somewhere but I cant find it. Is there any one who solved it who can give me some tips?
P:s I also had the jta.jar file in my war file before but I removed it but still the same outcome. D:s
I'm having the exact same problem, and have not found jta.jar anywhere. I noticed in the web-console that under J2EE Resources, there is an entity called TransactionManager, but i can view no properties on it. Should i be able to?
In general, does anyone have a good idea how to solve the problem here:
JTA TransactionManager is not available at JNDI location [java:/TransactionManager]; nested exception is javax.naming.NamingException: Object [org.jboss.tm.TxManager@ffce21] available at JNDI location [java:/TransactionManager] does not implement [javax.transaction.TransactionManager]
It's exactly like this, I had the same problem with Spring and JBoss 4.2. Exception
Caused by: org.springframework.transaction.TransactionSystemException:
JTA TransactionManager is not available at JNDI location [java:/TransactionManager];
nested exception is
Object of type [class org.jboss.tm.TxManager]
available at JNDI location [java:/TransactionManager] is not assignable
My application had added in the EAR its own JTA library, thus this one was used instead of the jta that comes from JBoss.
I use maven, so excluding the JTA artifacts in my pom solved the problem.
<dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-validator</artifactId> <exclusions> ... <exclusion> <groupId>javax.transaction</groupId> <artifactId>jta</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.quartz-scheduler</groupId> <artifactId>quartz</artifactId> <version>1.8.4</version> <exclusions> <exclusion> <artifactId>slf4j-api</artifactId> <groupId>org.slf4j</groupId> </exclusion> <exclusion> <groupId>javax.transaction</groupId> <artifactId>jta</artifactId> </exclusion> </exclusions> </dependency>