在MyEclips下面部署的shh程序,联网的时候可以正常运行,断网之后报错。严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 3 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'ChinaMobile'.Caused by: org.xml.sax.SAXParseException: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'ChinaMobile'.

解决方案 »

  1.   

     Line 3 in XML document from class path resource [] is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 3 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'ChinaMobile'.applicationContext.xml是不是有问题、检查下这个配置文件。
      

  2.   

    你的SPRING配置文件的头 有问题 需要用到网络
      

  3.   

    先把你的spring配置文件贴出来吧
      

  4.   

    把项目下的.metadata文件夹下的内容全部删除,然后从新导入项目。重新加载。试试
      

  5.   

    把项目下的.metadata文件夹下的内容全部删除,然后重新导入项目。重新加载。试试
      

  6.   

    错误提示s4s-elt-character这个非空白字符,不允许出现在架构中
      

  7.   

    这个应该是DTD文件的问题吧,需要联网查找这个文件
    你可以把项目所需的配置文件都下载下来,然后在myeclipse中关联下