resin服务器加载不了web.xml文件。

戈薇 发布于 2011/07/26 14:25
阅读 728
收藏 0

resin服务器加载不了web.xml文件。

There is no Action mapped for action name . - [unknown location]
 at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:189)
 at org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)
 at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)
 at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)
 at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)
 at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
 at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
 at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)
 at com.cnshixian.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:123)
 at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)
 at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)
 at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:265)
 at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:273)
 at com.caucho.server.port.TcpConnection.run(TcpConnection.java:682)
 at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:743)
 at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:662)
 at java.lang.Thread.run(Thread.java:619)

加载中
0
红薯
红薯
这是 web.xml 中有错误的配置导致的,关键信息: There is no Action mapped for action name
0
huSpring
huSpring
sturts的配置问题,你URL输入的action名称没有在struts-config.xml中配置或者是你输入错误
返回顶部
顶部