NoSuchMethodError aspectOf() at runtime from building with iajc
问题 We used aspectJ to get some metric on an existing application. When building and weaving with AJDT in eclipse, everything works great. But in the integration env. we use an ant script to build and deploy the application. The problem occur on an ExceptionHandler i did to be sure our aspect would not throw exception and break the application @Aspect public class ExceptionHandlerAspect { /** * Pointcut */ @Pointcut("within(com.xxx.yyy.aop.aspect.*..*)") public void allMethodInAspectPackage() {}