Looking for a JavaEE Architect or Potential Tech Co-Founder?
Please don't hesitate to contact me.

java.lang.NoSuchMethodException: org.hibernate.validator.ClassValidator

Note I'm using jboss-5.1.0.GA

If you ever encounter the following error:
Caused by: org.hibernate.AnnotationException: java.lang.NoSuchMethodException: org.hibernate.validator.ClassValidator.(java .lang.Class, java.util.ResourceBundle, org.hibernate.validator.MessageInterpolator, java.util.Map, org.hibernate.annotations.common.reflection.Reflec tionManager)

It's probably caused by hibernate jars somewhere in your classpath or most probably:


Just removed them, if you intended to use the jar files in your package.

java.lang.NoSuchMethodException: org.hibernate.validator.ClassValidator java.lang.NoSuchMethodException: org.hibernate.validator.ClassValidator Reviewed by Edward Legaspi on Friday, February 25, 2011 Rating: 5


Anonymous said...

Remove them and you've removed about half the JBoss implementation of the EBJ3 spec. The main reason for using a JEE container is to take advantage of the facilities it provides. If you want to package all of this stuff in your application, you're better off deploying in something like tomcat.

czetsuya said...

Yes, I understand that. Unfortunately I'm working on a project that already have those jar files, that's why I have no choice but to remove the jars that came from the web server.

Powered by Blogger.