`
wangmingyue
  • 浏览: 44888 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

struts2 2.2 升级到 struts2 2.3.15

 
阅读更多

根据网友http://blog.csdn.net/shiqidide/article/details/9424703 的说明 我做了配置 但是总报错:

Unable to load configuration. - [unknown location]
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:483)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:278)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:259)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:383)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:104)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4650)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5306)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1276)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1440)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:301)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1374)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519)
at java.lang.Thread.run(Thread.java:619)
Caused by: Unable to load configuration. - [unknown location]
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:71)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:429)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:471)
... 19 more
Caused by: Parent package is not defined: json-default - [unknown location]
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildPackageContext(XmlConfigurationProvider.java:660)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:508)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:290)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:112)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:239)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:68)
... 21 more



结果找了2个小时。最后发现原因是缺少:struts2-json-plugin-2.3.15.1.jar


struts的配置文件报错redirect-action;

解决办法:Result type=“redirect-action”更改为redirectAction;

修改web.Xml中FilterDispatcher为StrutsPrepareAndExecuteFilter

分享到:
评论

相关推荐

    Struts2漏洞检查工具2019版 V2.3.exe

    Struts2漏洞检查工具2019版 警告: 本工具为漏洞自查工具,请勿非法攻击他人网站! ==漏洞编号==============影响版本=========================官方公告==========================================影响范围====...

    struts2的所有jar包

    3. **依赖库**:Struts2依赖于许多其他开源库,如ognl-2.6.11.jar(Object-Graph Navigation Language,对象导航语言)用于表达式语言,freemarker-2.3.15.jar(FreeMarker模板引擎)处理视图渲染,javassist-3.9.0....

    struts-2.3.15.1

    根据 struts-2.3.15.1的源代码生成的帮助文档,CHM格式。 压缩包里包括生成的帮助文档所需的完整的struts-2.3.15.1的src和lib库文件(tomcat的jsp_api.jar和servlet_api.jar不在其中)。 如何生成,参考网上教程。 ...

    Struts2漏洞检查工具2018版.exe

    2018-08-24: 增加S2-057 Struts 2.3 to 2.3.34,Struts 2.5 to 2.5.16 此漏洞影响范围...S2-005 CVE-2010-1870 Struts 2.0.0-2.1.8.1 http://struts.apache.org/release/2.2.x/docs/s2-005.html 未添加,S2-016范围内

    Struts2.rar

    S2-048 CVE-2017-9791 Struts 2.3.X http://127.0.0.1:8090/struts2-showcase/integration/saveGangster.action 影响范围非常小 S2-046 CVE-2017-5638 Struts 2.3.5-2.3.31,Struts 2.5-2.5.10 ...

    JasperReport整合Struts2所用jar包 iTextAsian.jar sqljdbc4.jar

    asm-2.2.jar commons-collections-2.1.1.jar commons-digester-1.7.jar commons-fileupload-1.2.1.jar commons-logging-1.0.4.jar freemarker-2.3.15.jar groovy-all-1.5.5.jar iText-2.1.7.jar iTextAsian.jar ...

    Strust2.2.3.15.3.chm

    最为完善的Strust2.3.15.2 chm 帮助文档;文档中包含了xwork部分,可以直接查看struts底层xwork部分的实现;如通常需要继承的ActionSupport、DefaultTypeConverter等

    struts必须包

    这里面有Struts需要的基本架包,commons-beanutils.jar commons-fileupload-1.3.1.jar commons-io-2.2.jar commons-logging-1.1.1.jar freemarker-2.3.15.jar ...struts2-core-2.1.8.1.jar xwork-core-2.1.6.jar

Global site tag (gtag.js) - Google Analytics