Caused by: org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class [org.hibernate.cfg.AnnotationConfiguration]: Constructor threw exception; nested exception is java.lang.NoSuchFieldError: INSTANCE
网上查找了原因,原来要到tomcat里的webapps里删掉项目的hibernate-annotations.jar;hibernate-commons-annotations.jar;保留hibernate3.jar就行了。
不过在myeclipse的文件夹只有hibernate3.jar。
在myeclipse里tomcatserver。重新Redeploy一次,webapp文件夹就要重复生成一次,得不停的删
在使用MyEclipse开发过程中遇到无法加载特定Jar文件导致的Hibernate配置错误,通过删除项目中多余的hibernate-annotations.jar和hibernate-commons-annotations.jar文件,并保留hibernate3.jar,然后在MyEclipse中执行Redeploy操作来解决。
1126

被折叠的 条评论
为什么被折叠?



