I'm hitting java.lang.ClassCastException: com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate cannot be cast to javax.transaction.TransactionManager why?

Solution Verified - Updated -

Issue

  • ClassCastException while application tries to establish a database connection using Hibernate. Below is the stacktrace

    java.lang.ClassCastException: com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate cannot be cast to javax.transaction.TransactionManager
     at org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:57)
     at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:357)
     at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
    

Environment

  • Enterprise Application Platform (EAP)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content