XML : duplicate attribute used with the same name and target namespace are specified

Please help me here. I am getting an error in my xml as follows Description Resource Path Location Type

  Referenced file contains errors (project-aware://60SpringBeanContextListener/org/springframework/beans/factory/xml/spring-beans-4.2.xsd).  For more information, right click on the message in the Problems View and select "Show Details..."   dao-context.xml /60SpringBeanContextListener/src/com/sharat/spring/web/config   line 1  XML Problem    

My XML is simple and is as below

  <?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:context="http://www.springframework.org/schema/context"      xmlns:tx="http://www.springframework.org/schema/tx"      xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd          http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd          http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd">          <context:annotation-config></context:annotation-config>      <context:component-scan base-package="com.sharat.spring.web.dao"></context:component-scan>  </beans>    

If i show details on the error i get the below

ct-props-correct.4: Error of type #AnonType ......

Could you please help me rectify this issue.

Thanks, Sharat

No comments:

Post a Comment