Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Buddy class loading
Buddy class loading [message #110114] Thu, 15 May 2008 14:45
David  Pérez is currently offline David PérezFriend
Messages: 228
Registered: July 2009
Senior Member
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?
Previous Topic:Remote provisioning
Next Topic:Using equinox.ds in RCP
Goto Forum:
  


Current Time: Wed Oct 27 01:50:02 GMT 2021

Powered by FUDForum. Page generated in 0.01458 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top