I will try to change the method
ServiceProxyFactory.getUnaryServiceProxy to use plain Java Proxy to
test this. Any tips in advance? Other ideas what can cause this
problem?
You were right, it was yet another classloading problem in OSGi ;-)
But I wonder, since we patch Guice anyway, wouldn't it make more sense
to set the NonDelegatingClassLoaderHook as a default in GuiceCodeGen
instead of the DEFAULT_CLASSLOADER_HOOK?