PDA

View Full Version : Failed to read schema document and no declaration can be found for the element



jaygp
Sep 6th, 2011, 12:18 AM
Hi ..

I'm using AOP for transaction support.

I'm using tx namesapce to decalre aspect.

But while making it adivce I'm using

<aop:config>
<aop:adive id="x" adivce-ref="y" pointcut="" />
</aop:config>

But XML document complains 2 issues : 1) Failed to read schema document.....
2)No declaration can be found for the element <aop:config...

My namespace declaration is like this..

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"

xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">


Can someone help please..?


Thanks