mag_gandalf
Nov 22nd, 2006, 02:55 AM
Hello, i suppose that im having a problem with XML, but im sure that more people has found the same problem using aop:aspectj-autoproxy tag, my spring file is:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tool="http://www.springframework.org/schema/tool"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd"
>
<aop:aspectj-autoproxy/>
<bean id="t1" class="com.dg.aspects.Executor"/>
<bean id="t2" class="com.dg.aspects.Executor"/>
</beans>
Just don't know why but this exception is thrown:
org.springframework.beans.factory.BeanDefinitionSt oreException: Line 18 in XML document from class path resource [com/dg/aspects/springbeans.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'aop:aspectj-autoproxy'.
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'aop:aspectj-autoproxy'.
at com.sun.org.apache.xerces.internal.util.ErrorHandl erWrapper.createSAXParseException(ErrorHandlerWrap per.java:236)
Although i put the aop schemaLocation, the same error is thrown.
Anybody has found the same problem? Thank you very much.
I wish that schemaLocation doesn't try to download the schema because then my ****** proxy are treading me.
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tool="http://www.springframework.org/schema/tool"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd"
>
<aop:aspectj-autoproxy/>
<bean id="t1" class="com.dg.aspects.Executor"/>
<bean id="t2" class="com.dg.aspects.Executor"/>
</beans>
Just don't know why but this exception is thrown:
org.springframework.beans.factory.BeanDefinitionSt oreException: Line 18 in XML document from class path resource [com/dg/aspects/springbeans.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'aop:aspectj-autoproxy'.
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'aop:aspectj-autoproxy'.
at com.sun.org.apache.xerces.internal.util.ErrorHandl erWrapper.createSAXParseException(ErrorHandlerWrap per.java:236)
Although i put the aop schemaLocation, the same error is thrown.
Anybody has found the same problem? Thank you very much.
I wish that schemaLocation doesn't try to download the schema because then my ****** proxy are treading me.