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

Stack Overflow | Tirath | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Save @Entity using @EntityManager not working

    Stack Overflow | 6 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