| Buddy class loading [message #110114] |
Thu, 15 May 2008 10:45 |
Eclipse User |
|
|
|
Hi,
After having read
http://wiki.eclipse.org/index.php/Context_Class_Loader_Enhan cements, I
have tried Buddy class loading for solving a problem with log4j.
Log4j is packaged in a bundle whose ID is
com.springsource.org.apache.log4j.
Log4j needs to load custom appenders from 2 other bundles, say, A, B.
In MANIFEST.MF of Log4j, I have placed this:
Bundle-SymbolicName: com.springsource.org.apache.log4j
Eclipse-BuddyPolicy: registered
In MANIFEST.MF of plugins A and B:
Eclipse-RegisterBuddy: com.springsource.org.apache.log4j
Require-Bundle: com.springsource.org.apache.log4j
When loading the log4j config., it fails to load any class from plugin A
or B.
It should work from the documentation, but don't know how to debug it.
Any clue please?
|
|
|
Powered by
FUDForum. Page generated in 0.02637 seconds