|Apache Commons Logging and Log4J [message #562785]
||Wed, 19 September 2007 09:16
| Stefan Bley
Registered: July 2009
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/manifest.mf should contain:
and org.apache.log4j/META-INF/manifest.mf should contain:
It would be nice if you could make this work.
Powered by FUDForum
. Page generated in 0.01760 seconds