您的位置:首页 > 编程语言 > Java开发

Struts2.3.8 最少需要jar包

2013-01-28 21:39 357 查看
struts2.3.8

今天搭struts2.3.8,发现引入的jar包有变化。
需要的jar包至少为:
commons-fileupload-1.2.2.jar
commons-io-2.0.1.jar
commons-lang3-3.1.jar
commons-logging-1.1.1.jar
freemarker-2.3.19.jar
javassist-3.11.0.GA.jar
ognl-3.0.6.jar
struts2-core-2.3.8.jar
xwork-core-2.3.8.jar
共九个包.

===========================================================

相关查询资料:
===========================================================
严重: Dispatcherinitialization failed java.lang.RuntimeException: java.lang.reflect.InvocationTargetException处理方法:
1、核对lib包 commons-fileupload-1.2.1.jar,(注意2.1以前是没有commons-fileupload-1.2.1.jar;)
commons-io-1.3.2.jar,
commons-logging-1.0.4.jar,
freemarker-2.3.16.jar,
ognl-3.0.jar,
struts2-core-2.2.1.jar,
xwork-core-2.2.1.jar
2、如果struts2版本是2.1以前 web.xml配置过滤器的时候应该是这样:
index struts2 org.apache.struts2.dispatcher.FilterDispatcher struts2
/* 如果struts2版本是2.1以上 web.xml配置
index.jsp struts2
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts2 /*
3、在使用struts-2.2.1时,需要引入javassist-3.7.ga.jar,而这个在struts-2.2.1\lib下是没有的,需要在struts-2.2.1\apps\struts2-blank-2.2.1.war下的lib中找。

===========================================================

struts2.2.3最少所需jar包

struts2-core-2.2.3.jar:Struts 2框架的核心类库
xwork-core-2.2.3.jar:XWork类库,Struts 2在其上构建
commons-fileupload-1.2.2.jar:文件上传组件,2.1.6版本后必须加入此文件
commons-io-2.0.1.jar
commons-lang-2.5.jar
commons-logging-1.1.1.jar:日志包,Struts 2框架使用这个日志包来支持Log4J和JDK 1.4+的日志记录。
freemarker-2.3.16.jar:Struts 2的UI标签的模板
javassist-3.11.0.GA.jar:操作字节码的jar
ognl-3.0.1.jar :对象图导航语言(Object GraphNavigation Language),struts2框架通过其读写对象的属性
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: