ERROR:Unable to instantiate Action, regAction, defined for 'register' in namespace '/'regAction - action - file:/C:/Users/eli9/Documents/workspace-sts-3.5.1.RELEASE/.metadata/.plugins/org.eclipse.wst

ERROR:Unable to instantiate Action, regAction,  defined for 'register' in namespace '/'regAction - action - file:/C:/****/Documents/workspace-sts-3.5.1.RELEASE/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SSHProject/WEB-INF/classes/struts.xml:9:63
错误详情:在jsp页面报错。在struts.xml的文件action的入口,找不到关于spring配置的bean id为 regAction。struts会寻找regAction  方法,找不到就报错。不能读取spring的配置文件。
方法:1.可以在把applicationContext.xml 文件放置到src目录下(注:可选择)
2.我发现是我的框架的兼容性出了问题。把applicationContext.xml 中 hibernate有关的换成了hibernate4,此前是
若果没办法解决,可以尝试此方法。
posted @ 2016-04-18 10:06  Dobic  阅读(906)  评论(0编辑  收藏  举报