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

Stack Overflow | Tirath | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Save @Entity using @EntityManager not working

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

    Hibernate, JPA can not persist to Database

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

  1. davidvanlaatum 4 times, last 7 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