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.
Using Weblogic, persistence type is JTA, and we get this error:
java.lang.IllegalStateException:
Exception Description: Cannot use an EntityTransaction while using JTA.
We are not calling em.getTransaction(), so maybe @Transactional annotation is causing this error?
Regards.