Struts2.3.8 最少需要jar包

 

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.jarStruts 2框架的核心类库

xwork-core-2.2.3.jarXWork类库,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框架使用这个日志包来支持Log4JJDK 1.4+的日志记录。

freemarker-2.3.16.jarStruts 2UI标签的模板

javassist-3.11.0.GA.jar:操作字节码的jar

ognl-3.0.1.jar :对象图导航语言(Object GraphNavigation Language),struts2框架通过其读写对象的属性

 

==================================================================== * The OpenSymphony Software License, Version 1.1 * * (this license is derived and fully compatible with the Apache Software * License - see http://www.apache.org/LICENSE.txt) * * Copyright (c) 2001-2004 The OpenSymphony Group. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * OpenSymphony Group (http://www.opensymphony.com/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "OpenSymphony" and "The OpenSymphony Group" * must not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact license@opensymphony.com . * * 5. Products derived from this software may not be called "OpenSymphony" * or "XWork", nor may "OpenSymphony" or "XWork" appear in their * name, without prior written permission of the OpenSymphony Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIB
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值