• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Type AudienceAdvice is inconsistent error

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am trying "Spring in Action" chapter4 example

when i am trying to implements BeforeAdvice, it shows following error in eclipse

- The hierarchy of the type AudienceAdvice is inconsistent
- The type org.aopalliance.aop.Advice cannot be resolved. It is indirectly referenced from
required .class files



I have included all libraries of spring-framework-3.0.3.RELEASE and asm-all-3.2.jar,commons-logging-1.1.1.jar.

Could anyone suggest me how to rectify this error in eclipse as i am not able to build.

Any help in this regard would be highly appreciated

Thanks
Gunjan
 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could be missing the aopalliance-1.0.jar file. I don't believe this is directly part of the distribution (at least it wasn't for spring-framework-3.0.0.RELEASE). I've since been building with the STS and the Spring Template Project, which builds out a Maven-based project with all the basic dependencies pre-set in the pom.xml file.

If you need to download the jar file, you should be able to find it at: http://sourceforge.net/projects/aopalliance/files/
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i also meet this error, Thanks...
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot
 
Greenhorn
Posts: 5
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you
 
Greenhorn
Posts: 3
Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Syed Iqbal wrote:Thanks a lot It was resolved

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks , its worked for me.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic