• 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

META-INF/aop.xml not found

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Guys,
just registered, so sorry if the topic is wrong in "Spring", wasn't sure, its kind of basis Eclipse Stuff i guess.

I have a simple and working Spring Project with an Aspect, an ApplicationContext, javaagent is declared and i have a META-INF/aop.xml File. The Program runs, the context works well, but the Weaving won't take place. The Weaver only reacts when I put the META-INF\ Folder directly into the bin\ Folder in my Workspace. Of course that works for a moment, until Eclipse deletes it in the build process. I have been trying around with some Classpath and Buildpath Setups in Eclipse, but i have no Idea. Another way was just putting the aop.xml into a .jar File named "META-INF" and add it as external jar, that worked too, but that looks pretty stupid.

Where does the folder belong to? Thanks.
Unbenannt.png
[Thumbnail for Unbenannt.png]
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jan,
Welcome to CodeRanch! The IDEs forum is the best place. I've added it there for you.

It looks like the META-INF folder is in the root of your project in the screenshot. It should be in the src folder. That way when Eclipse rebuilds, it automatically gets copied from src/META-INF to bin/META-INF.
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would encourage you to use a tool like maven. The simple archetype will set up your java jar application in the correct fashion. META-INF does not need to be a src folder as is depicted in your image.
 
reply
    Bookmark Topic Watch Topic
  • New Topic