I tried to configure load-time weaving (for doing profiling with Perf4J) in the next way:
1) I added aop.xml to META-INF folder. When deployed,
aop.xml
META-INF
I was trying to solve the same issue in Tomcat. In addition to -javaagent option, you need to make sure the aop.xml must be under the WEB-INF/classes/META-INF dir. This made the difference for me.