This content has been marked as final.
Show 3 replies
-
1. Re: Migrating ejb3 appliction from jboss eap 5.x to jboss eap 6.x causing Caused by: java.lang.NoSuchMethodError: org.hibernate.criterion.Restrictions.eq(Ljava/lang/String;Ljava/lang/Object;)Lorg/hibernate/criterion/SimpleExpression; in hibernate
nickarls Apr 16, 2013 3:33 AM (in response to jaigates)Are you bundling hibernate with your application (sounds like a version mismatch somewhere in the classloaders)?
-
2. Re: Migrating ejb3 appliction from jboss eap 5.x to jboss eap 6.x causing Caused by: java.lang.NoSuchMethodError: org.hibernate.criterion.Restrictions.eq(Ljava/lang/String;Ljava/lang/Object;)Lorg/hibernate/criterion/SimpleExpression; in hibernate
jaigates Apr 16, 2013 4:32 AM (in response to nickarls)nope, i didnt.
basically this app was developed in eap 5.1 which runs on hibernate 3.2.x and just deploying it in eap 6.1.0alpha which runs on hibernate 4.x causing this problem.
i am using Restrictions.eq in my codebase and for time beign i altered to Restrictions.like, but need to find and fix permanent solution for this? for me looks like in 4.x Restrictions.eq definitions have been changed.
-
3. Re: Migrating ejb3 appliction from jboss eap 5.x to jboss eap 6.x causing Caused by: java.lang.NoSuchMethodError: org.hibernate.criterion.Restrictions.eq(Ljava/lang/String;Ljava/lang/Object;)Lorg/hibernate/criterion/SimpleExpression; in hibernate
nickarls Apr 16, 2013 4:51 AM (in response to jaigates)Try building it against the 4.x line, if there are compile errors then the signatures have changed and you'll just have to re-write the code if you want to run it on EAP 6, I guess.