You probably got your answer already, but for anyone else.
A good way to setup compiletime weaving (in eclipse) is to use the ajdt plugin.
Add the spring-aspects to the ajdt aspejtj build under the project properties.
Now with the right settings in the spring xmls:
<context:spring-configured/>
the project should compile and be able to run in eclipsejee tomcat for instance.
To compile it with ant:
Code:
<taskdef resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties">
<classpath>
<pathelement location="${aspect.home}aspectjtools.jar"/>
</classpath>
</taskdef>
<target name="compaspect">
<echo message=" **** Compiling aspect "/>
<mkdir dir="${build}/WEB-INF/classes"/>
<iajc
compliance="-1.5"
srcdir="src"
destdir="${build}/WEB-INF/classes"
classpathref="compile.class.path"
debug="true"
deprecation="false"
failonerror="true">
<aspectpath refid="aspect.path"/>
</iajc>
</target>
<path id="aspect.path">
<pathelement path="${aspect.home}org.springframework.aspects-3.0.0.RELEASE.jar"/>
</path>
Its a bit of a struggle to set it up, but very nice when its all running.