-
1. Re: Hibernate core
armahdi Jun 30, 2010 4:36 AM (in response to adryen31200)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.
Thanks
Syed
-
2. Re: Hibernate core
adryen31200 Jun 30, 2010 12:19 PM (in response to armahdi)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 ...
-
3. Re: Hibernate core
armahdi Jun 30, 2010 3:56 PM (in response to adryen31200)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.
-
4. Re: Hibernate core
jaikiran Jun 30, 2010 11:51 PM (in response to adryen31200)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.
-
5. Re: Hibernate core
armahdi Jul 1, 2010 2:55 AM (in response to jaikiran)Ok this is what I was looking for.
Thanks.