日期:2014-05-20  浏览次数:20679 次

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后面有个空格去掉