Aug 1st, 2006, 11:36 AM
referencing pointcuts defined in schema
the AOP docs in the Spring reference say that you can reference XSD-based pointcuts via XML ids, yet if I define two pointcuts, and one references the other via the id, i get an IllegalArgumentException that it cannot find the referenced pointcut (being the mainpoincut).
is this still possible? I must use JDK 1.4 for now, so annotations are not possible.
expression="mainpointcut() and args(req)"/>
Aug 1st, 2006, 11:41 AM
It's working for me. Do you have both aop: pointcut definitions wrapped in a single aop: config declaration?
Aug 1st, 2006, 12:12 PM
yes. they are both in the same config.
the declarations themselves don't error out, but when i apply 'pointcut-ref' on an aspect:
then i receive the failure.
the logs aren't telling me anything else.
i tried removing the 'args' expression and arg-names as well. same result.
i'm using RC2 and included jars. has anything changed?
Aug 1st, 2006, 12:14 PM
another thought. do the XSD ID's require any sort of namespace prefixing in order to be found (ala package names0?
Aug 2nd, 2006, 11:03 AM
I am using nightly build, which contain a lot of bugfixes since RC2. It may very well be worth attempting an upgrade.
Originally Posted by boutwell
If that doesn't work, try posting your relevant config, including schema declarations, using the [code] markup so it is readable.