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? 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? -- -------------------------------------------------- David Lindelöf Product Developer Adhoco AG Technopark Jagerstrasse 2 8406 Winterthur tel +41-52-203.2903 mob +41-79-415.6641 fax +41-52-203.2904 e-mail [EMAIL PROTECTED] url http://www.adhoco.com weblog http://www.visnet.ch/smartbuildings/ -------------------------------------------------- The memory management on the PowerPC can be used to frighten small children. -- Linus Torvalds --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

