SLF4J: slf4j-api 1.6.x (or later) is incompatible with this binding

SLF4J is statically bound based on dependency.

If you are using log4j, you should have the log4j binding in your application.

Even if you are not using slf4j you will need to have a binding (simple or noop) to get it to load properly from a dependent library.


I had to excluded the slf4j depenedencies from the dozer library and add dependencies directly to the POM file.

As mentioned by @Powerlord, i had to add two libraries, one for the core slf4j and the other one is a binding library.

Maven dependencies below.

       <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>1.6.6</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-simple</artifactId>
            <version>1.6.6</version>
        </dependency>

        <dependency>
            <groupId>net.sf.dozer</groupId>
            <artifactId>dozer</artifactId>
            <version>5.5.1</version>
            <exclusions>
                <exclusion>
                    <artifactId>jcl-over-slf4j</artifactId>
                    <groupId>org.slf4j</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>slf4j-api</artifactId>
                    <groupId>org.slf4j</groupId>
                </exclusion>
            </exclusions>
        </dependency>