Unable to instantiate Action, loginAction, defined for 'login' in namespace
来源:互联网 发布:mac怎么显示桌面 编辑:程序博客网 时间:2024/05/16 15:39
1 这里解决的是strust2和spring整合后出现的这种问题,要是没有引入spring框架出现这样的问题那么就是struts的问题了,不解释。
2 是否导入spring框架需要的jar包,检查是否加载spring配置文件,这里加载配置文件需要在web。xml中配置,
引用一段话:
我也碰到了楼主的问题,我原来是放在src/context里面的,后来做了好些测试,改了web.xml文件中的
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext*.xml,classpath*:/context/applicationContext*.xml</param-value>,也就是在classpath*:后面加上了"/context",这样就解决了,大家可以参考,我做过实验,发现我这的tomcat是只读取classpath下面的xml,大家可以参考
所以classpath指的是src目录,所以配置文件的路径问题就可以解决了。
3
0 0
- Unable to instantiate Action, loginAction, defined for 'login' in namespace
- 出现"Unable to instantiate Action,xxxxx, defined for 'login' in namespace '/' xxxxx 解决办法
- Unable to instantiate Action,,,,,,,,,defined for ',,,' in namespace '/,,,'null
- Unable to instantiate Action,,,,,,,,,defined for ',,,' in namespace '/,,,'null
- Unable to instantiate Action, goodsTypeAction, defined for 'goodsType_findAdvanced' in namespace '/
- Unable to instantiate Action, defined for t' in namespace '/'XXXAction
- Unable to instantiate Action, categoryAction, defined for 'category_queryJoinAccount' in namespace
- Unable to instantiate Action, defined for in namespace '/'
- 八、Unable to instantiate Action, xxx.action.DeleteAction, defined for 'delete' in namespace
- Unable to instantiate Action,xxx-action, defined for 'xxx' in namespace '/xxx/xxxx/xxxxx'Error crea
- Unable to instantiate Action, login, defined for 解决方法
- 整合SSH后出现Unable to instantiate Action, student, defined for 'add_StudentAction' in namespace '/'stude
- Unable to instantiate Action, xxxAction, defined for 'xxx' in namespace '/'xxxAction解决方案
- 异常4: Unable to instantiate Action, AddZhangMuAction, defined for 'AddZhangAction' in namespace ...
- Unable to instantiate Action, MenuAction, defined for 'QueryMenuAll' in namespace '/'MenuAction
- 异常处理:Unable to instantiate Action, checkLoginAction, defined for 'checkUser' in namespace '/'Error
- Unable to instantiate Action, departmentAction, defined for 'department_list' in namespace '/'depart
- Unable to instantiate Action, xxxAction, defined for ‘xxx’ in namespace ‘/’xxxAction
- HTTP Status 404 - No result defined for action XXXX and result success 处理
- C#成魔之路<10>文件及数据流技术(3)
- #import #include与@class的区别
- Poll机制分析
- C++函数基础
- Unable to instantiate Action, loginAction, defined for 'login' in namespace
- poj 1639 Picnic Planning 最小k度生成树
- codeforces 630~~【组合数 C(n,m)】
- Jquery Ajax的success:funtion(data)的data非son类型
- 学习笔记-去掉字符串两头的空格
- hihocoder 1032 最长回文子串 (Manacher算法 详解+模板)
- 龟兔赛跑的预测
- 指针学习笔记
- 欢迎使用CSDN-markdown编辑器