错误代码:
<package name="default" >
<action name="test" class="com.txs.Hello">
<result name="success" type="dispatcher">hello.jsp</result>
</action>
</package>
正确代码:
<package name="default" extends="struts-default">
<action name="test" class="com.txs.Hello">
<result name="success" type="dispatcher">hello.jsp</result>
</action>
</package>
Error building results for action test in namespace - action - file:/C:/Tomcat%206.0/webapps/sys/WEB-INF/classes/struts.xml:18:45
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:340)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:429)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:239)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:205)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3696)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: There is no result type defined for type 'dispatcher' mapped with name 'success' - result - file:/C:/Tomcat%206.0/webapps/sys/WEB-INF/classes/struts.xml:19:45
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildResults(XmlConfigurationProvider.java:584)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:338)
... 35 more
发生这个问题是因为配置文件中的package的属性extends没有设置为struts-default
分享到:
相关推荐
- Changed the 2D test to wait for the Video Playback test in order to allow memory allocation for the Video playback test. - Changed the Memory test to wait for the Video Playback test and 3D test ...
本文主要探讨如何解决 "SQUASHFS error: sb_bread failed reading block" 这一常见问题。 SQUASHFS 是一个轻量级、高压缩率的文件系统,常用于嵌入式设备,因其高效的空间利用率而受到青睐。当遇到 "sb_bread ...
- 创建最小可复现示例(Minimal, Reproducible Example,简称MCVE),便于他人协助分析和解决问题。 在WPFTest01这个项目中,如果遇到了“异常A generic error occurred in GDI+”,首先检查项目的图像资源处理部分...
通过对ActionError的深入理解和运用,开发者可以更好地控制Web应用程序的错误处理流程,确保系统在出现问题时仍能保持良好的运行状态。在实际开发中,结合源码阅读和工具辅助,可以更深入地理解其工作原理,从而提升...
问题描述 我是debain 系的linux系统没遇到这个问题,在centos系统遇到的 Collecting dlib ... 100% |████████████████████████████████| 3.2MB 99.4MB/s Building wheels for co
Win10安装pyav出现报错:ERROR: Failed building wheel for av.Failed to build av. ERROR: Could not build wheel,具体可参考: https://blog.csdn.net/qq_15969343/article/details/124200888#comments_21964246
“No result defined for action”错误虽然常见,但通过仔细检查配置、审查代码逻辑、利用调试工具以及遵循框架的最佳实践,通常可以有效地定位并解决问题。在Web开发中,保持代码的清晰性和遵循既定的编程规范对于...
keil arm编译链 v5 版本 error: unknown register name vfpcc in asm 务必安装在keil /arm 的目录下。
Fatal error: Class ‘COM’ not found in XXXXXXXXX 没发现 COM 类,php代码主要是调用一些系统的信息,初想应该是php没配置好,在stackoverflow找到答案,是讨论xampp的,要延伸开来,我加了几个要点: ★ php 根...
总结,解决“ERROR: Failed building wheel for dlib”的问题需要检查和解决依赖、Python环境和编译设置。而“face_recog_dlib_file-master”文件可能提供了一个使用dlib进行面部识别的实践项目,通过它你可以深入...
- 避免不必要的括号使用,例如在`for`循环中应使用`for item in list_items:`而非`for item in list_items():`。 5. **验证代码执行结果**: - 在解析HTML时,可以使用`print()`语句辅助调试,确认是否正确提取了...
使用PL/SQL登录ORACLE数据 报错,error while trying to retrieve text for error ORA-01804,的解决方法,操作步骤,在windows server 2008R2 64位,oracle 12C,PLSQL Developer 12 64位,以上使用环境正常,
高博在视觉SLAM十四讲中使用的Sophus版本,解决 Eigen 与 Sophus 版本不兼容的问题,无需源码安装Eigen 3.3.0,同时可以解决 ‘ScalarBinaryOpTraits’ in namespace ‘Eigen’ 的问题。可在十四讲代码的百度网盘...
在开发过程中,保持错误报告开启可以帮助及时发现并解决问题。而在生产环境中,通常会关闭错误显示,以免泄露敏感信息,而是选择将错误记录到日志中。 总的来说,“Parse error: syntax error, unexpected end of ...
ERROR: Failed building wheel for fasttext Running setup.py clean for fasttext Failed to build fasttext Installing collected packages: fasttext Running setup.py install for fasttext ... error
RxJS in Action is your guide to building a reactive web UI using RxJS. You'll begin with an intro to stream-based programming as you explore the power of RxJS through practical examples. With the core...
maven settings.xml 解决在项目新建时报错 Error executing Maven. 2 problems were encountered while building the effective settings。下载这个,注意54行的目录,修改成自己的项目目录,直接覆盖原来的\conf...