`
修__
  • 浏览: 15114 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

struts2升级到2.3.16

阅读更多
旧项目struts 2.1.8.1 + spring 3.0.3 + hibernate3  spring-security2.0.5
struts2爆出漏洞,对原项目升级struts2
以下为需要用到jar
asm-3.3.jar
asm-tree-3.3.jar
asm-commons-3.3.jar
cglib-2.2.jar
commons-io-2.2.jar
commons-lang-2.4.jar
commons-lang3-3.1.jar

struts2-core-2.3.16.1.jar
struts2-spring-plugin-2.3.16.1.jar
struts2-json-plugin-2.3.16.1.jar
struts2-cdi-plugin-2.3.16.1.jar
struts2-codebehind-plugin-2.3.16.1.jar
struts2-config-browser-plugin-2.3.16.1.jar
struts2-convention-plugin-2.3.16.1.jar
struts2-dwr-plugin-2.3.16.1.jar
freemarker-2.3.19.jar
ognl-3.0.6.jar
xwork-core-2.3.16.1.jar
启动后报错:
1、NoClassDefFoundError:com/opensymphony/xwork2/util/finder/ClassFinder$InfoBuildingVisitor
asm-3.3.jar

2、 Caused by: Cannot locate the chosen ObjectFactory implementation:spring - [unknown location]
由于缺少了与spring连接的jar struts2-spring-plugin-2.3.16.1.jar

3、Caused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V
开始用的cglib包是cglib-2.1.3.jar  ,后来换了一个cglib-2.2.jar

4、Caused by: java.lang.ClassNotFoundException: Login!loginAction
原来已有的action突然找不到,原来新的struts2默认禁用,动态调用action方法
because struts2.3.15.1升级后 s:submit method not work action's method
要在struts.properties里面加
struts.enable.DynamicMethodInvocation = true
或者
<constant name="struts.enable.DynamicMethodInvocation" value="true" />

0
0
分享到:
评论
1 楼 sayji 2014-04-25  
"棒"语法很丑,通配符更强大。把动态方法调用禁了那是大势所趋。

相关推荐

    struts2.3.16升级到struts2.5.13

    struts2.3.16升级到struts2.5.13的教程,里面包含了使用到的jar包,都是亲测使用的,把过程记录下来,方便其他人使用。

    Struts2集成json2.3.16架包.绝对不会出错.

    本人一直用这架包开发. 绝对不会出错.适用于集成struts2开发.

    Struts2-2.3.16 全jar包

    共8个包,将其复制到/Struts2/WebRoot/WEB-INF/lib下面 方法二:(不用复制,导入法) (1).右击项目名称Struts2--&gt;Build Path--&gt;Configure Build Path...--&gt;打开一对话框 (2).选择左边的"Java Build ...

    struts2-core-2.3.16.jar

    引用struts2框架时所需要的核心jar包

    struts-2.3.16 源码

    struts2-2.3.16源码

    Struts2.3.15.1版本升级到2.3.32详细流程

    Struts2.3.15.1版本升级到2.3.32版本详细流程,可解决Struts 2远程执行代码漏洞

    Struts2 2.3.16_doc

    This is better than the ServletRedirectResult because it does not require you to encode the URL patterns processed by the ActionMapper in to your struts.xml configuration files. This means you can ...

    Struts2 jar包下载struts2.3.16

    commons-fileupload-1.2.1.jar//文件上传时用的,为了以后用到,最好加入 commons-io-1.3.2.jar//同上 commons-logging-1.0.4.jar freemarker-2.3.16.jar ...共8个包,将其复制到/Struts2/WebRoot/WEB-INF/lib下面

    struts 2.3.16 需要的jar包

    struts2-core-2.3.16.jar xwork-core-2.3.16.jar commons-logging-1.1.3.jar ognl-3.0.6.jar commons-fileupload-1.3.jar freemarker-2.3.19.jar commons-io-2.2.jar javassist-3.11.0.GA.jar commons-lang-2.4.jar ...

    struts-2.3.16-src.zip

    struts-2.3.16-src.zip struts-2.3.16-src.zip )

    Struts2.3.16的必须的9个jar包

    Struts2.3.16的必须的9个jar包 Struts2在eclipse中的详细配置(图文解析):http://www.cnblogs.com/MartinLi841538513/articles/3597182.html

    struts-2.3.16-all

    struts-2.3.16-all

    Struts2 2.3.16xwork_doc

    Struts2 2.3.16xwork_doc 自己制作的xwork,如有错漏请见谅

    struts-2.3.16.chm

    struts-2.3.16是apache最新的html格式的api打包而成的chm格式的帮助文档,分享给喜欢编程的朋友们。

    struts2.3.16

    struts2.3.16 配置.运行环境myeclipse8.5,测试通过适合初学者

    struts2.3.16.chm

    最新版本的struts Core 文档 struts2.3.16.chm

    struts2.3.16.war

    struts2.3.16 war包,内含基本的struts2开发jar包和struts2参考的工程样例

    Struts2.3.16

    使用最新struts2.3.16源码,导入myEclipse 生成帮助文档,再使用jd2chm.exe转换生成,希望对你的开发学习有帮助。

Global site tag (gtag.js) - Google Analytics