Skip to main content

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 09:16
Stefan Bley is currently offline Stefan BleyFriend
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

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/ should contain:
Eclipse-BuddyPolicy: registered

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

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

Current Time: Fri Sep 17 03:13:21 GMT 2021

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

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

Back to the top