Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: ava.lang.ClassNotFoundException: org.aopalliance.aop.Advice

  1. #1

    Default ava.lang.ClassNotFoundException: org.aopalliance.aop.Advice

    I have upgraded from Spring-2.5.6 to Spring3.0 Release

    Classpath: org.springframework.aop-3.0.0.RELEASE.jar

    But getting error as
    Caused by: java.lang.ClassNotFoundException: org.aopalliance.aop.Advice

    Which jar file is missing from Spring3.0 release.? Or i need to download from other external link ?
    Last edited by springbeginners; Dec 27th, 2009 at 10:22 PM.

  2. #2
    Join Date
    Jun 2006
    Location
    SF Bay Area, California
    Posts
    524

    Default

    You need to use aopalliance jar file.

    -Ramnivas
    Ramnivas Laddad (Follow me on Twitter)
    AspectJ in Action: Enterprise AOP with Spring Applications (2nd edition). Now available!

  3. #3
    Join Date
    Sep 2007
    Posts
    6

    Default

    Where is that jar file? I was able to find only aopalliance-alpha1.jar.
    It doesn't have Advice class.
    Thank you,
    Andrey
    Quote Originally Posted by ramnivas View Post
    You need to use aopalliance jar file.

    -Ramnivas

  4. #4
    Join Date
    Jun 2006
    Location
    SF Bay Area, California
    Posts
    524

    Default

    Ramnivas Laddad (Follow me on Twitter)
    AspectJ in Action: Enterprise AOP with Spring Applications (2nd edition). Now available!

  5. #5
    Join Date
    Dec 2009
    Location
    Berlin
    Posts
    3

    Default

    A usefull site to find jars/classes is

    http://www.jarfinder.com/

  6. #6

  7. #7
    Join Date
    Aug 2010
    Location
    Barcelona
    Posts
    3

    Default

    aopalliance is no longer bundled in Spring..it was completely removed from spring-aop.jar

    https://jira.springframework.org/browse/SPR-2011

  8. #8
    Join Date
    Nov 2007
    Posts
    17

    Default

    Is there any documentation...anywhere....that lists the Spring dependencies?

  9. #9

    Default

    yes u can get dependencies jars for spring from http://www.springsource.org/download ,after downloading the latest version unzip it to get all he jars at spring-framework-3.1.0.M2/dist.examples are also present in those folders

  10. #10
    Join Date
    Jul 2010
    Location
    Venice, Italy
    Posts
    710

    Default

    Or you could use Maven and save yourself a lot of headaches...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •