I created a hook plug-in which hooks to osgi.framework.extensions.
In the hook plug-in, some classes in a third party jar were refered.
The hook plug-in can be compiled properly but got
java.lang.NoClassDefFoundError exception on some classes in the third
party lib at runtime. If I put the source code of the third party lib
into the plug-in to replace the binary jar file, everything worked fine.
I tried buddy classloading strategy but I still got that problem. I
created a separate plug-in which contains the third party jar file and
exports the third part lib packages. I made the hook plug-in require the
lib plug-in and set buddy policy between the them. But the problem was
still there. Any thought?