NoSuchMethodError aspectOf() at runtime from building with iajc
Finally found the problem. Our Application had a dependency on common module jar that was containing aspect too.
The base package name was the same: com.xxx.aop
and the base class we used for our aspects was the same name. So 2 com.xxx.aop.AspectBase.class
were loaded.
Since we used a flag in our Ant build file to enable compile time weaving at yes/no, one of our AspectBase.class
was not weaved while the other was.