On Feb 12, 2008, at 5:46 PM, Eric Kolotyluk wrote:

I'm using Eclipse and compilation and execution both use the same
classpath as set in the project properties.

I've double-checked both the compilation and execution classpaths
explicitly and they both match log4j-1.2.15.jar

Any other ideas?

Cheers, Eric


What is the return value of:

Package.getPackage("org.apache.log4j") ? Package.getPackage("org.apache.log4j").getImplementationVersion() : null;

or

Logger.class.getPackage().getImplementationVersion()


Unfortunately there was a production problem with log4j 1.2.15 that will result in Package.getPackage() returning null, however other versions of log4j should return a package object and getImplementationVersion should return the version number.

Also you could try:

Logger.class.getResource("org/apache/log4j/xml/log4j.dtd").toString()

which should give you a jar: URL that has the path name of source for log4j.dtd which is very likely the log4j.jar that provides the implementation of Logger.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to