Announcement Announcement Module
Collapse
No announcement yet.
ClassNotFoundException: org.aopalliance.intercept.MethodInterceptor Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ClassNotFoundException: org.aopalliance.intercept.MethodInterceptor

    I'm following this tutorial http://static.springsource.org/docs/...tep/part6.html

    However I'm getting error ClassNotFoundException: org.aopalliance.intercept.MethodInterceptor

    I'm using spring 3 & netbeans ide 6.9.1. Here is my applicationContext.
    The error occures aeven if I devlare an empty <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="http://www.springframework.org/schema/p"
    xmlns:aop="http://www.springframework.org/schema/aop"
    xmlns:tx="http://www.springframework.org/schema/tx"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schem...-beans-3.0.xsd
    http://www.springframework.org/schema/aop http://www.springframework.org/schem...ng-aop-3.0.xsd
    http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">

    <bean id="propertyConfigurer"
    class="org.springframework.beans.factory.config.Pr opertyPlaceholderConfigurer"
    p:location="/WEB-INF/jdbc.properties" />

    <bean id="dataSource"
    class="org.springframework.jdbc.datasource.DriverM anagerDataSource"
    p:driverClassName="${jdbc.driverClassName}"
    p:url="${jdbc.url}"
    p:username="${jdbc.username}"
    password="${jdbc.password}" />

    <!-- ADD PERSISTENCE SUPPORT HERE (jpa, hibernate, etc) -->

    <!-- the parent application context definition for the springapp application -->

    <bean id="productManager" class="application.service.SimpleProductManager">
    <property name="productDao" ref="productDao"/>
    </bean>

    <bean id="productDao" class="application.repository.JdbcProductDao">
    <property name="dataSource" ref="dataSource"/>
    </bean>




    <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSou rceTransactionManager">
    <property name="dataSource" ref="dataSource"/>
    </bean>


    <aop:config>
    <aopointcut id="productManagerOperation" expression="execution(* application.service.ProductManager.*(..))"/>
    <aop:advisor advice-ref="txAdvice" pointcut-ref="productManagerOperation"/>
    </aop:config>





    <!--
    <aop:config>
    <aop:advisor pointcut="execution(* *..ProductManager.*(..))" advice-ref="txAdvice"/>
    </aop:config>
    -->
    <tx:advice id="txAdvice">
    <tx:attributes>
    <tx:method name="save*"/>
    <tx:method name="*" read-only="true"/>
    </tx:attributes>
    </tx:advice>

    </beans>

  • #2
    You're missing the aopalliance jar. Before posting search the forums, this question has been answered many times.

    I also suggest you use Maven or Ivy to manage your dependencies.

    Comment

    Working...
    X