我使用的是以下库:
hibernate hibernate-core 3.6.3.Final hibernate hibernate-jpa 2.0-api-1.0.0.Final provided 以及Spring3.0.5发行库
但是在加载AppContext时,我得到了以下错误:
java.lang.ClassNotFoundException: EnvironmentClassLoader中的org.hibernate.annotations.common.reflection.ReflectionManager。
看起来我可能错过了hibernate-annotation jar,如果正确的话,我应该使用哪个版本。我尝试了几个,但导致了版本冲突。
谢谢!
发布于 2011-04-16 00:28:47
这个类在hibernate-commons-annotations-3.0.5.Final.jar中。
另外,我建议你提高你的回答速度。
发布于 2019-04-15 13:31:23
对于任何与Hibernate Jar版本相关的问题,请查看hibernate-entitymanager jar版本。因为
entitymanager jar内部包含hibernate核心的编译jar、注解、通用注解等。
纠正entitymanager的版本将解决您对其他jars的依赖问题。
https://stackoverflow.com/questions/5679627
复制相似问题