Results 1 to 2 of 2

Thread: cannot be opened because it does not exist

  1. #1
    Join Date
    Feb 2010
    Posts
    7

    Thumbs down 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. #2
    Join Date
    Feb 2010
    Posts
    7

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