Spring AOP Соответствующий подстановочный знак является строгим, но не удается найти объявление для элемента 'aop: config'

Строка 13 в XML-документе из ресурса пути к классу [ApplicationContextAOP.xml] недействительна ; вложенное исключение - org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: Соответствующий подстановочный знак является строгим, но для элемента 'aop: config' не найдено декларации.

<?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:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<bean id="audience" class="com.idol.Audience" />

<aop:config>
<aop:aspect ref="audience">

    <!-- Before performance -->     

    <aop:before pointcut="execution(*com.idol.performers.Performer.perform(..))"
    method="takeSeats"/>

    <aop:before pointcut="execution(*com.idol.performers.Performer.perform(..))"
    method="turnOffCellPhones" />

    <!-- After performance -->  

    <aop:after-returning pointcut="execution(*com.idol.performers.Performer.perform(..))"
    method="applaud" />

    <!-- After bad performance(exception thrown) -->    

    <aop:after-throwing pointcut="execution(*com.idol.performers.Performer.perform(..))"
    method="demandRefund" />

</aop:aspect>
</aop:config>
<bean id="poeticDuke" class="com.idol.performers.PoeticJuggler">
<constructor-arg value = "15" />
<constructor-arg ref = "sonnet29" />
</bean>

</beans>

Я видел аналогичную ошибку, и я почти уверен, что в моем пути к классам есть org.springframework.aop-3.1.0.M2.jar

Не могли бы вы сказать мне, что мне не хватает?

10
задан Aubergine 3 November 2011 в 09:39
поделиться