spring spring框架错误:上下文初始化失败
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4342492/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
spring framework Error: Context initialization failed
提问by Yugal
i am deploying application(spring-hibernate) in tomcat6 but it is giving error-
我正在 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)
......
all jar files are already in \WEB-INF\lib*.jar.
am i missing any class file or any jar file.
how to solve this error.
Thanks
Yugal
所有 jar 文件都已经在 \WEB-INF\lib*.jar 中。
我是否缺少任何类文件或任何 jar 文件。
如何解决这个错误。
由于
Yugal
采纳答案by JoseK
com.myPackage.myProject.calendar.bpo.BusinessDirectoryBPOImplis looking for
com.myPackage.myProject.calendar.bpo.BusinessDirectoryBPOImpl在寻找
com/myPackage/framework/bpo/BaseBPOImpl.class
which it cannot find.
它找不到。
Check for sure if this specific classis present under WEB-INF\libin a jar or WEB-INF\classesas a class file.
检查此特定类是否存在WEB-INF\lib于 jar 下或WEB-INF\classes作为类文件。

