AnsweredAssumed Answered

J'ai une erreur que je ne comprend pas, please help...

Question asked by unknown-user on Sep 28, 2006
Latest reply on Sep 28, 2006 by unknown-user
J'ai une erreur que je ne comprend pas, please help me ?

Voici le code :

String paths[] = {"C:/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/application-context.xml"};
ApplicationContext ctx = new ClassPathXmlApplicationContext(paths);

Voici l'erreur :

28 sept. 2006 10:37:21 org.springframework.core.CollectionFactory <clinit>
INFO: JDK 1.4+ collections available
28 sept. 2006 10:37:21 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [C:/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/application-context.xml]
Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [C:/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/application-context.xml]; nested exception is java.io.FileNotFoundException: class path resource [C:/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/application-context.xml] cannot be opened because it does not exist
java.io.FileNotFoundException: class path resource [C:/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/application-context.xml] cannot be opened because it does not exist
   at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:137)
   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:262)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:87)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:72)
   at exemple.simpleExemple.main(simpleExemple.java:41)

Outcomes