启动Tomcat时,报XML配置出错

问题:

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文件配置就可以了。剩下的都删掉。成功。

 

 

转载于:https://www.cnblogs.com/kobicc/archive/2011/01/18/1938615.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值