I've searched the forum for a solution to this but found nothing... Maybe someone else can shed some light on this.
I am using an annotated Aspect class with a simple @Before that outputs to the console. When I start up my application in tomcat I get the following exception:
BeanNotOfRequiredTypeException: Bean named 'foo.bar.Bar' must be of type foo.bar.Bar but was actually of type [$Proxy9].
In a forum post it sounds like something to do with class loaders?? Any thoughts?