On 23 September 2010 20:29, Daniel Manzke <[email protected]>wrote:
> Curios. It seems that the jarjar is running partially. I found a blog > entry with the example, that guice is using the jarjar. So I just > commented out the rules to rewrite cglib and aop and everything works > like expected. > But with the jarjar rules activated, it is not working. It did the > same like described of Sam. > > I don't know if it is a Windows problem or maybe the windows git > version (msysgit). I had several problems with maven-release-plugin > before, because msysgit is using small hdd letters, when not started > with several tricks. > or maybe even http://code.google.com/p/jarjar/issues/detail?id=20 ? > I'll check if the one belongs to msysgit or not. > > Thanks so far. > > On 23 Sep., 05:40, Sam Berlin <[email protected]> wrote: > > What output jar are you using? I just ran 'ant dist' and picked up the > jar > > located at ./build/dist/guice-snapshot.jar (+ aopalliance.jar & > > javax.inject.jar in that directory) and everything worked fine. > > > > sam > > > > On Wed, Sep 22, 2010 at 4:44 PM, 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(ConstructorInjector > Store.java: > > > 49) > > > at > > > > > > com.google.inject.internal.ConstructorBindingImpl.initialize(ConstructorBin > dingImpl.java: > > > 125) > > > at > > > > > > com.google.inject.internal.InjectorImpl.initializeJitBinding(InjectorImpl.j > ava: > > > 491) > > > at > > > > > > com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImp > l.java: > > > 808) > > > at > > > > > > com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(In > jectorImpl.java: > > > 740) > > > at > > > > > > com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.j > ava: > > > 233) > > > at > > > > > > com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java > : > > > 183) > > > at > > > > > > com.google.inject.internal.InjectorImpl.getInternalFactory(InjectorImpl.jav > a: > > > 814) > > > at > com.google.inject.internal.FactoryProxy.notify(FactoryProxy.java: > > > 46) > > > at > > > > > > com.google.inject.internal.BindingProcessor.runCreationListeners(BindingPro > cessor.java: > > > 240) > > > at > > > > > > com.google.inject.internal.InternalInjectorCreator.initializeStatically(Int > ernalInjectorCreator.java: > > > 145) > > > at > > > > > > com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCr > eator.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(Const > ructorInjectorStore.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]> > <google-guice%2bunsubscr...@google groups.com> > > > . > > > 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]<google-guice%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-guice?hl=en. > > -- Cheers, Stuart -- 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.
