Struts常见异常解答:There is no Action mapped for namespace / and action name . - [unknown location]
2016-08-15 14:40
375 查看
There is no Action mapped for namespace / and 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:475) at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722)
这是我在用struts+mybatis开发项目是遇到的异常,这也是比较常见的Action异常。
我解决的几种路子
1. 首先检查你的struts.xml配置文件是否在src根路径下.
2. 配置文件中的action路径是否正确,包括namespace.
3. mybatis-config.xml配置文件是否在src的根路径下。
4. mybatis-config.xml配置文件中的resultMap的属性名和列名是否对应无误,列名要大写.
5. 其次检查你的数据库是否开启,表是否能打开.
以上是我在做项目时出的错的总结。。。如有什么问题可留言。。
相关文章推荐
- 关于struts的There is no Action mapped for namespace [/] and action name....异常
- Struts错误:There is no Action mapped for namespace / and action name
- maven jetty struts异常 There is no Action mapped for namespace [/] and action name [] associated with context path
- Struts2学习之package name="struts2"对应谁--There is no Action mapped for namespace / and action name 异常
- struts2的异常There is no Action mapped for namespace / and action name
- sruts2.1整合spring3.0抛出异常: Status 404 - There is no Action mapped for namespace /jsp and action name
- 使用Struts2时出现There is no Action mapped for namespace / and action name .
- struts2常见配置解决错误There is no mapped for namespace[/] and action name
- struts处理.do后缀请求报Struts2中关于"There is no Action mapped for namespace / and action name"的总结
- 异常HTTP Status 404 There is no Action mapped for namespace / and action name
- Could not find action or result,There is no Action mapped for namespace / and action name hello_struts. - [unknown location]
- [转]struts2的异常There is no Action mapped for namespace / and action name
- Struts应用出现的错误及解决方法:There is no Action mapped for namespace / and action name login
- 关于这个问题There is no Action mapped for namespace / and action name login.的处理
- There is no Action mapped for namespace / and action name login.的解决
- ruts has detected an unhandled exception: Messages: There is no Action mapped for namespace / and action name hello.
- Struts2---There is no Action mapped for namespace / and action name
- 发布Struts2工程打开action链接提示There is no Action mapped for namespace / and action name **解决方案
- struts2之There is no Action mapped for namespace / and action name
- There is no Action mapped for namespace / and action name ..问题分析