This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark ""No JTA UserTransaction available" errmsg thrown by Atomikos/JTA  standalone app" Watch ""No JTA UserTransaction available" errmsg thrown by Atomikos/JTA  standalone app" New topic
Author

"No JTA UserTransaction available" errmsg thrown by Atomikos/JTA standalone app

Stuart Rogers
Ranch Hand

Joined: Oct 02, 2008
Posts: 133
I did succeed in upgrading a functioning standalone desktop Java/Spring3x/Hibernate3x/Maven/MySQL5x/Eclipse app
from using Hibernate for my ORM to JPA2.

Now I'd like to upgrade it further from using JPA2 to JTA. I chose Atomikos
for my external transaction manager as JOTM is no longer supported in Spring 3.x .

Here's what I have so far:

pom.xml


ApplicationContext.xml


persistence.xml


and my simple app
TestQueries


Problem is when I execute TestQueries I never get to point C -


I can't figure out why I'm getting these errmsgs, my beans for transactionManager and its properties look ok.
the pom excludes a few transitive dependencies that cause conflicts.

Can anyone spot what's wrong/missing/extraneous? It must be something fiendishly subtle.

TIA,


Still-learning Steve
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: "No JTA UserTransaction available" errmsg thrown by Atomikos/JTA standalone app
 
Similar Threads
Spring 3.0.2 and Active MQ 5.4.1 Issues
unable to integrate my dao classes with spring
Spring Major version '3' expected
Error: ERROR initServletBean, Context initialization failed
Hibernate: org.springframework.beans.factory.BeanCreationException