Http://www.68idc.cn/help/buildlang/ask/20150108163110.html
——————————————————————————————————————————————————
When the framework is integrated, most of the XML configuration files are copied from the other framework.
Today in the practice of integration at the time before the project is clear, but copied to the project after the error.
Error code:
<span style= "color: #FF0000;" > Severity: Exception sending context initialized event to listener instance of class Org.springframework.web.context.Context LoaderListenerorg.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:Line 1 in XML document from file [D:\java\File\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\SpringMVC1\WEB-INF\classes\config \spring-common.xml] is invalid; Nested exception is org.xml.sax.SAXParseException; linenumber:1; Columnnumber:7; A processing instruction target that matches "[Xx][mm][ll]" is not allowed. </span>
A processing instruction target that matches "[Xx][mm][ll]" is not allowed. Description XML may not be standardized, where are some discrepancies? So I ctrl+shift+f formatted the code, and then indented the alignment. Deploy again with no error. Surfing the Internet, said the exception is that the XML does not <?xml version= "1.0" encoding= "UTF-8"?> start, that is, the first character must be <?xml ...
Workaround:
The canonical XML format,
<?xml version= "1.0" encoding= "UTF-8"?> must be the first element of the XML file and cannot be preceded by a space.
Configuration file Error: A processing instruction target that matches [XX][MM][LL] is not allowed.