David Lindelöf wrote:
Hi Richard,

On Wed, 2007-08-15 at 10:22 -0400, Richard S. Hall wrote:
The class loader of the Runnable implementation class that you register is the one that will be used to load any classes that your Runnable implementation uses. So, assuming that your Runnable implementation class is from your bundle, then it will be loaded from your bundle class loader, which has access to everything on your bundle class path...

That's also what I would assume, but Felix throws a NoClassDefFoundError
when running the shutdown hooks. Explicitly exporting the package
containing the offending class solves the problem. The package is part
of an embedded jarfile that's declared on the bundle's classpath.

Any ideas?

I guess I missed the "explicitly exporting the package...solves the problem" part when I first read this message...

That is odd. Hmm.

If you can boil it does to a simple use case, I can try to look at it.

-> richard

Kind regards,

David

-> richard

David Lindelöf wrote:
Dear all,

When a bundle registers a Runnable as a shutdown hook, must all classes
used when running that thread have been exported by the bundle? In other
words, which classes are on the "classpath" of the thread that runs that
Runnable?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to