aspose 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
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: 1649
    
    7

Try adding


[How To Ask Questions][Read before you PM me]
 
wood burning stoves
 
subject: Junit/Hibernate error: org.hibernate.HibernateException: Error applying BeanValidation