Context initialization failed
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from relative location [applicationContext-sp-lncrm.xml]
Offending resource: class path resource [applicationContext.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [applicationContext-sp-lncrm.xml]; nested exception is java.io.FileNotFoundException: class path re
source [applicationContext-sp-lncrm.xml] cannot be opened because it does not exist
at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)
problems有error会不会影响tomcat的运行?
myeclipse项目问题,有报错,困扰死了。
答案:5 悬赏:20
解决时间 2021-02-05 19:15
- 提问者网友:刪除丶後
- 2021-02-05 10:35
最佳答案
- 二级知识专家网友:颜值超标
- 2021-02-05 11:07
class path resource [applicationContext.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [applicationContext-sp-lncrm.xml]; nested exception is java.io.FileNotFoundException:
applicationContext.xml 这个文件引用 了 applicationContext-sp-lncrm.xml 它,而他又不存在,所以启动失败。
applicationContext.xml 这个文件引用 了 applicationContext-sp-lncrm.xml 它,而他又不存在,所以启动失败。
全部回答
- 1楼网友:怪咖小青年
- 2021-02-05 13:39
少包啊,你把2个错误弄好就不会报错了
- 2楼网友:青灯壁纸妹
- 2021-02-05 13:33
1:既然有源码,可以把classes文件夹下的文件全部删除了!
2:myeclipse上面的project-->clean.把你导入的项目清理(重新编译)一下!
- 3楼网友:我的任性你不懂
- 2021-02-05 12:17
这是缺少包啊,如果用不到这个包,就在工程里把这个包的引用删掉~~~
- 4楼网友:不服输就别哭
- 2021-02-05 11:32
applicationContext-sp-lncrm.xml 把这个文件在src下建立一个,哪怕是个空的,有个<beans>就行了,或者在引用的地方把引用去掉,这个报错可能会影响到配置文件中对bean的初始化,问题自然都是空指针了。,,,,
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯