This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Depends on your pointcut expression, and/or which xml file you have it in. So those classes you mentioned that it is working is in an ApplicationContext object, and the Controller's are loaded in a different context. so they aren't together. I am suspecting the applicationContext has your Aspects defined in them. Whereas the xml file that defines your Controller classes does not.
Shivaji Byrapaneni wrote:No im using multi action form controller and it is the only controller that i had and i had imported all the other xmls using import statemnt on top
I didn't say a particular type of Controller, just Controller.
Anyway, in the Web, you have two different contexts. One for the web and a parent ApplicationContext. Your services are in the parent ApplicationContext as well as your AOP Aspects. The Controller is in the web AppContext. The controller can inject and get beans from the parent ApplicationContext, but not the other way around, so the AOP Aspects can't see or do anything with your Controller. The parent Application Context is created first, with its lifecycle. Then the Web context is created with your Controller created, way after the AOP proxies for your Aspect have been created.