I added the aspect portion, but still no difference.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE aspectj PUBLIC
"-//AspectJ//DTD//EN" "http://www.eclipse.org/aspectj/dtd/aspectj.dtd">
<aspectj>
<weaver options="-showWeaveInfo
-XmessageHandlerClass:org.springframework.aop.aspectj.AspectJWeaverMessageHandler">
<include within="com.mycompany.product.aspects.*"/>
</weaver>
<aspects>
<aspect name="com.mycompany.product.aspects.MyLoggingAspect"/>
</aspects>
</aspectj>
I also added aspectj-weaving=on in the bean definition because I saw it on another forum post and decided to give it a try
Code:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">
<!-- this switches on the load-time weaving -->
<context:load-time-weaver aspectj-weaving="on"/>
</beans>
Should that be removed? is it needed?
I also tried adding the following to the tanuki wrapper config
Code:
wrapper.java.additional.7=-javaagent:./lib/spring-agent.jar
Should that be removed? is it needed?