SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". error on jenkins only

719 views
Skip to first unread message

80Vikram

unread,
May 2, 2016, 10:43:26 AM5/2/16
to Serenity BDD Users Group
Hi All,

I'm trying to run jenkins job which works perfectly locally with below pom.xml

<properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <serenity.version>1.1.31</serenity.version>
        <serenity.maven.version>1.1.31</serenity.maven.version>
        <serenity.cucumber.version>1.1.6</serenity.cucumber.version>
    </properties>


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


but failing while running through jenkins with error

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.


Per this tried to fix but didn't help.

I'm not understanding what's happening wrt Jenkins.

Kindly help

Thanks,
Vikram


80Vikram

unread,
May 2, 2016, 10:54:24 AM5/2/16
to Serenity BDD Users Group

  
my project pom.xml is exactly similar to serenity-core/serenity-smoketests/pom.xml
 
But stil getting error only in case of Jenkins job
 

Sampathkumar S

unread,
May 4, 2016, 9:40:39 AM5/4/16
to Serenity BDD Users Group
Use same versions of slf4j-api and slf4j-simple.
Reply all
Reply to author
Forward
0 new messages