This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Similar to bug 190822. In case one uses Bundle.start() directly, without going through recommended NetBeans Module APIs for enabling modules, one can reach a state, when there are active bundles, with valid classloaders, but the Thread.currentThread().getContextClassLoader() does not see them. This may cause problems with libraries that rely on Thread.contextClassLoader to see everything in the application and want to access some resources via Thread.contextClassLoader.getResource(...).
core-main#06e630216c9e
Merged into release692 as 071aeefc4126
Jarda, could you please help us with verification of this issue in NB 6.9.1 + patch 2 ? Thanks in advance.
There is additional problem with ClassLoader.getResources. That method needs to be overridden as well. I fixed that as core-main#d7dd63584cec (and this fix will be available for NetBeans 7.0). I can confirm that with this additional fix the sample application that I am testing runs fine. It would be nice if I could backport d7dd63584cec to some patch for 6.9.x however.
marking verified, based on comment.
We still should backport changeset d7dd63584cec
Merged to 6.9.2 as releases#5aded2364a10
I can confirm that now the application that used to have problems runs OK.