Hi I'm trying
Load-Time Weaving (LTW) with Webflow as did you...
I placed the aop.xml where my persistence.xml resides ( I'm hoping this gets recognized because of the errors I get)
Code:
<!DOCTYPE aspectj PUBLIC
"-//AspectJ//DTD//EN" "http://www.eclipse.org/aspectj/dtd/aspectj.dtd">
<aspectj>
<weaver>
<!-- only weave classes in this package will include subpkgs -->
<include within="org.springframework.webflow.samples..*"/>
</weaver>
<aspects>
<!-- use only this aspect for weaving -->
<!-- <aspect name="org.springbyexample.aspectjLoadTimeWeaving.PerformanceAdvice" /> -->
<aspect name="org.springframework.webflow.samples.util.ErrorLogger" />
</aspects>
</aspectj>
In my main config I am trying to find what to put as weaver class?
Code:
<context:load-time-weaver aspectj-weaving="on" weaver-class="???" />
If nothing then ..
Code:
java.io.NotSerializableException: org.springframework.context.weaving.DefaultContextLoadTimeWeaver
If I place the class (from spring-agent.jar) in the server and set the javaagent ../libs/Spring-agent.jar in the
catalina.bat of Tomcat so that it starts
Code:
if not exist "%CATALINA_BASE%\conf\logging.properties" goto noJuli
set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties -javaagent:../server/lib/spring-agent.jar"
then it too is not serialized. So I then added "implements Serialization" to the class jar it put it in play,
and get..
Code:
java.io.NotSerializableException: org.apache.catalina.loader.WebappClassLoader
and so on with no hope of serializing the chain of implyed classes
( for this reason I feel I am on the wrong track...)
Must I write some kind of Custom LoadTimeWeaving class and how could you do this?
I saw the following config at http://www.springbyexample.org/examp...pectj-ltw.html
but was unable to see/checkout the sc
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.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd">
<context:load-time-weaver />
<bean id="processor" class="org.springbyexample.aspectjLoadTimeWeaving.Processor" />
</beans>
In short, just how does one config and implement aspectj (LTW) for Webflow??
I don't see anything out there really, is it possible?
Webflow requires serialization for snapshots etc,...
I just know there's something I'm missing/overlooked!
Can anyone stear/help me in the right direction?
There's just nothing on AOP for webflow in the manual or forums!
Hope to hear from someone,
Best Regards,
John.