浏览 2253 次
锁定老帖子 主题:关于Spring的问题
该帖已经被评为隐藏帖
|
|
---|---|
作者 | 正文 |
发表时间:2008-03-15
CollectionFactory - JDK 1.4+ collections available CollectionFactory - Creating [java.util.LinkedHashMap] CollectionFactory - Creating [java.util.LinkedHashMap] XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [E:/eclipse-SDK-3.2.2-win32/springWork/Spring/applicationContext.xml] Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [E:/eclipse-SDK-3.2.2-win32/springWork/Spring/applicationContext.xml]; nested exception is java.io.FileNotFoundException: class path resource [E:/eclipse-SDK-3.2.2-win32/springWork/Spring/applicationContext.xml] cannot be opened because it does not exist java.io.FileNotFoundException: class path resource [E:/eclipse-SDK-3.2.2-win32/springWork/Spring/applicationContext.xml] cannot be opened because it does not exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:135) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:167) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:148) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:129) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:145) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:81) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:270) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:87) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:72) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:63) at test.TestQuickStart.main(TestQuickStart.java:20) ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2 JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [../../../src/share/back/util.c:820] 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |
发表时间:2008-03-15
看起来好像是找不到xml配置文件。你用的哪个容器对象?请确认xml能被你的IOC容器对象找到初始化。
|
|
返回顶楼 | |