论坛首页 Java企业应用论坛

关于Spring的问题

浏览 2253 次
该帖已经被评为隐藏帖
作者 正文
   发表时间:2008-03-15  
我是spring初学者:遇到一个问题麻烦大家帮我解决下!谢谢 运行老是出现下面的错误
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]
   发表时间:2008-03-15  
看起来好像是找不到xml配置文件。你用的哪个容器对象?请确认xml能被你的IOC容器对象找到初始化。
0 请登录后投票
论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics