因为有些日子我在春季4.3.3遇到了这个奇怪的问题.在部署时(在DEV和测试环境中,服务器交替产生这两个错误
错误#1.当我通过代理或互联网连接不可用时
Ignored XML validation warning: org.xml.sax.SAXParseException; lineNumber: 8; columnNumber: 108; schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
Run Code Online (Sandbox Code Playgroud)
然后
Context initialization failed: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 8 in XML document from ServletContext resource [/WEB-INF/jboss-as-spring-mvc-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 8; columnNumber: 108; cvc-elt.1: Cannot find the declaration of element 'beans'.
Run Code Online (Sandbox Code Playgroud)
错误#2.当连接可用(或可用)时
JBWEB000289: Servlet pdaServlet …Run Code Online (Sandbox Code Playgroud)