开发者

spring hibernate version issue

开发者 https://www.devze.com 2023-02-26 16:48 出处:网络
I am using following libs: hibernate hibernate-core 3.6.3.Final hibernate hibernate-jpa 2.0-api-1.0.0.Final

I am using following libs:

hibernate hibernate-core 3.6.3.Final hibernate hibernate-jpa 2.0-api-1.0.0.Final provided

Along with spring 3.0.5 RELEASE libs

But I am getting the follwoing error while AppContext loading:

java.lang.ClassNotFoundException: org.hibernate.annotations.common.reflection.ReflectionManager in EnvironmentClassLoader.

Looks like I might be missing the hibe开发者_运维问答rnate-annotation jar, if thats correct which version should I use. I tried several, but leading to version conflicts.

Thanks!


This class is in hibernate-commons-annotations-3.0.5.Final.jar.

P.S. I recommend you to improve your answer rate.


For Any Hibernate Jar Version related issue , check with hibernate-entitymanager jar version . Because

entitymanager jar internally contains compiled jar of hibernate core , annotations , commons-annotations etc.

Rectifying the version of entitymanager will solve your dependency problem on other jars.

0

精彩评论

暂无评论...
验证码 换一张
取 消