This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Having problems upgrading to hibernate 3.6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Having problems upgrading to hibernate 3.6" Watch "Having problems upgrading to hibernate 3.6" New topic

Having problems upgrading to hibernate 3.6

Ra Carter
Ranch Hand

Joined: Jul 30, 2005
Posts: 96
I actually posted this same question on the hibernate forums, but also posting here in case someone here can help.

So I am trying to upgrade to Hibernate 3.6.0 (from 3.5.2). I'm using JBoss 4.2, Spring 2.1, and the code contains a combination of hbm files and annotations and makes reference to ehcache as well. I can upgrade spring by the way, but I'd prefer not to just yet if I didn't have to.

Anyway, I seem to be unable to find the right combination of hibernate jars right now. The closest I came was with these:I may not need all of those but JBoss seems to start without error with that combination. However my unit tests fail on save operations with this stack trace:At this point I started trying varying combinations of jars. Namely I tried upgrading to hibernate-validator-4.0.1.Final, but no matter what, I always seem to run into this error when starting up JBoss now:I have no idea where org.hibernate.validator.ClassValidator is nor do I know who is requiring it.

Currently I am at a loss. Is this a jar dependency issue? If so, what jars do I need? If not, should I make any code changes? Any help would be greatly appreciated on this issue.
Ra Carter
Ranch Hand

Joined: Jul 30, 2005
Posts: 96
So the problem was with JBoss 4.2.3, which includes incompatible versions of hibernate in jboss/server/default/lib. Removing them resolved the issue.
Victor Lindberg

Joined: Feb 13, 2012
Posts: 5
I solved this problem adding this two properties in my hibernate config.

It is sorta covered in the JavaRanch Style Guide.
subject: Having problems upgrading to hibernate 3.6
Similar Threads
Hibernate wrong number of column. should be 1
Exception thrown : org.springframework.beans.factory.BeanCreationException
Exception in thread "main" org.springframework.beans.factory.BeanCreationException
Tomcat to JBoss Migration.
Struts 2 + Spring 2 + JPA + AJAX