org.springframework.beans.factory.BeanCreationException:
2011-08-03 15:42
489 查看
错误:
Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao': Injection of resource methods
failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateTemplate' defined in class path resource [beans.xml]: Cannot resolve reference to bean 'sf' while setting bean property 'sessionFactory';
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sf' defined in class path resource [beans.xml]: Initialization of bean failed; nested exception is org.springframework.beans.InvalidPropertyException:
原因:
我导入的包有点问题,特别是Spring的包。到这解析不了我的xml文件。唉。找了一天的错误,终于改过来了。
解决方法:
重新导入新的包。
总结:现在在网上下的包,很多都是有问题的。或者组合起来就有问题了。上次下的hibernate3.jar ,居然没有sessionFactory下的一个方法。晕啊。
Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao': Injection of resource methods
failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateTemplate' defined in class path resource [beans.xml]: Cannot resolve reference to bean 'sf' while setting bean property 'sessionFactory';
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sf' defined in class path resource [beans.xml]: Initialization of bean failed; nested exception is org.springframework.beans.InvalidPropertyException:
原因:
我导入的包有点问题,特别是Spring的包。到这解析不了我的xml文件。唉。找了一天的错误,终于改过来了。
解决方法:
重新导入新的包。
总结:现在在网上下的包,很多都是有问题的。或者组合起来就有问题了。上次下的hibernate3.jar ,居然没有sessionFactory下的一个方法。晕啊。
相关文章推荐
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'itemControll
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'baseDAOFacto
- org.springframework.beans.factory.BeanCreationException
- 搭建SSH框架解决的小问题org.springframework.beans.factory.BeanCreationException
- 关于org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFac
- springBoot:Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire fi
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException: Error creating bean报错
- 严重: StandardWrapper.Throwable org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException: Error creating bean 异常
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- 报错解决Context initialization failed org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'powerAction'
- org.springframework.beans.factory.BeanCreationException: Error creating bean SMSService
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springfr
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eproductServ
- org.springframework.beans.factory.BeanCreationException: Scope 'request' is not active for the current thread
- org.springframework.beans.factory.BeanCreationException: Error creating bean
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name的解决方法