logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43282] Add OSGi packaging info to log4j and companions
Date Thu, 05 Aug 2010 20:11:44 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=43282

--- Comment #12 from Craig Ziesman <radiofreedenver@gmail.com> 2010-08-05 16:11:42 EDT
---
My team has created an OSGi friendly version of Log4j. Unfortunately, it's not
as simple as adding the right headers to the manifest because there are
classloader issues when using custom layouts or appenders.

Fortunately, the fixes were not too hard. The Loader.loadClass() method in
org.apache.log4j.helpers had to be updated to use a bundle context class
loader, if available, and a bundle activator class had to be created to provide
access to the bundle context class loader.

We used the BND tool to generate the bundle with the appropriate manifest
entries.

I have attached the modified/new files for your review.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message