java.lang.IllegalStateException: A JTA EntityManager cannot use getTransaction()

Stack Overflow | Tirath | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Save @Entity using @EntityManager not working

    Stack Overflow | 8 months ago | Tirath
    java.lang.IllegalStateException: A JTA EntityManager cannot use getTransaction()
  2. 0

    Hibernate, JPA can not persist to Database

    Stack Overflow | 2 months ago | Snerps
    java.lang.IllegalStateException: A JTA EntityManager cannot use getTransaction()

  1. davidvanlaatum 4 times, last 8 months ago

Root Cause Analysis

  1. java.lang.IllegalStateException

    A JTA EntityManager cannot use getTransaction()

    at org.hibernate.internal.AbstractSharedSessionContract.getTransaction()
  2. Hibernate
    AbstractSessionImpl.getTransaction
    1. org.hibernate.internal.AbstractSharedSessionContract.getTransaction(AbstractSharedSessionContract.java:360)
    2. org.hibernate.internal.AbstractSessionImpl.getTransaction(AbstractSessionImpl.java:23)
    2 frames
  3. Container Common
    EntityManagerWrapper.getTransaction
    1. com.sun.enterprise.container.common.impl.EntityManagerWrapper.getTransaction(EntityManagerWrapper.java:806)
    1 frame