ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed
2008-02-13 05:01
609 查看
ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'iquestiondaoimpl' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Error setting property values; nested exception is PropertyAccessExceptionsException (1 errors)
PropertyAccessExceptionsException (1 errors)
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.springframework.orm.hibernate3.HibernateTemplate] to required type [org.springframework.orm.hibernate.HibernateTemplate] for property 'hibernateTemplate'
产生这个错误的原因:
实现接口有错误,但看了没有找到错误
经仔细检查,发现
import org.springframework.orm.hibernate.support.HibernateDaoSupport;
错误,
应该是:
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'iquestiondaoimpl' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Error setting property values; nested exception is PropertyAccessExceptionsException (1 errors)
PropertyAccessExceptionsException (1 errors)
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.springframework.orm.hibernate3.HibernateTemplate] to required type [org.springframework.orm.hibernate.HibernateTemplate] for property 'hibernateTemplate'
产生这个错误的原因:
实现接口有错误,但看了没有找到错误
经仔细检查,发现
import org.springframework.orm.hibernate.support.HibernateDaoSupport;
错误,
应该是:
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
相关文章推荐
- tomcat启动异常:ERROR org.springframework.web.context.ContextLoader - Context initialization failed
- [ERROR][org.springframework.web.context.ContextLoader][main] Context initialization failed org.sprin
- 缓存报错-初始化失败 ERROR [org.springframework.web.context.ContextLoader] - context initialization failed
- [ERROR] org.springframework.web.context.ContextLoader Context initialization failed
- [ERROR] org.springframework.web.context.ContextLoader Context initialization failed
- ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed
- ERROR ContextLoader:238 - Context initialization failed>>org.springframework.beans.factory.BeanCreat
- [org.springframework.web.context.ContextLoader] - Context initialization failed
- 严重:Error configuring application listener of class org.springframework.web.context.ContextLoaderList
- 严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderLis
- 严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderLi
- 严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderLis
- 严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderLis
- 严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
- 严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderLis
- 严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderLis
- 严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderLis
- 严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderLis
- Error configuring application listener of class org.springframework.web.context.ContextLoaderListene
- 严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderLis