I am suddenly getting the following errors when the validator runs on one of my spring context files.
The errors below were detected when validating the file “spring-beans-3.0.xsd” via the file “applicationContext-common.xml”. In most cases these errors can be detected by validating “spring-beans-3.0.xsd” directly. However it is possible that errors will only occur when spring-beans-3.0.xsd is validated in the context of applicationContext-common.xml.
ct-props-correct.4: Error for type ‘#AnonType_array.’ Duplicate attribute uses with the same name and target namespace. ( 5 errors like this )
My install :
MyEclipse Enterprise Workbench
Version: 8.6
Build id: 8.6-20100806
Top of the context xml :
<?xml version=”1.0″ encoding=”UTF-8″?>
<beans xmlns=”http://www.springframework.org/schema/beans”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xmlns:util=”http://www.springframework.org/schema/util”
xsi:schemaLocation=”http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd”>
So the file is using spring 2.0 xsd, why is myeclipse trying to validate spring 3.0 xsd ?