The exact error is:
org.apache.commons.logging
I have traced into the commons-logging package and comfirmed that it is executing the snip of code identified in the original message.
Main Topics
Browse All TopicsThis is really odd.
I have some jUnit test cases. When i run them under the JBuilder TestRunner and the text TestRunner, everything is fine. When I run them under the Swing TestRunner, they blow up because the logger interface casting check fails.
We are using the common-logging interface and log4j.
The exact method that is failing is org.apache.commons.logging
The exact point of failure is this snip:
if (!Log.class.isAssignableFr
throw new LogConfigurationException
("Class " + logClassName + " does not implement Log");
}
logClass is org.apache.commons.logging
I have confirmed both by code review and by visually checking the instance in the debugger (during a cycle where the test fails) that logClass implements the org.apache.commons.logging
I have confirmed that I am using exactly the same class path for all three test runners.
I have ensured that I only have one version of Log4J and commons-logging on my box.
I get the same results with JRE 1.4.1, and 1.4.2.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
>>This code is part of the apache commons-logging package
Do you mean it's their source!? If so then you need to do
Class classToTest = Class.forName("org.apache.
and then pass it to their code
The trouble is, there are so many logging implementations around, if you are not very careful with packages and f.q. names you can get conflicts.
Here's something odd from the verbose printout - see the last three lines.
It appears that two versions of Log are being loaded (!?)
[Loaded org.apache.commons.logging
[Loaded org.apache.commons.logging
[Loaded java.io.UnsupportedEncodin
[Loaded java.lang.SecurityExceptio
[Loaded org.apache.commons.logging
[Loaded org.apache.commons.logging
[Loaded org.apache.commons.logging
[Loaded org.apache.commons.logging
[Loaded org.apache.commons.logging
[Loaded org.apache.log4j.spi.Appen
[Loaded org.apache.log4j.Category]
[Loaded org.apache.log4j.Logger]
[Loaded org.apache.commons.logging
[Loaded org.apache.commons.logging
[Loaded org.apache.commons.logging
Business Accounts
Answer for Membership
by: CEHJPosted on 2004-04-19 at 10:33:54ID: 10861735
>>they blow up because the logger interface casting check fails
What exactly is the error that shows?