Comment #41 on issue 94 by a.shewring: Support OSGi classloading in Guice http://code.google.com/p/google-guice/issues/detail?id=94
I'm having the same issue as Anne is, namely java.lang.NoClassDefFoundError: com/google/inject/internal/cglib/reflect/FastClass I am using the Guice 2.0 release jar. Modifying the manifest by adding com.google.inject.internal.cglib.reflect to the list of Export-Package directives does not solve it (an ugly, drastic solution in any case). Incidentally I also needed to add com.google.inject.internal;version="1.2" to the guice-2.0.jar's manifest in order for the org.google.assistedinject bundle to be resolved. That bundle's manifest also required modification as it was importing its own package (com.google.inject.assistedinject;version="[1.2,2)")! Lastly, the shipped aopalliance.jar is not an OSGi bundle. For Guice 1.0 I used the attached com.springsource.org.aopalliance-1.0.0.jar from the SpringSource Enterprise Repository instead. Please reopen this issue as there are clearly outstanding problems when running Guice and the AssistedInject extension under OSGi. I cannot upgrade as a result. Attachments: com.springsource.org.aopalliance-1.0.0.jar 4.5 KB -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "google-guice-dev" group. To post to this group, send email to google-guice-dev@googlegroups.com To unsubscribe from this group, send email to google-guice-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-guice-dev?hl=en -~----------~----~----~----~------~----~------~--~---