当前位置: 代码迷 >> J2EE >> is org.springframework.beans.factory.BeanCreationException: Error
  详细解决方案

is org.springframework.beans.factory.BeanCreationException: Error

热度:359   发布时间:2016-04-22 03:18:31.0
weblogic8.1.5部署web应用的问题
Exception:weblogic.management.ApplicationException: start() failed. Module: PMS Error: weblogic.management.DeploymentException: Error creating bean with name 'iBranchDAO' defined in ServletContext resource [/WEB-INF/applicationContext-user.xml]: Can't resolve reference to bean 'hibernateTemplate' while setting property 'hibernateTemplate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateTemplate' defined in ServletContext resource [/WEB-INF/applicationContext-hibernate.xml]: Can't resolve reference to bean 'sessionFactory' while setting property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext-hibernate.xml]: Initialization of bean failed; nested exception is java.io.FileNotFoundException: class path resource [cn/ccb/PMS/common/model/bo] cannot be resolved to absolute file path because it does not reside in the file system: zip:F:/bea/weblogic81/samples/domains/medrec/MedRecServer/.wlnotdelete/extract/MedRecServer_PMS_PMS/PMS.war!/WEB-INF/classes/cn/ccb/PMS/common/model/bo - with nested exception: [java.io.FileNotFoundException: class path resource [cn/ccb/PMS/common/model/bo] cannot be resolved to absolute file path because it does not reside in the file system: zip:F:/bea/weblogic81/samples/domains/medrec/MedRecServer/.wlnotdelete/extract/MedRecServer_PMS_PMS/PMS.war!/WEB-INF/classes/cn/ccb/PMS/common/model/bo]  
  在执行此任务时出现的异常。  
  日志:  
这是部署后发生的异常信息,请各位帮忙诊断下是怎么回事,解决办法是什么?谢谢啊,

------解决方案--------------------
你的cn.ccb.PMS.user.persistence.dao.impl.BranchDAO里面有hibernateTemplate这个属性和get set方法么?
你查看每个bean的property都应该是这个bean的属性而且还要有get set 方法
<value>classpath:/cn/ccb/PMS/common/model/bo </value> bo后面有个空格去掉
  相关解决方案