ssh报 HTTP Status 500 - Unable to instantiate Action, com.web.action.UserAction, defined for 'login'
2013-12-26 14:01
405 查看
S2SH项目报错:
HTTP Status 500 - Unable to instantiate Action, com.web.action.UserAction, defined for 'login' in namespace '/user'Error creating bean with name 'com.web.action.UserAction': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException:
No qualifying bean of type [com.service.UserService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.annotation.Resource(shareable=true, mappedName=, description=, name=,
type=class java.lang.Object, authenticationType=CONTAINER, lookup=)}
这是因为依赖注入失败了,检查每个类的依赖注入,如果的注解的话,每个实现类上要注入@Repository("userService")这里的名字要和调用它的类中实例名一样.
HTTP Status 500 - Unable to instantiate Action, com.web.action.UserAction, defined for 'login' in namespace '/user'Error creating bean with name 'com.web.action.UserAction': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException:
No qualifying bean of type [com.service.UserService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.annotation.Resource(shareable=true, mappedName=, description=, name=,
type=class java.lang.Object, authenticationType=CONTAINER, lookup=)}
这是因为依赖注入失败了,检查每个类的依赖注入,如果的注解的话,每个实现类上要注入@Repository("userService")这里的名字要和调用它的类中实例名一样.
相关文章推荐
- spring-error-1 Unable to instantiate Action, com.fxb.sms.web.action.AdminAction, defined for 'Adm
- HTTP Status 500 - Unable to instantiate Action, customerAction, defined for 'CustomerAction_list' in
- Unable to instantiate Action, loginAction, defined for 'login' in namespace
- 异常处理:Unable to instantiate Action, checkLoginAction, defined for 'checkUser' in namespace '/'Error
- Unable to instantiate Action, Action, defined for 解决方法
- Unable to instantiate Action, xxxAction, defined for ‘xxx’ in namespace ‘/’xxxAction解决方案
- Unable to instantiate Action, xxxAction, defined for 'xxx' in namespace '/'xxxAction解决方案
- 升级struts2.3.24 HTTP Status 500 - Unable to instantiate Action
- ssh整合错误:HTTP Status 500 - Unable to instantiate Action, empaction
- HTTP Status 500 -Unable to instantiate Action....
- Unable to instantiate Action, departmentAction, defined for 'department_list' in namespace '/'depart
- Unable to instantiate Action, xxxAction, defined for ‘xxx’ in namespace ‘/’xxxAction
- SSH开发 报错:Unable to instantiate Action, controller.MsgController, defined for'show' in namespace '
- eclipse运行ssh项目出现"HTTP Status 500 - Unable to instantiate Action"
- Caused by: Unable to locate parent package [json-default] for [class com.you.user.action.StudentActi
- Caused by: Unable to locate parent package [json-default] for [class com.you.user.action.StudentActi
- HTTP Status 500 - Unable to instantiate Action
- Unable to instantiate activity ComponentInfo{com.xxxx.xxxx/com.xxxx.xxxx.LoginActivity}:
- Unable to instantiate Action, XXXAction, defined for 'xx' in namespace 'xx'报错解决
- SSH框架用注解整合时报错 Unable to instantiate Action, com.eng.action.FrameAction