Description
Using a bundle with classes that could not be processed (e.g. a class could not be inspected cuased by a NoClassDefFound exception), will result in not loading other classes with command extensions.
We should skip classes that thrown an error, but proceed the other ones.
For example is a DS is optional (using optional requirements) and that one could not be loaded, we should be able to use command extensions that could be loaded.
Two possible fixes:
- handle ClassNotFoundException and NoClassDefFoundError only: https://github.com/maggu2810/karaf/commit/c95b90f2d1a8b09b2f3e048943bd93ea0e7b2077
- catch all exception for the current class: https://github.com/maggu2810/karaf/commit/4de92e86316e577af48b8ebcfd1ac8fb8195a04a