Hibernate 3 unable to look up UserTransaction on EAP 6

Solution Unverified - Updated -

Issue

We see errors when migrating our application from EAP 5 to 6

ERROR [org.quartz.core.ErrorLogger] (quartzScheduler_Worker-3) Job (DEFAULT.globalRefreshTask threw an exception.: org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.hibernate.HibernateException: Unable to locate current JTA transaction]
       at org.quartz.core.JobRunShell.run(JobRunShell.java:234) [quartz-1.8.6.jar:]
       at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) [quartz-1.8.6.jar:]
Caused by: org.hibernate.HibernateException: Unable to locate current JTA transaction
       at org.hibernate.context.JTASessionContext.currentSession(JTASessionContext.java:88) [hibernate-core.jar:3.3.2.GA_CP03]
       at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:621) [hibernate-core.jar:3.3.2.GA_CP03]
          ...  application code ...
       at org.quartz.core.JobRunShell.run(JobRunShell.java:223) [quartz-1.8.6.jar:]
       ... 1 more

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.