File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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.

beth Mil

Joined: Oct 08, 2014
Posts: 1
Victor Lindberg your answer worked for me. Thank you
I agree. Here's the link:
subject: Having problems upgrading to hibernate 3.6