Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

META-INF/aop.xml not found

Posts: 2
  • Mark post as helpful
  • send pies
  • 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.
[Thumbnail for Unbenannt.png]
author & internet detective
Posts: 40035
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Posts: 1682
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
  • 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.
Ever since I found this suit I've felt strange new needs. And a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic