java.lang.IllegalStateException: Only session beans with bean-managed transactions can obtain UserTransaction

Stack Overflow | Tirath | 5 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 | 5 months ago | Tirath
    java.lang.IllegalStateException: Only session beans with bean-managed transactions can obtain UserTransaction

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Only session beans with bean-managed transactions can obtain UserTransaction

      at com.sun.ejb.containers.EJBContainerTransactionManager.getUserTransaction()
    2. Embedded GlassFish Web
      AbstractSessionContextImpl.getUserTransaction
      1. com.sun.ejb.containers.EJBContainerTransactionManager.getUserTransaction(EJBContainerTransactionManager.java:566)
      2. com.sun.ejb.containers.BaseContainer.getUserTransaction(BaseContainer.java:995)
      3. com.sun.ejb.containers.AbstractSessionContextImpl.getUserTransaction(AbstractSessionContextImpl.java:120)
      3 frames