java.lang.ClassCastException: org.jboss.tm.usertx.client.ServerVMClientUserTransaction cannot be cast to javax.transaction.UserTransaction in jBPM application deployed on JBoss EAP

Solution Verified - Updated -

Issue

  • I get the following Exception when I deploy jbpm-human-task.war.
ERROR [[/jbpm-human-task]] Servlet /jbpm-human-task threw load() exception
java.lang.ClassCastException: org.jboss.tm.usertx.client.ServerVMClientUserTransaction cannot be cast to javax.transaction.UserTransaction
        at org.drools.persistence.jta.JtaTransactionManager.findUserTransaction(JtaTransactionManager.java:119)
  • Also, I get the following Exception with my jBPM application as well.
ERROR [STDERR] java.lang.ClassCastException: org.jboss.tm.usertx.client.ServerVMClientUserTransaction cannot be cast to javax.transaction.UserTransaction
ERROR [STDERR]     at com.example.ProcessManager.getTransactionManager(ProcessManager.java:405)
ERROR [STDERR]     at com.example.ProcessManager.beginTransaction(ProcessManager.java:412)
ERROR [STDERR]     at com.example.ProcessManager.startProcess(ProcessManager.java:82)

Can you please suggest me the how to solve this issue?

Environment

  • JBoss Enterprise Business Rules Management System (BRMS)
    • 5.3.0
  • jBPM
    • 5

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