Hi Michael!

Do you get the NoClassDefFoundError while you execute your application? 
Is this a JAR, a WAR, EAR,...? Or do you get it whilst the byte code 
enhancement (weaving) is done by the aspectj-plugin?

Have you tried to run mvn with the -X option to check if the needed jar is 
really there?

LieGrue,
strub

--- Michael Rogger <michael.rog...@sti2.at> schrieb am Mi, 15.4.2009:

> Von: Michael Rogger <michael.rog...@sti2.at>
> Betreff: [mojo-user] [aspectj plugin] weaving jars to other projects + 3rd 
> party libaries not found in those projects
> An: user@mojo.codehaus.org
> Datum: Mittwoch, 15. April 2009, 11:37
> Hi,
> 
> I have several projects (each project is a component for
> the whole system) and I apply already compiled aspects to
> them. Everything works fine until I access a 3rd party
> library from the aspect, for example I call a factory class
> or make an instance. If I do that, I get a
> java.lang.NoClassDefFoundError execption, so the classloader
> cannot find the library.
> I tried several things: First I tried to include the
> library directly into the compiled aspect lib. The second
> thing I tried was to include that library in the project
> where I injected the aspect code using the compiled aspect
> lib. Unfortunately none of both worked for me and the
> java.lang.NoClassDefFoundError remains.
> My question is, how do you access within an aspect a 3rd
> party library? I mean where can I put those libaries into,
> in order that the classloader can find it, in each proejct
> where I weave the compiled aspects?
> 
> Thank you very much for your help, I hope someone can help
> me!
> 
> Best regards
> Rogger
> 
> -- Michael Rogger
> STI Innsbruck (www.sti-innsbruck.at)
> University of Innsbruck
> ICT Technologiepark
> Technikerstr. 21a
> 6020 Innsbruck, Austria
> 
> T +43 512 507 96876
> F +43 512 507 9872
> E michael.rog...@sti2.at
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>    http://xircles.codehaus.org/manage_email
> 
> 
> 




---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to