Libraries such as Hibernate and StAX that use Thread.getContextClassLoader() do not work (well) in Felix / Karaf. >From what I've read it's because the OSGi Alliance never got around to >specifying how this method should behave in an OSGi environment.
I was wondering if it is possible in theory to create a bundle that provides a "correct" thread context classloader for all other bundles? I imagine it would involve writing a custom delegating classloader and a bundle listener that basically just make all exported classes from any bundle visible to the thread context classloader. However, I don't see a way to reliably set the context classloader since the main thread is managed by Felix. -Dan --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

