0 Replies Latest reply on Feb 23, 2012 9:21 AM by youness yahya

    Unable to locate current JTA transaction in grails application deployed in jboss5

    youness yahya Newbie

      Hello,

       

      I want to deploy a grails 1.3.7 application to Jboss 5.2 but I have a problem with the JTA transaction :

       

      Stacktrace follows: org.hibernate.HibernateException: Unable to locate current JTA transaction        

      at xxxx.deploy.DonneeController$_closure4.doCall(DonneeController.groovy:24)        

      at xxxx.deploy.DonneeController$_closure4.doCall(DonneeController.groovy)        

      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)        

      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)        

      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)        

      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)        

      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)        

      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)        

      at java.lang.Thread.run(Thread.java:662)

       

      The resources.xml groovy file is :

       

      <beans... 
      <bean id="transactionManager"
        class="com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate">
      </bean>

      <tx:annotation-driven transaction-manager="transactionManager" />
      <tx:jta-transaction-manager />
      </beans>

       

      My jboss-web.xml is:     

                

      <jboss-web>

         <class-loading java2ClassLoadingCompliance="false">

            <loader-repository>

               xxxx.DeployIHM:archive=xxxx-Deploy-1.0-SNAPSHOT.war

               <loader-repository-config>java2ParentDelegation=false</loader-repository-config>

            </loader-repository>

         </class-loading>

      </jboss-web>

       

      Any ideas to solve this problem ?

       

      Best regards