Loading Resources with the Context Loader fails with a NullPointerException
问题 I'm just wondering why I cannot load a resource with the Thread context loader in Felix OSGi? Am I not supposed to touch the context loader, am I doing something wrong or is it a bug? I've a super simple bundle with a simple Activator: public class Activator implements BundleActivator { public void start(BundleContext context) throws Exception { System.out.println("Hello World!!"); String resourcePath = "META-INF/mySuperDuperResource.txt"; // works System.out.println(Activator.class