[jboss-user] [JBoss AOP] - Re: EnableLoadtimeWeaving and EnableTransformer

jimmycallaghan do-not-reply at jboss.com
Tue Sep 26 08:25:52 EDT 2006


Thanks Kabir...

the create-pluggable-jboss-classloader.bat file didn't work because it was using "mv" to copy the jar. I edited the bat file and changed it to a cp and got the file in the correct place. However, as I was doing the edit I noticed the following line...

"echo JAVA_HOME: %JAVA_HOME%echo This tool will only work with JDK 1.4!!!"

In true developer style I thought that I'd ignore it and see what happened. After putting the resulting jar into the bin directory of JBoss, editing the run.bat file with the new parameters, and running the server I got...

...NoClassDefFoundError: org/jboss/aop/hook/JDK14TransformerManager
...


So I removed the entry in run.bat and tried again and, after booting up, my test does not cause the interceptor to run.

Then I read section "10.3.3. JBoss 4.x and JDK 5" and curesed my stupidity...
Changed the MBean definition to use org.jboss.aop.deployment.AspectManagerServiceJDK5 and copied all of the AOP for Java5 jars into the lib directory of my deployment.

Then...

HEY...

PRESTO...

My interceptor is working!

Thanks Kabir... Next time I'll read the manual before posting for help!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974190#3974190

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974190



More information about the jboss-user mailing list