spring框架错误:上下文初始化失败

时间:2010-12-03 04:32:55

标签: spring


我正在tomcat6中部署应用程序(spring-hibernate)但是它给出了错误 -

ERROR org.springframework.web.context.ContextLoader - Context initialization failed
 org.springframework.beans.factory.BeanDefinitionStoreException: Failed to load bean class: com.myPackage.myProject.calendar.bpo.BusinessDirectoryBPOImpl; nested exception is java.io.FileNotFoundException: class path resource [com/myPackage/framework/bpo/BaseBPOImpl.class] cannot be opened because it does not exist
    at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:180)
......

所有jar文件都在\ WEB-INF \ lib * .jar中 我错过了任何类文件或任何jar文件 如何解决这个错误 由于
Yugal

1 个答案:

答案 0 :(得分:2)

com.myPackage.myProject.calendar.bpo.BusinessDirectoryBPOImpl正在寻找

com/myPackage/framework/bpo/BaseBPOImpl.class

它无法找到。

检查确定如果此特定类存在于jar中的WEB-INF\libWEB-INF\classes作为类文件。