Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Orbit » Apache Commons Logging and Log4J
Apache Commons Logging and Log4J [message #562785] Wed, 19 September 2007 05:16
Stefan Bley is currently offline Stefan Bley
Messages: 23
Registered: July 2009
Junior Member
Hi folks,

In my Eclipse plugins I use openArchitectureWare from the Eclipse Generative
Modeling Tools which itself uses Apache Commons Logging and Log4J from your
bundles.

The problem is that when I'm running my plugins through Run As -> Eclipse
Application, all logging is done by JDK Logger instead of Log4J. This is
done because org.apache.commons.logging can not find org.apache.log4j since
it does not depend on it and thus does not have it in the classpath.

I guess to solve the problem you should make use of the manifest property
"BuddyPolicy" to extend Apache Common's classpath at runtime.

org.apache.commons.logging.jar/META-INF/manifest.mf should contain:
Eclipse-BuddyPolicy: registered

and org.apache.log4j/META-INF/manifest.mf should contain:
Eclipse-RegisterBuddy: org.apache.commons.logging

It would be nice if you could make this work.
Regards,
Stefan
Previous Topic:Contributing org.apache.xmlbeans
Next Topic:Apache Commons Logging and Log4J
Goto Forum:
  


Current Time: Wed Aug 20 02:54:40 EDT 2014

Powered by FUDForum. Page generated in 0.10320 seconds