Websphere 5.1 TrLogFactory issue with Spring 2.0
We're using Spring 2.0 and deploying our application under both JBoss and Websphere. When deploying under Websphere we are seeing the following error:
Code:
Caused by: org.apache.commons.logging.LogConfigurationException: The
chosen LogFactory implementation does not extend LogFactory. Please
check your configuration. (Caused by java.lang.ClassCastException:
com.ibm.ws.commons.logging.TrLogFactory)
at
org.apache.commons.logging.LogFactory.createFactory(LogFactory.java:1200)
at org.apache.commons.logging.LogFactory
$2.run(LogFactory.java:994)
This, we think, is because Spring 2.0 uses commons-logging 1.1 but Websphere includes an older, incompatible, version of this code. I've seen numerous posts about deleting a JAR from the Websphere installation but this is not an option for our users.
What can be done to either solve or workaround this issue?