java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

March 20th, 2009

Applies to:
DBUnit, SLF4J

Description:
Occurs when using DBUnit

Cause:
Since version 2.2.1, DbUnit uses SLF4J for logging purposes. So probably SLF4J is missing.

admin JAVA-DBUnit

  1. admin
    March 20th, 2009 at 10:28 | #1

    You must therefore download SLF4J and include slf4j-api-*.jar and the jar corresponding to your favourite logging library in your classpath (e.g. slf4j-log4j12-*.jar for Log4j or slf4j-jcl-*.jar for commons-logging).

  1. No trackbacks yet.