did you try ant distjars?

This error trace means that jarjar did not run and repackage Guice's
internal deps.

Dhanji.

On Thu, Sep 23, 2010 at 6:44 AM, Daniel Manzke <[email protected]
> wrote:

> Hi Guys,
>
> I checked out Guice 3.0 from the trunk and I can't get it up and
> running. I run the ant-Tasks with "dist" to get a Snapshot, due the
> fact that no one is provided through Maven.
> I've created a simple java application and added javax.inject.jar and
> the aopalliance.jar, but when starting the application, I get
> following error:
>
> Exception in thread "main"
> com.google.inject.internal.util.ComputationException:
> java.lang.NoClassDefFoundError: com/google/inject/internal/cglib/proxy/
> CallbackFilter
>        at com.google.inject.internal.util.MapMaker
> $StrategyImpl.compute(MapMaker.java:553)
>        at com.google.inject.internal.util.MapMaker
> $StrategyImpl.compute(MapMaker.java:419)
>        at com.google.inject.internal.util.CustomConcurrentHashMap
> $ComputingImpl.get(CustomConcurrentHashMap.java:2042)
>        at com.google.inject.internal.FailableCache.get(FailableCache.java:
> 48)
>        at
>
> com.google.inject.internal.ConstructorInjectorStore.get(ConstructorInjectorStore.java:
> 49)
>        at
>
> com.google.inject.internal.ConstructorBindingImpl.initialize(ConstructorBindingImpl.java:
> 125)
>        at
>
> com.google.inject.internal.InjectorImpl.initializeJitBinding(InjectorImpl.java:
> 491)
>        at
>
> com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:
> 808)
>        at
>
> com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:
> 740)
>        at
>
> com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:
> 233)
>        at
>
> com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:
> 183)
>        at
>
> com.google.inject.internal.InjectorImpl.getInternalFactory(InjectorImpl.java:
> 814)
>        at com.google.inject.internal.FactoryProxy.notify(FactoryProxy.java:
> 46)
>        at
>
> com.google.inject.internal.BindingProcessor.runCreationListeners(BindingProcessor.java:
> 240)
>        at
>
> com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:
> 145)
>        at
>
> com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:
> 118)
>        at com.google.inject.InjectorBuilder.build(InjectorBuilder.java:100)
>        at com.google.inject.Guice.createInjector(Guice.java:95)
>        at com.google.inject.Guice.createInjector(Guice.java:72)
>        at com.google.inject.Guice.createInjector(Guice.java:61)
>        at ExampleApp.run(ExampleApp.java:41)
>        at ExampleApp.main(ExampleApp.java:47)
> Caused by: java.lang.NoClassDefFoundError: com/google/inject/internal/
> cglib/proxy/CallbackFilter
>        at
>
> com.google.inject.internal.ConstructorInjectorStore.createConstructor(ConstructorInjectorStore.java:
> 81)
>        at com.google.inject.internal.ConstructorInjectorStore.access
> $000(ConstructorInjectorStore.java:28)
>        at com.google.inject.internal.ConstructorInjectorStore
> $1.create(ConstructorInjectorStore.java:36)
>        at com.google.inject.internal.ConstructorInjectorStore
> $1.create(ConstructorInjectorStore.java:32)
>        at com.google.inject.internal.FailableCache
> $1.apply(FailableCache.java:37)
>        at com.google.inject.internal.util.MapMaker
> $StrategyImpl.compute(MapMaker.java:549)
>        ... 21 more
> Caused by: java.lang.ClassNotFoundException:
> com.google.inject.internal.cglib.proxy.CallbackFilter
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>        ... 27 more
>
>
> I did a little bit more research, but the 3.0 is not having any
> dependencies to it, but the code tries to load it. Some ideas?
>
> --
> 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]<google-guice%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-guice?hl=en.
>
>

-- 
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