-
Apr 11th, 2010, 09:48 PM
#1
cannot be opened because it does not exist
I have a maven project in sts 2.3.2, when I deploy it to tc server,it has following error info:
[org.springframework.web.context.ContextLoader] - <Context initialization failed>
org.springframework.beans.factory.BeanDefinitionSt oreException: IOException parsing XML document from class path resource [config.xml]; nested exception is java.io.FileNotFoundException: class path resource [mgt.config.xml] cannot be opened because it does not exist
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:349)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:310)
....
Caused by: java.io.FileNotFoundException: class path resource [config.xml] cannot be opened because it does not exist
when I run: maven clean, maven eclipse:clean,redeploy,it maybe run successfully, why ?
any suggestin is appreciated ,
-
Apr 13th, 2010, 06:57 AM
#2
solution
in properties --> Jave EE Module Dependencies, select all jars ,except for jsp-api.jar, servlet-api.jar, then the project can run successfully.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules