Karl Pauls wrote:
Since Felix is started by the web app, Felix would use that web app's class
loader for any delegation. By having this property, both OSGi bundles should
see same log4j classes as the web app.
Right. I'll try to investigate this a bit more.
Since the parent class loader, which in this case is WebappClassLoader,
has all the log4j classes, a better alternative would be to configure
the OSGi framework to export log4j classes and related classes (like
commons-logging may be) using org.osgi.framework.system.packages system
property. That way, there is still some control over log4j class loading.
Thanks,
Sahoo