javax.persistence.PersistenceException: org.hibernate.HibernateException: The cho sen transaction strategy requires access to the JTA TransactionManager

Hibernate JIRA | Bill Burke | 1 decade ago
  1. 0

    If I leave out the transaction type, I get this error when using HEM outside of app server. You used to not require it. run.client1: [java] Exception in thread "main" javax.persistence.PersistenceException: org.hibernate.HibernateException: The cho sen transaction strategy requires access to the JTA TransactionManager [java] at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:188) [java] at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:110) [java] at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37) [java] at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:27) [java] at com.titan.clients.Client1.main(Client1.java:14) [java] Caused by: org.hibernate.HibernateException: The chosen transaction strategy requires access to the JTA Tran sactionManager [java] at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:311) [java] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1180) [java] at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:505) [java] at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:632) [java] at org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:126) [java] at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:180) [java] ... 4 more [java] Java Result: 1

    Hibernate JIRA | 1 decade ago | Bill Burke
    javax.persistence.PersistenceException: org.hibernate.HibernateException: The cho sen transaction strategy requires access to the JTA TransactionManager
  2. 0

    If I leave out the transaction type, I get this error when using HEM outside of app server. You used to not require it. run.client1: [java] Exception in thread "main" javax.persistence.PersistenceException: org.hibernate.HibernateException: The cho sen transaction strategy requires access to the JTA TransactionManager [java] at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:188) [java] at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:110) [java] at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37) [java] at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:27) [java] at com.titan.clients.Client1.main(Client1.java:14) [java] Caused by: org.hibernate.HibernateException: The chosen transaction strategy requires access to the JTA Tran sactionManager [java] at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:311) [java] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1180) [java] at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:505) [java] at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:632) [java] at org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:126) [java] at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:180) [java] ... 4 more [java] Java Result: 1

    Hibernate JIRA | 1 decade ago | Bill Burke
    javax.persistence.PersistenceException: org.hibernate.HibernateException: The cho sen transaction strategy requires access to the JTA TransactionManager
  3. 0

    pastebin - Something - post number 2166417

    pastebin.ca | 1 year ago
    com.sun.faces.mgbean.ManagedBeanCreationException: An error occurred performing resource injection on managed bean userBean
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate Exception errors in named queries

    Stack Overflow | 2 years ago
    org.hibernate.HibernateException: Errors in named queries: fetchCTCByReferenceIdByPendingApprov
  6. 0

    Errors in named queries: findByName in JBoss AS7 with Hibernate 3.6 and OJdbc6

    Stack Overflow | 2 years ago | Gaurav
    persistence.PersistenceException: [PersistenceUnit: manager1] Unable to build EntityManagerFactory

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.hibernate.HibernateException

      The chosen transaction strategy requires access to the JTA Tran sactionManager

      at org.hibernate.impl.SessionFactoryImpl.<init>()
    2. Hibernate
      SessionFactoryImpl.<init>
      1. org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:311)
      1 frame
    3. Hibernate
      Configuration.buildSessionFactory
      1. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1180)
      1 frame
    4. Hibernate EJB
      HibernatePersistence.createEntityManagerFactory
      1. org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:505)
      2. org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:632)
      3. org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:126)
      4. org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:180)
      5. org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:110)
      5 frames
    5. JavaEE 7
      Persistence.createEntityManagerFactory
      1. javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37)
      2. javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:27)
      2 frames
    6. com.titan.clients
      Client1.main
      1. com.titan.clients.Client1.main(Client1.java:14)
      1 frame