Hi,

I'm trying to use SLF4J like this:

        private static Logger slf4jLogger =  
                LoggerFactory.
                getLogger(Filter.class);

Resulting in this exception:
failed; nested exception is java.lang.NoSuchMethodError: 
org.apache.log4j.Logger.log(Ljava/lang/String
;Lorg/apache/log4j/Level;Ljava/lang/Object;Ljava/lang/Throwable;)V

If I instead use a logger defined with log4j everything works fine:

        private static Logger log4jLogger = 
                Logger.
                getLogger(
                        Filter.class);

Any ideas one why the exception occurs.  My dependencies look like this:

<!-- SLF4J  -->
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j13</artifactId>
            <version>1.0.1</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>1.5.5</version>
        </dependency>
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.9</version>
        </dependency>        
<!-- SLF4J  -->

TIA,
Ole






_______________________________________________
user mailing list
[email protected]
http://www.slf4j.org/mailman/listinfo/user

Reply via email to