Announcement Announcement Module
Collapse
No announcement yet.
cannot be opened because it does not exist Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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 ,

  • #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.

    Comment

    Working...
    X