"java.lang.IncompatibleClassChangeError: Failed to link org/hibernate/ejb/HibernatePersistence" in JBoss EAP

Solution Verified - Updated -

Issue

Encountering the exception below when deploying an application (originally based on an older Hibernate release) in JBoss EAP 7.2.

... java.lang.IncompatibleClassChangeError: Failed to link org/hibernate/ejb/HibernatePersistence (Module "deployment.mytest.war" from Service Module Loader): class org.hibernate.ejb.HibernatePersistence has interface org.hibernate.ejb.AvailableSettings as super class

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 7.2
  • Hibernate 5.3

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