Unable to instantiate Action, xxxAction, defined for 'xxx' in namespace '/'xxxAction解决方式
出现这个问题的解决办法主要有两个
1、假设项目没有使用Spring,则struts.xml配置文件里,这个action的class属性的路径没有写完整,应该是包名.类名
2、假设项目使用了Spring。那就是applicationContext.xml里面没有为这个action定义bean。这样strus.xml中的相应action的class属性的值就是Spring配置文件里bean的id。比方:
applicationContext.xml
<bean id="adminAction" class="go.derek.action.AdminAction"
scope="prototype">
</bean>
struts.xml
<action name="admin" class="adminAction" method="execute">
<result>/admin.jsp</result>
</action>
Unable to instantiate Action, xxxAction, defined for 'xxx' in namespace '/'xxxAction解决方式的更多相关文章
- SSH Spring3\Java1.8 “Unable to instantiate Action, xxAction, defined for 'xxAction_login' in namespace '/'null”
		1.Stacktraces Unable to instantiate Action,xxAction, defined for 'xxAction_login' in namespace '/'nu ... 
- SSH整合:Unable to instantiate Action, employeeAction, defined for 'emp-list' in namespace '/'employeeAction - action
		SSH整合,照着视频敲的,不知为何会报错,经历了快两周的折磨给解决了.记录下来给后面需要帮助的人,也算极好的了. Struts Problem Report Struts has detected a ... 
- SSH整合报错:Unable to instantiate Action, testAction, defined for 'test' in namespace '/'testAction
		报错如下: Struts Problem Report Struts has detected an unhandled exception: Messages: testAction Unable ... 
- HTTP Status 500 - Unable to instantiate Action, customerAction, defined for 'customer_toAddPage' i
		使用struts2时碰到这样的错误 HTTP Status 500 - Unable to instantiate Action, customerAction, defined for 'custo ... 
- 出现"Unable to instantiate Action,xxxxx, defined for 'login' in namespace '/' xxxxx 解决办法
		转自:https://blog.csdn.net/heroful/article/details/17261169 问题原因: 在MyEclipse 利用SSH框架写程序,运行时出现 " U ... 
- 2.Unable to instantiate Action, templateAction, defined for 'template_list' in namespace '/'templateAction
		1.错误说没有命名空间'templateAction,但是在struts里写了这个,名字跟Action的名字是一样的,为什么会报这个错误 2.反复检查路径和名字,都没有问题 3.发现没有对其进行注入操 ... 
- Unable to instantiate Action, MenuAction, defined for 'QueryMenuAll' in namespace '/'MenuAction
		我刚好也遇到这样的情况,发现是自己的配置文件里写错了,spring里的id属性值要对应struts里class属性值. 
- Unable to instantiate Action, xxxAction,  defined for 'xxxAction' in namespace '/'xxx
		最近写SSH2的项目时,遇到一些小问题,action得不到service实例,遂将struct2委托给spring进行管理,然后修改了bean的id和action的class,但是运行后发现找不到ac ... 
- 报错HTTP Status 500 - Unable to instantiate Action
		报错如下: HTTP Status 500 - Unable to instantiate Action, visitAction, defined for 'visit_toAddPage' in ... 
- struts2整合spring出现的Unable to instantiate Action异常
		在struts2整合spring的时候,完全一步步按照官方文档上去做的,最后发现出现 Unable to instantiate Action,网上一搜发现很多人和我一样的问题,配置什么都没有错误,就 ... 
随机推荐
- hdu2029
			http://acm.hdu.edu.cn/showproblem.php?pid=2029 #include<stdio.h> #include<string.h> #inc ... 
- Maven+Docker,发布到Registry
			1.配置Pom.xml <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEnc ... 
- [转]android 让一个控件按钮居于底部的几种方法
			本文转自:http://www.cnblogs.com/zdz8207/archive/2012/12/13/2816906.html android 让一个控件按钮居于底部的几种方法 1.采用lin ... 
- c# winform控件dock属性停造位置、摆放顺序详解
			dock : [英文释义- 码头.依靠][winform释义- 获取或设置当前控件依靠到父容器的哪一个边缘.] 用途:多数控件都有这个属性,主要用来设置控件的布局. 但对于不太了解这个属性的朋友来说有 ... 
- Java_注解之二
			在上一次的注解案例里面配置注解的同时,也添加了一对多(@OneToMany)的关系在里面. 本次将补充上次的缺失:其他三种关联方式的配置. 为了简化配置的复杂度 在此案例中Emp和Dept并不是唯 ... 
- 使用less时的calc()函数问题
			在使用less时写 width:calc(100%-30px); 但在浏览器检查元素的时候总会显示width:70%; 可以在Less中把calc的写法改写成下面这样: width : calc(~& ... 
- (一)Python 学习第一天--基础知识,列表
			1. .pyc文件 .pyc文件:在python3中,当模块运行时会自动生成在_pycache_文件夹中,其中c为compiled的缩写. Python是一门现编译后解释的语言,在运行时首先寻找.py ... 
- Redis 之服务器集群配置
			常见的集群架构如图: redis操作过程中数据同步的函数调用关系: 集群搭建: 1.修改3个redis.config 文件的: 2.启动2个redis服务器 当杀掉redis主进程Master时,由于 ... 
- pycharm执行代码可以跑,但放到linux跑就报文件找不到
			代码中包含当前路径 使用pycharm执行python,当前路径就是pycharm项目所在的路径,所以不会报错 但使用shell执行python,当前路径就会从shell所在的路径去找文件,所以找不到 ... 
- Photoshop如何实现图片相对画布居中
			先按ctrl+A,再选择要居中的图层,然后就会发现居中按钮被激活了 
