报错为:java.lang.NoSuchMethodError: org.objectweb.asm.ClassReader.accept(Lorg/objectweb/asm/ClassVisitor;I)V
但我在网上找都说是 hibernate 和spring 整合时用aop会存在包冲突,我按网上说的找了下 我没有用hibernate里面的asm相关的jar包,但是还是报错。求高人指点。
我用到的jar包 :<classpathentry kind="lib" path="WebContent/WEB-INF/lib/antlr-2.7.6.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-collections-3.1.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-dbcp.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-fileupload-1.2.2.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-logging-1.1.1.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-pool-1.3.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/dom4j-1.6.1.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/ejb3-persistence.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/freeer-2.3.16.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/hibernate-annotations.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/hibernate-commons-annotations.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/hibernate3.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/javassist-3.4.GA.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jta.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jtds-1.2.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/log4j-1.2.15.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/ognl-3.0.1.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/slf4j-api-1.5.2.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/slf4j-log4j12-1.5.0.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/struts2-convention-plugin-2.2.3.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/struts2-core-2.2.3.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/struts2-spring-plugin-2.2.3.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/xwork-core-2.2.3.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/junit-4.9b2.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/backport-util-concurrent-2.2.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/aspectjweaver.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-io-2.0.1.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-lang-2.5.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/asm-2.2.3.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/asm-commons-2.2.3.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/asm-util-2.2.3.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/cglib-nodep-2.1_3.jar"/>
但我在网上找都说是 hibernate 和spring 整合时用aop会存在包冲突,我按网上说的找了下 我没有用hibernate里面的asm相关的jar包,但是还是报错。求高人指点。
我用到的jar包 :<classpathentry kind="lib" path="WebContent/WEB-INF/lib/antlr-2.7.6.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-collections-3.1.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-dbcp.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-fileupload-1.2.2.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-logging-1.1.1.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-pool-1.3.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/dom4j-1.6.1.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/ejb3-persistence.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/freeer-2.3.16.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/hibernate-annotations.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/hibernate-commons-annotations.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/hibernate3.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/javassist-3.4.GA.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jta.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jtds-1.2.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/log4j-1.2.15.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/ognl-3.0.1.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/slf4j-api-1.5.2.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/slf4j-log4j12-1.5.0.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/struts2-convention-plugin-2.2.3.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/struts2-core-2.2.3.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/struts2-spring-plugin-2.2.3.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/xwork-core-2.2.3.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/junit-4.9b2.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/backport-util-concurrent-2.2.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/aspectjweaver.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-io-2.0.1.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-lang-2.5.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/asm-2.2.3.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/asm-commons-2.2.3.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/asm-util-2.2.3.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/cglib-nodep-2.1_3.jar"/>
解决方案 »
- java 运行excel
- 一段简单的js问题:我想让表单提交之后自动关闭,现在没提交就已经关闭了
- 定义业务逻辑组件的时候遇到了一个问题,请教!谢谢
- J2EE中一个奇怪的查询问题!!
- struts 中bean标签的使用问题。
- 不知道网址秀(www.wzxiu.com)是怎么在windows2000的右键菜单中增加菜单项的?
- 请教各位,如何使用PrepareStatement和CallableStatement连接数据库??
- java.lang.NoClassDefFoundError: org/w3c/dom/Element
- 各位大侠救救我吧,这个问题解决不了就没法活了
- 求一个完整OA项目java代码(急急急)
- war包如何读外部properties文件
- myeclipse突然无法启动weblogic,有朋友遇到这个问题吗?
java.lang.NoClassDefFoundError: org/objectweb/asm/commons/EmptyVisitor
这个错
java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor我郁闷了