PDA

View Full Version : Override bean transaction manager of grails to use jta transaction of jboss 5



grailsjee
22-02-2012, 06:15 PM
Hi Im beginner in Grails and need help.

My application is deployed in jboss 5 , I retrieve all jar in war in conflict with Jboss (jta log4j slf4j ...)
My application is deployed but when I want to persist a object with the methode save but that generate an error

Error 500: Executing action [save] of controller [ecotaxe.deploy.DonneeController] caused exception: Unable to locate current JTA transaction
Servlet: grails
URI: /ecotaxe-Deploy-1.0-SNAPSHOT/grails/donnee/save.dispatch
Exception Message: Unable to locate current JTA transaction
Caused by: Unable to locate current JTA transaction
Class: DonneeController


I need the code to put in ressources.xml or ressource.groovy to override TransactionManager for hibernate and indicate to use Jta transaction of JBoss

I have tried this :

<?xml version="1.0" encoding="UTF-8"?>
...
<tx:jta-transaction-manager />
</beans>

But still have the same error

Thanks in advance