严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 4 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
......
.......
Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.起初以为没有联网的问题···发现原来不是····最后发现以前没有问题的项目全都报了这个错····

解决方案 »

  1.   

    spring的jar包导入有误或者是发生了冲突导致找不到spring的jar
    检查一下你导入的jar包是否完全
      

  2.   

    applicationContext.xml 这个文件中 需要 节点 beans,你看看该文件是不是少这个节点。
      

  3.   

    Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.缺少beans标签啊