使用MyEclipse add Spring Capabilities添加Spring支持时报错

直接使用MyEclipse添加对Spring的支持时,applicationContext.xml内部没有错,就是有个小红叉,看了一下problems里面有error显示:

DescriptionResourcePathLocationType

Error occured processing XML 'Provider org.apache.xerces.parsers.IntegratedParserConfiguration could not be instantiated: org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.'. See Error Log for more detailsapplicationContext.xml/spring/srcUnknownSpring Beans Problem

可能原因是与Spket有冲突导致的;

解决方法:

右击工程,选择properties,选myeclipse,选spring,选bean,然后把configfile标签下的spring配置文件全都remove,确定就好了。等报错消失了,再重新手动add。

猜你喜欢

转载自liuliu140.iteye.com/blog/2373886