Below i have define aspect in aop.xml
<aspects>
<aspect name="com.customer.MyCustomAspect" />
</aspects>
My Custom Aspect is define below
@Aspect
public class MyCustomAspect{
@Around("@annotation(requiredPrivilege)")
public Object myAdvice(ProceedingJoinPoint pjp) throws Throwable {
}
Now when i call any service method from struts 2 action, myAdvice is not called. Every thing works fine with my legacy action but not with struts 2 action (Just for information i am using struts2 spring plugin jar). I am not what is the issue with struts 2?