How to deploy JPA2 in an isolated deployment in JBoss EAP 5?

Solution Verified - Updated -

Issue

  • We need use JPA 2.0 in our web application, placing JPA 2.0 jars (hibernate) in war lib directory give no effect.
  • I have a web application written using Spring 3.0.5 and Hibernate 3.6.5. I am seeing the following exception when attempting to deploy my war file.
        Caused by: java.lang.NoSuchMethodException: org.hibernate.validator.ClassValidator.<init>(java.lang.Class, java.util.ResourceBundle, org.hibernate.validator.MessageInterpolator, java.util.Map, org.hibernate.annotations.common.reflection.ReflectionManager)
             at java.lang.Class.getConstructor0(Class.java:2706)

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 5.x

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