Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] LTW and "Could not initialize class org.aspectj.weaver.AjcMemberMaker" error

The clue could be in the:

Could not initialize class org.aspectj.weaver.AjcMemberMaker

since that class does include a number of static fields that would be initialized as it is loaded.  But I don't see why initialization should fail since the static 'stuff' it does is harmless... you could try adding aspectjrt.jar in there, but I dont see why it would make a difference...

Andy.


2008/10/8 Jochen Wuttke <jochen.wuttke@xxxxxx>
Hi,

I'm trying to use LTW with my projects. After a lot of experimentation I got far enough that I actually get an error message from the weaver, and a lot of dump files. The root problem seems to be that the class AjcMemberMaker cannot be found, even though it is in aspectjweaver.jar, which is obviously in the classpath, because the weaver is running. I put the relevant output from one of the dump files below:

---- AspectJ Properties ---
AspectJ Compiler 1.6.2 built on Sunday Oct 5, 2008 at 21:06:05 GMT
---- Dump Properties ---
Dump file: ajcore.20081008.145450.026.txt
Dump reason: abort
Dump on exception: true
Dump at exit condition: abort
---- System Properties ---
java.runtime.name=Java(TM) SE Runtime Environment
sun.boot.library.path=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Libraries
java.vm.version=1.6.0_07-b06-57

[snip]
java.class.path=/Users/joe/Documents/uni/research/LuMi/workspace/TOMCAT_6_0_9/.settings/output:/Applications/eclipse_releases/eclipse 3.2/plugins/org.eclipse.jdt.core_3.2.3.v_686_R32x.jar:/Users/joe/Documents/uni/research/LuMi/workspace/TOMCAT_6_0_9/lib/ant.jar:lib/aspectjweaver.jar
[snip]

---- Command Line ---
Empty
---- Full Classpath ---
Empty
---- Compiler Messages ---
info AspectJ Weaver Version 1.6.2 built on Sunday Oct 5, 2008 at 21:06:05 GMT
info register classloader org.apache.catalina.loader.StandardClassLoader@509df6f1
info using configuration file:/Users/joe/Documents/uni/research/LuMi/workspace/TOMCAT_6_0_9/lib/myaspects.jar!/META-INF/aop.xml
debug weaving 'org.apache.myfaces.el.ResolverForJSPInitializer'
abort trouble in:
public class org.apache.myfaces.el.ResolverForJSPInitializer extends java.lang.Object implements javax.faces.event.PhaseListener:

[ here goes a dump of the class file]

end public class org.apache.myfaces.el.ResolverForJSPInitializer
-- (NoClassDefFoundError) Could not initialize class org.aspectj.weaver.AjcMemberMaker
Could not initialize class org.aspectj.weaver.AjcMemberMaker
java.lang.NoClassDefFoundError: Could not initialize class org.aspectj.weaver.AjcMemberMaker
       at org.aspectj.weaver.bcel.BcelClassWeaver.matchInit(BcelClassWeaver.java:2536)
       at org.aspectj.weaver.bcel.BcelClassWeaver.match(BcelClassWeaver.java:2449)

[and the rest of the stack trace]

I saw that this question has been discussed a good while ago on the list, but the resolution there did not work for me. Can anyone tell my what I'm missing or doing wrong?

Thanks
Jochen
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users


Back to the top