纯注解方式"There is no Action mapped for namespace [/] and action name [Test] associated with conte"原因
2014-05-06 11:24
471 查看
前几天闲着没事搭建了一个纯注解的struts2+spring3+mybatis3的框架,搭好之后启动正常,但是一访问action,就报There is no Action mapped for namespace [/] and action name [Test] associated with context path [/test].的异常,经各种调查无果。网上基本上都是要在struts.xml里加上<constant name="struts.convention.default.parent.package" value="convention-default" />和在web.xml里加<init-param><param-name>actionPackages</param-name> <param-value>vcom.sys.webapp.action</param-value></init-param>的配置,说是没启动纯注解的扫描,加这这种配置后就会扫描所有带注解的类了,按照这种方式进行配置 还是报异常,只能继续查找原因,然后我用struts2-config-browser-plugin.jar这个jar包,打开http://localhost:8080/你的工程名/config-browser/actionNames.action查看所有成功映射的action名才发现映射的action名是小写的,而我访问的时候是带大写的,所以一直报这个错误,然后在struts.xml加上<constant name="struts.convention.action.name.lowercase" value="false"/>,问题解决了,狂汗!!!
相关文章推荐
- There is no Action mapped for namespace [/] and action name [struts2Test!test] associated with conte
- 使用Struts2时出现There is no Action mapped for namespace [/] and action name [??] associated with conte
- There is no Action mapped for namespace [/] and action name [xxxxx] associated with context的错误原因
- There is no Action mapped for namespace [/] and action name [student ! welcome] associated with context path [/web_test_11]. - [unknown location]
- There is no Action mapped for namespace[/] and action name [] associated with context path.
- There is no Action mapped for namespace [/] and action name [hello] associated with context path [/
- There is no Action mapped for namespace [/user] and action name [user!add] associated with context p
- There is no Action mapped for namespace [/] and action name [hello2] associated with context path [/
- There is no Action mapped for namespace [/] and action name [] associated with context path [/struts2web1].
- 一个struts傻瓜式的问题There is no Action mapped for namespace [/] and action name [] associated with context
- struts2配置错误 There is no Action mapped for namespace [/] and action name [] associated with context
- There is no Action mapped for namespace [/] and action name [repassword] associated with context pat
- HTTP Status 404 - There is no Action mapped for namespace [/] and action name [] associated with con
- There is no Action mapped for namespace [/] and action name [] associated with context path [/dxm__s
- There is no Action mapped for namespace [/] and action name [hello] associated with context path [/d
- ssh整合中遇到There is no Action mapped for namespace [/] and action name [] associated with context path
- There is no Action mapped for namespace [/] and action name [] associated with context path [/ch_05_ActionAnnotation]. - [unknown location]
- There is no Action mapped for namespace [/] and action name [login] associated with context path [/p
- There is no Action mapped for namespace[/] and action name [] associated with context path.
- There is no Action mapped for namespace [/] and action name [] associated with context p --gxy