The class path contains several SLF4J bindings on the grails-app graphical application

I get the following errors on grails run-app

 Oct 20, 2014 6:22:22 PM org.codehaus.groovy.runtime.m12n.MetaInfExtensionModule newModule | Configuring classpath | Error SLF4J: Class path contains multiple SLF4J bindings. | Error SLF4J: Found binding in [jar:file:/Users/minhaj/.m2/repository/ch/qos/logback/logback- classic/1.0.12/logback-classic-1.0.12.jar!/org/slf4j/impl/StaticLoggerBinder.class] | Error SLF4J: Found binding in [jar:file:/Users/minhaj/.m2/repository/org/grails/grails-plugin- log4j/2.4.2/grails-plugin-log4j-2.4.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] | Error SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. | Error SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder] 

However, I exclude grails-plugin-log4j explicitly, but it does not seem to work.

 inherits("global") { excludes 'grails-plugin-log4j', 'log4j' } 

Does anyone encounter a similar problem after adding logback plugin in grails application? (I am using grails 2.4.2)

+5
source share

Source: https://habr.com/ru/post/1205100/


All Articles