错误代码:
<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 ...
解决:ERROR: Failed building wheel for dlib
异常A generic error occurred in GDI+的解决办法
QUASHFS error: sb_bread failed reading block 的错误一般都是文件系统不完整导致的。
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
今天小编就为大家分享一篇python pip安装包出现:Failed building wheel for xxx错误的解决,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
Fatal error: Class ‘COM’ not found in XXXXXXXXX 没发现 COM 类,php代码主要是调用一些系统的信息,初想应该是php没配置好,在stackoverflow找到答案,是讨论xampp的,要延伸开来,我加了几个要点: ★ php 根...
keil arm编译链 v5 版本 error: unknown register name vfpcc in asm 务必安装在keil /arm 的目录下。
解决Fatal error Class 'Think' not found in runtime.php
effective SNR mapping for modeling frame error rates in multiple-state channels 3GPP2
students and researchers in engineering with a sound background in binary and nonbinary error-correcting codes, covering different classes of block and convolutional codes, band-width efficient coded ...
高博在视觉SLAM十四讲中使用的Sophus版本,解决 Eigen 与 Sophus 版本不兼容的问题,无需源码安装Eigen 3.3.0,同时可以解决 ‘ScalarBinaryOpTraits’ in namespace ‘Eigen’ 的问题。可在十四讲代码的百度网盘...
问题描述 我是debain 系的linux系统没遇到这个问题,在centos系统遇到的 Collecting dlib ... 100% |████████████████████████████████| 3.2MB 99.4MB/s Building wheels for co
Minimum mean square error method for stripe nonuniformity correction 是关于红外图像非均匀性校正的论文
1.3 MVC in Five Minutes: Building Quote-O-Matic 2 Test-Driven Development 2.1 TDD Explained 2.2 Test-Driving “Hello World” II Building an Application 3 Getting Organized with MVC 3.1 Time ...
Quaternion kinematics for the error-state Kalman filter.pdf Quaternion kinematics for the error-state Kalman filter.pdf Quaternion kinematics for the error-state Kalman filter.pdf Quaternion ...
I assume you are a moderately experienced software developer and a test engineer in the process of conducting software test for your organization. The explanations and examples in this book can be ...
Data Reduction and Error Analysis for the physical sciences- Bevington, Philip R
including information retrieval, test activity ex- ecution, result analysis and making decisions for next test phase. Interfaces that connect the above parts in the framework are built up to have ...