I found a workaround which isn't very nice though...
In brevity I'm changing the TCCL before calling intialization. However, it's
ugly and the SPI config is not loaded which means I have to do more hacks...
// adapt TCCL
Thread thread = Thread.currentThread();
ClassLoader loader = thread.getContextClassLoader();
thread.setContextClassLoader(InitializationService.class.getClassLoader());
try {
InitializationService.initialize();
} finally {
// reset TCCL
thread.setContextClassLoader(loader);
}
See also on SO:
http://stackoverflow.com/questions/37948303/opensaml3-resource-not-found-default-config-xml-in-osgi-container/39004323#39004323
--
View this message in context:
http://servicemix.396122.n5.nabble.com/opensaml3-bundle-running-in-OSGi-container-tp5723954p5723955.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.