本文主要是介绍各种缺少jar包出现的问题提示:类似org.aopalliance.intercept.MethodInterceptor这样,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
各种缺少jar包出现的问题提示:类似org.aopalliance.intercept.MethodInterceptor这样
Caused by: java.lang.ClassNotFoundException: org.aopalliance.intercept.MethodInterceptor
因缺少加入aopalliance.jar。
//如果不用,启动时不会出错,但使用Dwr时,会抛出异常:java.lang.NoClassDefFoundError: antlr/ANTLRException
antlr-2.7.2.jar
//如果不用此包,在启动时会抛出: nested exception is java.lang.NoClassDefFoundError: org/objectweb/asm/Type
asm.jar
//如果不用此包,在启动时抛出:nested exception is java.lang.NoClassDefFoundError:
org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException
aspectjweaver.jar
//如果不用此包,在启动时抛出:nested exception is java.lang.NoClassDefFoundError:
net/sf/cglib/proxy/CallbackFilter
cglib-2.1.3.jar
//如果不用此包,在启动时抛出:nested exception is java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap
commons-collections-3.1.jar
//这个似乎可以不用的
commons-fileupload-1.2.1.jar
//这个就不用说啦,几乎所有框架都要使用的
commons-logging-1.0.4.jar
//如果不用此包会抛出:java.lang.NoClassDefFoundError: org/dom4j/DocumentException
dom4j-1.6.1.jar
//dwr必须
dwr.jar
//不用此包,在启动时招聘:java.lang.NoClassDefFoundError:
javax/transaction/TransactionManager
jta.jar
//Mysql JDBC驱动
mysql-connector.jar
//Hibernate必须使用,注意此包是包含全部的。
hibernate3.jar
//Spring整体包
spring.jar
//struts2必须
freemarker- 2.3 . 8 .jar
//struts2必须
ognl- 2.6 . 11 .jar
//struts2核心包
struts2-core- 2.0 . 11.2 .jar
//struts2整合Spring插件
struts2-spring-plugin- 2.0 . 11.2 .jar
//struts2必须
xwork- 2.0 . 5 .jar
Caused by: org.springframework.aop.framework.AopConfigException: Cannot proxy target
class because CGLIB2 is not available
com.springsource.net.sf.cglib-2.2.0.jar
这篇关于各种缺少jar包出现的问题提示:类似org.aopalliance.intercept.MethodInterceptor这样的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!