SSH启动报错

org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'use... org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userAction' defined in file [E:\tomcat-sshframe-7.0.4\webapps\ROOT\WEB-INF\classes\spring\applicationContext-action.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService' defined in file [E:\tomcat-sshframe-7.0.4\webapps\ROOT\WEB-INF\classes\spring\applicationContext-service.xml]: Cannot resolve reference to bean 'userDao' while setting bean property 'userDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao' defined in file [E:\tomcat-sshframe-7.0.4\webapps\ROOT\WEB-INF\classes\spring\applicationContext-dao.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateTemplate' defined in file [E:\tomcat-sshframe-7.0.4\webapps\ROOT\WEB-INF\classes\spring\applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [E:\tomcat-sshframe-7.0.4\webapps\ROOT\WEB-INF\classes\spring\applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Could not parse mapping document from input stream 展开
 我来答
hdh_lover
2011-10-26 · 超过11用户采纳过TA的回答
知道答主
回答量:23
采纳率:0%
帮助的人:36.2万
展开全部
从上面的报错信息来看,应该是你在actionContext.xml中的配置写错了,请认真核对bean与bean之间的应用,以及在userservice、userAction中是否有相应的userDao、userService属性及生成的getter、setter方法!祝你好运!
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式