Apache Commons Logging and Log4J [message #562785] |
Wed, 19 September 2007 09:16 |
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
|
|
|
Powered by
FUDForum. Page generated in 0.03087 seconds