SLF4J: Class path contains multiple SLF4J bindings.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

SLF4J: Class path contains multiple SLF4J bindings.

Bocar Alpha Ba
Any idea to solve my problem, about choosing logback over slf4j

Thank u in adva,ce

SLF4J: Found binding in [jar:file:/C:/Users/boba/.gradle/caches/modules-2/files-2.1/ch.qos.logback/logback-classic/1.1.1/19e1e2be2670b33c5dcc835550527028dddddcd1/logback-classic-1.1.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J
: Found binding in [jar:file:/C:/Users/boba/.gradle/caches/modules-2/files-2.1/org.slf4j/slf4j-simple/1.7.25/8dacf9514f0c707cbbcdd6fd699e8940d42fb54e/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J
: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
Failed to instantiate [ch.qos.logback.classic.LoggerContext]
Reported exception:
java
.lang.NoSuchMethodError: ch.qos.logback.core.util.Loader.getResourceOccurrenceCount(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/Set;


 
buildscript {

repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
classpath "org.grails.plugins:hibernate5:${gormVersion-".RELEASE"}"
classpath "com.bertramlabs.plugins:asset-pipeline-gradle:2.14.2"
}

}

version "0.1"
group "ppf3"

apply plugin:"eclipse"
apply plugin:"idea"
apply plugin:"war"
apply plugin:"org.grails.grails-web"
apply plugin:"asset-pipeline"
apply plugin:"org.grails.grails-gsp"

repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
}

dependencies {

compile ('org.grails.plugins:logback:0.3.1') {
exclude(module:'slf4j-api')
}
compile ('ch.qos.logback:logback-classic:1.1.1') {
exclude(module:'slf4j-api')
}
compile 'org.grails.plugins:database-migration:3.0.3'
compile group: 'org.postgresql', name: 'postgresql', version: '9.4-1200-jdbc41'
compile "org.grails.plugins:haml:0.3"
compile "org.grails.plugins:export:2.0.0"
compile 'org.grails.plugins:spring-security-core:3.2.0.M1'
compile "org.grails.plugins:excel-export:2.1"
compile "org.springframework.boot:spring-boot-starter-logging"
compile "org.springframework.boot:spring-boot-autoconfigure"
compile "org.grails:grails-core"
compile "org.springframework.boot:spring-boot-starter-actuator"
compile "org.springframework.boot:spring-boot-starter-tomcat"
compile "org.grails:grails-web-boot"
compile "org.grails:grails-logging"
compile "org.grails:grails-plugin-rest"
compile 'org.grails:grails-datastore-rest-client:5.0.0.RC2'
compile "org.grails:grails-plugin-databinding"
compile "org.grails:grails-plugin-i18n"
compile "org.grails:grails-plugin-services"
compile "org.grails:grails-plugin-url-mappings"
compile "org.grails:grails-plugin-interceptors"
compile "org.grails.plugins:cache"
compile "org.grails.plugins:async"
compile "org.grails.plugins:scaffolding"
compile "org.grails.plugins:events"
compile "org.grails.plugins:hibernate5"
compile "org.hibernate:hibernate-core:5.1.5.Final"
compile "org.grails.plugins:gsp"

compile "org.grails.plugins:csv:1+"
compile "org.grails.plugins:excel-export:2.1"
compile 'org.grails.plugins:quartz:2.0.12'
console "org.grails:grails-console"
profile "org.grails.profiles:web"
runtime "org.glassfish.web:el-impl:2.1.2-b03"
runtime "org.apache.tomcat:tomcat-jdbc"
runtime "com.bertramlabs.plugins:asset-pipeline-grails:2.14.2"
testCompile "org.grails:grails-gorm-testing-support"
testCompile "org.grails.plugins:geb"
testCompile "org.grails:grails-web-testing-support"
testRuntime "org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1"
testRuntime "net.sourceforge.htmlunit:htmlunit:2.18"
}

bootRun {
jvmArgs('-Dspring.output.ansi.enabled=always')
addResources = true
}
configurations {
all*.exclude group: 'org.grails', module: 'grails-plugin-log4j'
all*.exclude group: 'org.slf4j', module: 'slf4j-log4j12'
}

assets {
minifyJs = true
minifyCss = true
}

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/39b348f2-0585-44e1-94f6-4d1b8288823c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.