> @Pointcut("within(org.apache.tiles.extras.renderer.OptionsRenderer) && call( * org.springframework..SpringWildcardServletTilesApplicationContext.getResources(..))")
This looks reasonable if the method getResources() is declared on "org.springframework..SpringWildcardServletTilesApplicationContext" - if it is declared further up the hierarchy I think you need to specify that supertype. The call pointcut takes the declaring type. From the docs "A common mistake is to specify a declaring type for the
call pointcut that is a subtype of the originally-declaring type." (
http://www.eclipse.org/aspectj/doc/next/progguide/semantics-pointcuts.html)
I hadn't appreciated you were weaving the spring mvc jar. If you are weaving a jar there are many situations where it has to chase down type references to determine it something isn't a match. In these situations it effectively needs the classpath to contain everything that was used to build the jar you are weaving. But, if you are confident you are giving the compiler all the references it needs to get the matches you want, you can turn off the xlint warning for cant find type (and ignore them).
cheers,
Andy