The AOP Alliance API is just a set of interfaces. Guice implements and
references those interfaces, so they need to be in your classpath, even if
you don't use that functionality.
Or, you could use
t<http://google-guice.googlecode.com/files/guice-2.0-no_aop.jar>he
"no aop" version of Guice (available on the downloads page).

Bob

On Thu, Aug 27, 2009 at 3:15 PM, Pablo Fernandez <[email protected]
> wrote:

>
> Hi.
>
> My code compiles cleanly just with the basic guice.jar but when I try
> to run some test I get the following error:
>
> java.lang.NoClassDefFoundError: [Lorg/aopalliance/intercept/
> MethodInterceptor;
>        at java.lang.Class.getDeclaredMethods0(Native Method)
>        at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
>        at java.lang.Class.getDeclaredMethods(Class.java:1763)
>        at
> com.google.inject.internal.ProviderMethodsModule.getProviderMethods
> (ProviderMethodsModule.java:78)
>        at com.google.inject.internal.ProviderMethodsModule.configure
> (ProviderMethodsModule.java:70)
>        at com.google.inject.spi.Elements$RecordingBinder.install
> (Elements.java:223)
>        at com.google.inject.spi.Elements$RecordingBinder.install
> (Elements.java:232)
>        at com.google.inject.AbstractModule.install(AbstractModule.java:118)
>
>
> Isnt aopalliance an optional dependency that you throw in just when
> you use guice AOP?
>
> Thanks!
>
> PD: Obviously I'm NOT using AOP, just simple DI
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to