Hi,
AspectJ deliberately doesn’t try to do anything funky with class loaders as that is always painful. But if the environment it is running on is being too clever it can trip us up. To access the class file data we are making a call:
InputStream is = loaderRef.getClassLoader().getResourceAsStream(classFile + ".class");
But in that environment it is not giving us an answer. Possibly getResource is being handled differently to loadClass? Can we find out more about the delegation strategy it is using for loading things? Any further JBoss config options we can tweak?
I’m happy to work with someone on resolving this but I really don’t know a lot about JBoss.
cheers, Andy
A long time ago, i have this problem and i raised the bug below. It is still open. The cause is the gestion of classloader with jboss modules. I test at every version of aspectj, but the bug is still here. I have no tested with aspectj 1.8.x. The workaround does not run also.
Envoyé depuis mon appareil mobile Samsung -------- Message d'origine -------- De : 刘洋 < ouxijv@xxxxxxx> Date : 10/11/2014 9:03 (GMT+01:00) A : aspectj-users@xxxxxxxxxxx Objet : [aspectj-users] LTWJboss7 error Does anyone know whether AspectJ with LTW works for JBoss 7? I tried following these instructions but got errors below
12:30:37,746 ERROR [stderr] [ModuleClassLoader@3243b595] info AspectJ Weaver Version 1.6.12 built on Tuesday Oct 18, 2011 at 17:52:06 GMT
12:30:37,762 ERROR [stderr] [ModuleClassLoader@3243b595] info register classloader org.jboss.modules.ModuleClassLoader@3243b595
13:57:01,634 ERROR [stderr] [JasperLoader@64f221c7] info register classloader org.apache.jasper.servlet.JasperLoader@64f221c7
Thanks, ouxijv 2014-11-10 _______________________________________________ aspectj-users mailing list aspectj-users@xxxxxxxxxxxTo change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/aspectj-users
|