Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsDS and TCCL
https://www.eclipse.org/forums/index.php/mv/msg/34586/112154/#msg_112154
I have a question about Declarative Services and the Thread Context
Class Loader. It seems that in methods called by DS like the activate
method of a service component the TCCL is always null. This means that
some 3rd-party libraries that try to use this class loader fail when
executed in an activate method. In our case this concerns especially
JAXB which we use to parse additional configuration files.
Now the question: Is this intended? Or a bug? I skimmed through the OSGi
compendium but did not found a statement. Of course, I can set the TCCL
myself in the activate method before it is needed it (and currently
that seems to work), but is this the way it is supposed to be?