Eyvallah! Thank u. Let me try Ali Koyuncu
> On 5 Haz 2016, at 01:19, John Blum <[email protected]> wrote: > > Rather than "excluding" the dependency, you rather might add a dependency > management section to your application POM file to ensure that only a single > version of the SLF4J dependencies (and in particular, the slf4j-log4j12 > bridge) is present. For example... > > <dependencyManagement> > <dependencies> > <dependency> > <groupId>org.slf4j</groupId> > <artifactId>slf4j-log4j12</artifactId> > <version>1.7.7</version> > </dependency> > </dependencies> > </dependencyManagement> > > The version is based on the version called out in the > dependency-versions.properties [1] file. > > To my understanding, Apache Geode at version 1.0.0-incubating.M2 had properly > resolved all dependencies and cleaned up the dependency graph/tree so that > only a single version of any dependency is present. Are you using SLF4J in > your application and possibly pulling in a different version? > > Either way, no matter, the "dependencyManagement" section will properly > constrain the SLF4J dependencies. You can declare any other possibly > conflicting dependencies in the dependencyManagement section of your POM file > as well. > > Hope this helps! > > -John > > > [1] > https://github.com/apache/incubator-geode/blob/rel/v1.0.0-incubating.M2/gradle/dependency-versions.properties#L86 > > >> On Sat, Jun 4, 2016 at 8:49 AM, Ali Koyuncu <[email protected]> wrote: >> Hi, everyone, >> >> Everything with my Java code seems all right. However, when I am to deploy >> SLF4J and Log4J, I have the following run-time exception/warning: >> >> "Multiple SLF4J bindings on the classpath" >> >> Well, to get rid of this warning/exception, in pom.xml I have arranged the >> dependencies as follows: >> >> <dependencies> >> >> <dependency> >> <groupId>org.simpleframework</groupId> >> <artifactId>simple-xml</artifactId> >> <version>2.6</version> >> <exclusions> >> <exclusion> >> <groupId>org.slf4j</groupId> >> <artifactId>slf4j-log4j12</artifactId> >> </exclusion> >> </exclusions> >> </dependency> >> >> <dependency> >> <groupId>org.apache.geode</groupId> >> <artifactId>gemfire-core</artifactId> >> <version>1.0.0-incubating.M1</version> >> <exclusions> >> <exclusion> >> <groupId>org.slf4j</groupId> >> <artifactId>slf4j-log4j12</artifactId> >> </exclusion> >> </exclusions> >> </dependency> >> >> </dependencies> >> >> After that, the warning message disappears. On Eclipse, everything seems >> fine. However, when I am to deploy this code in Ubuntu, no log file is >> generated -- I also tried different combinations. >> >> Any comments on how to solve this case will be appreciated. >> >> Thank you in advance. >> >> >> >> -- >> >> With my warm regards, >> >> Ali KOYUNCU > > > > -- > -John > 503-504-8657 > john.blum10101 (skype)
