File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Junit/Hibernate error: org.hibernate.HibernateException: Error applying BeanValidation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Junit/Hibernate error: org.hibernate.HibernateException: Error applying BeanValidation" Watch "Junit/Hibernate error: org.hibernate.HibernateException: Error applying BeanValidation" New topic
Author

Junit/Hibernate error: org.hibernate.HibernateException: Error applying BeanValidation

Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 436
Hi,

I'm using Hibernate 4.1.5.SP1 and hibernate validator 4.3.0.Final. In my Junit (4.8.1) test (either through Maven or Eclipse), I'm unable to create a session factory. I try and create a session factory like so …



Here is the exception (after is my hibernate.cfg.xml) ...



And the hibernate.cfg.xml …



Any ideas what I'm leaving out? Thanks, - Dave
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

Try adding


[How To Ask Questions][Read before you PM me]
 
jQuery in Action, 2nd edition
 
subject: Junit/Hibernate error: org.hibernate.HibernateException: Error applying BeanValidation
 
Similar Threads
error with running EJBContainer junit test
Double insertion using entity lifecycle listener
Problem with multiple data sources in mybatis+spring
Can I run hibernate annotations 3 without sl4j
failed jndi datasource lookup for jdbc/__default on Glassfish