org.apache.xerces.parsers.XML11Configuration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
这个错误将 xerce.jar 删除掉就ok了
Cannot locate the chosen ObjectFactory implementation: spring
项目中少了struts2-spring-plugin-2.0.6.jar包
Caused by: java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException
aspectjweaver-1.6.9.jar
org/objectweb/asm/Type异常
nested exception is java.lang.NoClassDefFoundError: org/objectweb/asm/Type
原因是Spring中的cglib-nodep-2.1.3.jar与Hibernate中的cglib-2.2.jar相冲突!
两种框架整合时Spring中的cglib-nodep-2.1.3.jar是必须的,取消Hibernate中的cglib-2.2.jar即可
这个错误将 xerce.jar 删除掉就ok了
Cannot locate the chosen ObjectFactory implementation: spring
项目中少了struts2-spring-plugin-2.0.6.jar包
Caused by: java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException
aspectjweaver-1.6.9.jar
org/objectweb/asm/Type异常
nested exception is java.lang.NoClassDefFoundError: org/objectweb/asm/Type
原因是Spring中的cglib-nodep-2.1.3.jar与Hibernate中的cglib-2.2.jar相冲突!
两种框架整合时Spring中的cglib-nodep-2.1.3.jar是必须的,取消Hibernate中的cglib-2.2.jar即可
本文解决了一个关于Java项目中出现的框架冲突问题,包括xerces.jar导致的类型转换错误、缺少struts2-spring-plugin-2.0.6.jar包引发的问题、AspectJ与Spring集成时产生的NoClassDefFoundError异常以及Spring与Hibernate使用cglib版本冲突的情况。

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



