问题:
ERROR - StandardWrapper.Throwable -org.apache.catalina.core.ApplicationContext.
log(ApplicationContext.java:682)
org.springframework.beans.factory.BeanDefinitionStoreException: Line 2 in XML do
cument from (no description) is invalid; nested exception is org.xml.sax.SAXPars
eException: Attribute value "IFieldMgr" of type ID must be unique within the doc
ument.
org.xml.sax.SAXParseException: Attribute value "IFieldMgr" of type ID must be un
ique within the document.
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213
)
.............
解决思路:
因为在启动Tomcat时,读取xml文件时,IFieldMgr属性值必须是唯一性。这里报出来的错误就是表示IFieldMgr的属性配置已经出现了不止一次。
解决方案:
1、 在xml文件中查找包含有“IFieldMgr”属性值,如果搜出多于一个xml文件中有“IFieldMgr”属性配置,则表示重复了。
可能是以前的"IFieldMgr"属性值是在一个文件中,现在已经经过调整了。因此只要保留最新的xml文件配置就可以了。剩下的都删掉。成功。