Hey all,
I'm trying to get Jersey working in Felix and I'm running into a few
problems. I've solved most of them but the one I'm running into now
is possibly a showstopper. In the FactoryFinder.find() method of the
jsr311-api jar there is this call to get the class loader.
classLoader = Thread.currentThread().getContextClassLoader();
The problem is that the thread class loader is not the bundle class
loader so this fails to find the RuntimeDelegationImpl class. The
simplest solution is to wrap the initialization code in something that
sets the threads context class loader to the bundles class loader.
I'm worried that even if this works for the startup code, it may cause
problems down the line. Any tips?
Thanks,
Rich