Whats the root cause of Log4JLogger' cannot be found or is not useable?

If you using Maven, you must ensure declare commons-logging and log4j in pom.xml

<dependencies>
    <dependency>
        <groupId>commons-logging</groupId>
        <artifactId>commons-logging</artifactId>
        <version>1.1.3</version>
    </dependency>
    <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.17</version>
    </dependency>
</dependencies>

if you declare only commons-logging you with getting error Log4JLogger cannot be found or is not useable


This was a classpath problem and we did have another version of log4j in the classpath. Thanks Nathan Ryan !