I have exactly the same issue.
it keeps on using the one in commons/lib folder. while my app has is supposed to work with hibernate 3.5.3. I had heard that when there is a lib placed in the web-inf/lib folder it is given preference over the ones in the commons/lib folder.
I deleted the four hibernate jars in the commons/lib folder and added my hibernate jar there and it started working. but this is a workaround not a solution. If jboss is configured to use the hibernate 3.3 then it will give errors probably.
there should be a way, that the application uses the jar in web-inf/lib folder. please do post if you have the solution for this.
I think remove hibernate jars from commons/lib isn't a good solution,
but any one have a solution ? because it's a very blocking problem ...
exactly!! It should have a solution.. I heard u can actually tell jboss to look in the web-inf/lib folder for a certain jar take that only in such a case.
there should be more than just two ppl who came across this issue. isnt no one using new hibernate with new jboss vers.
See if this helps. It was written for AS-4.2.x but should apply for AS-5 too.
P.S: I thought of pointing you to some forum posts, but some of them discuss various different issues, so might be confusing.
Ok this is what I was looking for.