同一份代码,从svn拉下来,始终报这个错误,大家帮看一下,谢谢
Error thrown by a dependency of object “UserDao” defined in “assembly [D.IDao, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],
resource [D.IDao.Config.spring_bean.xml] line 7” : FactoryObject threw exception on object creation.
while resolving “HibernateTemplate” to “HibernateTemplate” defined in “assembly [D.IDao, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],
resource [D.IDao.Config.spring_nhibernate.xml] line 51”
while resolving “SessionFactory” to “SessionFactory” defined in “assembly [DDPOS.IDao, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],
resource [D.IDao.Config.spring_nhibernate.xml] line 11”
while resolving “DbProvider” to “DbProvider” defined in “assembly [D.IDao, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null], resource [D.IDao.Config.spring_nhibernate.xml] line 5”
Error thrown by a dependency of object “UserDao” defined in “assembly [D.IDao, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],
resource [D.IDao.Config.spring_bean.xml] line 7” : FactoryObject threw exception on object creation.
while resolving “HibernateTemplate” to “HibernateTemplate” defined in “assembly [D.IDao, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],
resource [D.IDao.Config.spring_nhibernate.xml] line 51”
while resolving “SessionFactory” to “SessionFactory” defined in “assembly [DDPOS.IDao, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],
resource [D.IDao.Config.spring_nhibernate.xml] line 11”
while resolving “DbProvider” to “DbProvider” defined in “assembly [D.IDao, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null], resource [D.IDao.Config.spring_nhibernate.xml] line 5”
解决方案
20
错误提示说的是UserDao这个依赖属性的定义有问题无法正常获取值,你去那个属性的定义处看看,是不是有回调或验证哪地方不对