Re: [aspectwerkz-user] NoClassDefFoundError on applicatoin init

Mattias J <[email protected]> Tue, 17 May 2005 10:53:44 +0200
Newsgroups gmane.comp.java.aspectwerkz.user
Message-ID <6.2.1.2.0.20050517105231.026dd3e0@localhost>
At 2005-05-17 11:34, Alexandru Popescu wrote:
>Maybe it is a problem loading the class and that CL is reporting the wrong 
>error. I see AspectWerkzPreProcessor is using
>ClassPreProcessor that is included in the aspectwerkz-core. Are these 2 
>jar loaded from the same CL?

No, that's it. The core jar was missing altogether.
As usual the NoClassDefFound error does not show the class not found, but 
the class referring classes not found...
Thanks for helping me track this down.

Though this leads to another question: is the core jar actually needed?
 From what I remember, the JARs needed at runtime with offline weaving are 
those found in setEnv (this is still in great need of better documenting!), 
and the core jar is not listed there. (As I said, everything works fine 
without it)
If the core jar is in fact needed, why is it separate from the main jar?

   /Mattias J