各种缺少jar包出现的问题提示:类似org.aopalliance.intercept.MethodInterceptor这样

来源:互联网 发布:windows xp 激活密钥 编辑:程序博客网 时间:2024/05/20 18:41

各种缺少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

阅读全文
1 0