Deployment on Tomcat: Constraint violation when resolving method “org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;”

前端 未结 4 1428
醉梦人生
醉梦人生 2021-02-10 10:46

I\'m deploying Shibboleth IdP 3.1.1 on Tomcat 8.0.22, but I receive this error:

SEVERE [http-nio-8080-exec-13] org.apache.catalina.core.StandardContext.listenerS         


        
4条回答
  •  一整个雨季
    2021-02-10 11:24

    This mean you probably have two different librairies of slf4j in your war

    org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type LoggerFactory; used in the signature
    

    You can use that command to find slf4j dependencies injected in your application.

    mvn dependency:tree -Dverbose -Dincludes=commons-collections
    

    resolving conflicts using the dependency tree

    And Exclude dependancies in Maven:

        
        [...]
        
            
                org.slf4j
                slf4j-api
            
        
    
    

    You can also unzip your war file and look in WEB-INF/lib/ to find the different versions of slf4j that you have.

提交回复
热议问题