Whats the root cause of Log4JLogger' cannot be found or is not useable?
apache-commons-logging, java, log4j
Solution
This was a classpath problem and we did have another version of log4j in the classpath. Thanks Nathan Ryan !
Problem
I have commons-logging.jar (v1.0.4) and log4j-1.2.8.jar in the classpath and getting following run-time error: ``` Caused by: org.apache.commons.logging.LogConfigurationException: User-specified log class 'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is not useable. at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:874) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685) ```