Unable to instantiate Action, xxxAction, defined for 'xxx' in namespace '/'xxxAction解决方式
2017-07-02 13:45
597 查看
出现这个问题的解决办法主要有两个
1、假设项目没有使用Spring,则struts.xml配置文件里,这个action的class属性的路径没有写完整,应该是包名.类名
2、假设项目使用了Spring。那就是applicationContext.xml里面没有为这个action定义bean。这样strus.xml中的相应action的class属性的值就是Spring配置文件里bean的id。比方:
applicationContext.xml
struts.xml
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
- Unable to instantiate Action,,,,,,,,,defined for ',,,' in namespace '/,,,'null
- Unable to instantiate Action,,,,,,,,,defined for ',,,' in namespace '/,,,'null
- HTTP Status 500 - Unable to instantiate Action, AccountAction, defined for 'accountindex' in namespa
- Unable to instantiate Action,xxx-action, defined for 'xxx' in namespace '/xxx/xxxx/xxxxx'Error crea
- Unable to instantiate Action, xxxAction, defined for ‘xxx’ in namespace ‘/’xxxAction
- 整合SSH后出现Unable to instantiate Action, student, defined for 'add_StudentAction' in namespace '/'stude
- Unable to instantiate Action, xxxAction, defined for ‘xxx’ in namespace ‘/’xxxAction解决方案
- Unable to instantiate Action, MenuAction, defined for 'QueryMenuAll' in namespace '/'MenuAction
- 出现"Unable to instantiate Action,xxxxx, defined for 'login' in namespace '/' xxxxx 解决办法
- 警告: No configuration found for the specified action: 'checkLogin' in namespace: ''.的解决办法
- No configuration found for the specified action: 'login' in namespace: ''. Form action defaulting to 'action' attribute's litera
- No configuration found for the specified action: 'xxx/xxx.action' in namespace: ''. Form action def
- Unable to instantiate Action, defined for t' in namespace '/'XXXAction
- Unable to instantiate Action, xxxAction, defined for 'xxx' in namespace '/'xxxAction解决方案
- Swift教程_swift常见问题(0001)_CoreData: warning: Unable to load class named 'xxx' for entity 'xxx'
- MyEclipse maven install 时Unable to load the mojo 'war' in the plugin解决方法
- How to resolve '_DllMain@12 already defined in xxx.obj' ?
- 警告: No configuration found for the specified action: '/myNameSpace/login.action' in names
- 解决git的这个错误:fatal: Unable to find remote helper for 'https'