title: @Transactional guice annotation using JTA
body: <p>We have an application running both in Weblogic and Tomcat. We use @Transactional annotation of Guice package to correctly perform the database operations using a persistenceUnit of RESOURCE_LOCAL type using Tomcat.</p>
  
  <p>Using Weblogic, persistence type is JTA, and we get this error:</p>
  
  <pre><code>java.lang.IllegalStateException: 
  Exception Description: Cannot use an EntityTransaction while using JTA.
  </code></pre>
  
  <p>We are not calling em.getTransaction(), so maybe @Transactional annotation is causing this error? </p>
  
  <p>Regards.</p>