Hey guys,
I'm trying to convert my application over to OSGi. Previously, I was rocking a straight Jetty deployed WAR with Guice all over the place. As I've migrated it to Felix, I've got JUUUST about everything working, but I get some nasty error when trying to install a ServletModule. If I comment the ServletModule out of my Activator, it works as expected; however, when it's in there, I get this:
java.lang.NoClassDefFoundError: com/google/inject/internal/util/$Preconditions
at com.google.inject.servlet.ServletModule.configure(ServletModule.java:44)
at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
at com.google.inject.AbstractModule.install(AbstractModule.java:118)
Which really kills just about anything.
I am attempting to register my GuiceFilter to the ExtHttpService, which works great when the ServletModule is commented out. The GuiceFilter registration looks like this:
service.registerFilter( new GuiceFilter(), "/*", null, 0, null );
Where am I going wrong here? I have confirmed that guice-servlet.jar is making it into my bundle, so I don't think that's the problem.
Any help would be greatly appreciated. Getting started with OSGi is... tedious...
Thanks!!
Evan