[jboss-user] [Snowdrop] - Re: TransactionManager and UserTransaction
Andreas Panagiotidis
do-not-reply at jboss.com
Wed Jul 4 05:45:19 EDT 2012
Andreas Panagiotidis [https://community.jboss.org/people/apanag] created the discussion
"Re: TransactionManager and UserTransaction"
To view the discussion, visit: https://community.jboss.org/message/746024#746024
--------------------------------------------------------------
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
org.springframework.jndi.TypeMismatchNamingException:
*Object* of type [class org.jboss.tm.*TxManager*]
available at JNDI location [java:/TransactionManager] *is not assignable*
to [*javax.transaction.TransactionManager*]
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>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/746024#746024]
Start a new discussion in Snowdrop at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2082]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120704/e8781070/attachment-0001.html
More information about the jboss-user
mailing list