java - SLF4J NoSuchMethodError at Log4JLoggerAdapter -


i having exception:

org.slf4j.helpers.messageformatter.format(ljava/lang/string;ljava/lang/object;ljava/lang/object;)ljava/lang/string; java.lang.nosuchmethoderror     @ org.slf4j.impl.log4jloggeradapter.info(log4jloggeradapter.java:341)     @ org.mortbay.log.slf4jlog.info(slf4jlog.java:67)     @ org.mortbay.log.log.<clinit>(log.java:79)     @ com.goodgamestudios.icosphere.service.filereader.xlsfilereader.extractrowvaluesasstringarray(xlsfilereader.java:79)     @ com.goodgamestudios.icosphere.service.filereader.xlsfilereader.extractheaders(xlsfilereader.java:84)     @ com.goodgamestudios.icosphere.service.filereader.xlsfilereader.getdatafromfile(xlsfilereader.java:40)     @ com.goodgamestudios.icosphere.service.filereaderandwriter.filereaderandwritertest.testreader(filereaderandwritertest.java:101)     @ com.goodgamestudios.icosphere.service.filereaderandwriter.filereaderandwritertest.testexcelreader(filereaderandwritertest.java:50)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:497)     @ org.junit.runners.model.frameworkmethod$1.runreflectivecall(frameworkmethod.java:45)     @ org.junit.internal.runners.model.reflectivecallable.run(reflectivecallable.java:15)     @ org.junit.runners.model.frameworkmethod.invokeexplosively(frameworkmethod.java:42)     @ org.junit.internal.runners.statements.invokemethod.evaluate(invokemethod.java:20)     @ org.junit.internal.runners.statements.runbefores.evaluate(runbefores.java:28)     @ org.junit.rules.externalresource$1.evaluate(externalresource.java:46)     @ org.junit.rules.runrules.evaluate(runrules.java:18)     @ org.junit.runners.parentrunner.runleaf(parentrunner.java:263)     @ org.junit.runners.blockjunit4classrunner.runchild(blockjunit4classrunner.java:68)     @ org.junit.runners.blockjunit4classrunner.runchild(blockjunit4classrunner.java:47)     @ org.junit.runners.parentrunner$3.run(parentrunner.java:231)     @ org.junit.runners.parentrunner$1.schedule(parentrunner.java:60)     @ org.junit.runners.parentrunner.runchildren(parentrunner.java:229)     @ org.junit.runners.parentrunner.access$000(parentrunner.java:50)     @ org.junit.runners.parentrunner$2.evaluate(parentrunner.java:222)     @ org.junit.runners.parentrunner.run(parentrunner.java:300)     @ org.apache.maven.surefire.junit4.junit4testset.execute(junit4testset.java:53)     @ org.apache.maven.surefire.junit4.junit4provider.executetestset(junit4provider.java:123)     @ org.apache.maven.surefire.junit4.junit4provider.invoke(junit4provider.java:104)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:497)     @ org.apache.maven.surefire.util.reflectionutils.invokemethodwitharray(reflectionutils.java:164)     @ org.apache.maven.surefire.booter.providerfactory$providerproxy.invoke(providerfactory.java:110)     @ org.apache.maven.surefire.booter.surefirestarter.invokeprovider(surefirestarter.java:175)     @ org.apache.maven.surefire.booter.surefirestarter.runsuitesinprocesswhenforked(surefirestarter.java:107)     @ org.apache.maven.surefire.booter.forkedbooter.main(forkedbooter.java:68) 

this pom.xml:

<?xml version="1.0" encoding="utf-8"?> <project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">     <modelversion>4.0.0</modelversion>      <groupid>com.goodgamestudios</groupid>     <artifactid>icosphere</artifactid>     <version>1.0</version>     <packaging>war</packaging>      <name>icosphere data platform</name>      <properties>         <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>         <project.build.sourceencoding>utf-8</project.build.sourceencoding>     </properties>      <repositories>         <repository>             <id>mapr-releases</id>             <url>http://repository.mapr.com/maven/</url>             <snapshots>                 <enabled>false</enabled>             </snapshots>             <releases>                 <enabled>true</enabled>             </releases>         </repository>         <repository>             <id>jboss</id>             <name>jboss repository</name>             <url>https://repository.jboss.org/nexus/content/groups/public/</url>         </repository>     </repositories>      <dependencies>         <dependency>             <groupid>com.mapr.hadoop</groupid>             <artifactid>maprfs</artifactid>             <version>4.0.2-mapr</version>             <type>jar</type>         </dependency>         <dependency>             <groupid>com.mapr.hadoop</groupid>             <artifactid>maprfs-core</artifactid>             <version>1.0.3-mapr-2.1.3.2</version>             <type>jar</type>         </dependency>         <dependency>             <groupid>junit</groupid>             <artifactid>junit-dep</artifactid>             <version>4.10</version>             <scope>test</scope>             <type>jar</type>         </dependency>         <dependency>             <groupid>javax</groupid>             <artifactid>javaee-web-api</artifactid>             <version>7.0</version>             <scope>provided</scope>         </dependency>         <dependency>               <groupid>org.primefaces</groupid>               <artifactid>primefaces</artifactid>               <version>5.2</version>           </dependency>                  <dependency>             <groupid>com.opencsv</groupid>             <artifactid>opencsv</artifactid>             <version>3.4</version>         </dependency>         <dependency>             <groupid>org.apache.hadoop</groupid>             <artifactid>hadoop-core</artifactid>             <version>1.2.1</version>         </dependency>         <!--        <dependency>             <groupid>org.apache.hadoop</groupid>             <artifactid>hadoop-common</artifactid>             <version>2.7.0</version>         </dependency>-->         <!--        <dependency>             <groupid>org.apache.hadoop</groupid>             <artifactid>hadoop-auth</artifactid>             <version>2.7.0</version>         </dependency>-->         <!--        <dependency>             <groupid>org.apache.hadoop</groupid>             <artifactid>hadoop-mapreduce-client-core</artifactid>             <version>2.7.0</version>         </dependency>-->         <dependency>             <groupid>org.apache.hbase</groupid>             <artifactid>hbase</artifactid>             <version>0.94.0</version>         </dependency>         <dependency>             <groupid>commons-codec</groupid>             <artifactid>commons-codec</artifactid>             <version>1.10</version>         </dependency>         <dependency>             <groupid>commons-io</groupid>             <artifactid>commons-io</artifactid>             <version>2.4</version>         </dependency>         <dependency>             <groupid>commons-lang</groupid>             <artifactid>commons-lang</artifactid>             <version>2.6</version>         </dependency> <!--        <dependency>             <groupid>commons-logging</groupid>             <artifactid>commons-logging</artifactid>             <version>1.2</version>         </dependency>-->         <dependency>             <groupid>com.google.guava</groupid>             <artifactid>guava</artifactid>             <version>18.0</version>         </dependency>         <dependency>             <groupid>com.google.protobuf</groupid>             <artifactid>protobuf-java</artifactid>             <version>2.6.1</version>         </dependency>         <dependency>             <groupid>io.netty</groupid>             <artifactid>netty</artifactid>             <version>3.10.3.final</version>         </dependency>         <dependency>             <groupid>org.apache.zookeeper</groupid>             <artifactid>zookeeper</artifactid>             <version>3.4.6</version>         </dependency>         <dependency>             <groupid>org.cloudera.htrace</groupid>             <artifactid>htrace-core</artifactid>             <version>2.05</version>         </dependency>         <dependency>             <groupid>org.codehaus.jackson</groupid>             <artifactid>jackson-mapper-asl</artifactid>             <version>1.9.13</version>         </dependency>         <dependency>             <groupid>org.jruby.joni</groupid>             <artifactid>joni</artifactid>                <version>2.1.6</version>         </dependency>         <dependency>             <groupid>log4j</groupid>             <artifactid>log4j</artifactid>             <scope>test</scope>             <version>1.2.17</version>         </dependency>         <dependency>             <groupid>org.slf4j</groupid>             <artifactid>slf4j-api</artifactid>             <version>1.7.5</version>         </dependency>         <dependency>             <groupid>org.slf4j</groupid>             <artifactid>slf4j-simple</artifactid>             <version>1.7.5</version>         </dependency>         <dependency>             <groupid>commons-fileupload</groupid>             <artifactid>commons-fileupload</artifactid>             <version>1.3.1</version>         </dependency>         <dependency>             <groupid>org.jboss.weld.se</groupid>             <artifactid>weld-se</artifactid>             <version>2.2.14.final</version>             <type>jar</type>             <scope>provided</scope>         </dependency>         <dependency>             <groupid>org.apache.geronimo.specs</groupid>             <artifactid>geronimo-ejb_3.1_spec</artifactid>             <version>1.0.2</version>             <scope>provided</scope>         </dependency>         <dependency>             <groupid>org.apache.deltaspike.core</groupid>             <artifactid>deltaspike-core-impl</artifactid>             <version>1.4.1</version>             <scope>test</scope>         </dependency>         <dependency>             <groupid>org.apache.deltaspike.cdictrl</groupid>             <artifactid>deltaspike-cdictrl-weld</artifactid>             <version>1.4.1</version>             <scope>test</scope>         </dependency>         <dependency>             <groupid>jboss</groupid>             <artifactid>jboss-client</artifactid>             <version>4.0.2</version>         </dependency>         <dependency>             <groupid>org.jboss</groupid>             <artifactid>jboss-remote-naming</artifactid>             <version>2.0.4.final</version>         </dependency>         <dependency>             <groupid>org.jboss.xnio</groupid>             <artifactid>xnio-nio</artifactid>             <version>3.3.1.final</version>         </dependency>         <dependency>             <groupid>org.apache.poi</groupid>             <artifactid>poi</artifactid>             <version>3.12</version>         </dependency>         <dependency>             <groupid>org.apache.poi</groupid>             <artifactid>poi-ooxml</artifactid>             <version>3.11-beta2</version>         </dependency> <!--        <dependency>             <groupid>ch.qos.logback</groupid>             <artifactid>logback-classic</artifactid>             <version>1.0.13</version>         </dependency>         <dependency>             <groupid>ch.qos.logback</groupid>             <artifactid>logback-core</artifactid>             <version>1.1.3</version>         </dependency>-->      </dependencies>     <build>         <finalname>${artifactid}</finalname>         <plugins>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-compiler-plugin</artifactid>                 <version>3.1</version>                 <configuration>                     <source>1.8</source>                     <target>1.8</target>                     <compilerarguments>                         <endorseddirs>${endorsed.dir}</endorseddirs>                     </compilerarguments>                 </configuration>             </plugin>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-war-plugin</artifactid>                 <version>2.3</version>                 <configuration>                     <failonmissingwebxml>false</failonmissingwebxml>                 </configuration>             </plugin>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-dependency-plugin</artifactid>                 <version>2.6</version>                 <executions>                     <execution>                         <phase>validate</phase>                         <goals>                             <goal>copy</goal>                         </goals>                         <configuration>                             <outputdirectory>${endorsed.dir}</outputdirectory>                             <silent>true</silent>                             <artifactitems>                                 <artifactitem>                                     <groupid>javax</groupid>                                     <artifactid>javaee-endorsed-api</artifactid>                                     <version>7.0</version>                                     <type>jar</type>                                 </artifactitem>                             </artifactitems>                         </configuration>                     </execution>                 </executions>             </plugin>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-site-plugin</artifactid>                 <configuration>                     <skip>true</skip>                 </configuration>             </plugin>             <plugin>                 <artifactid>maven-assembly-plugin</artifactid>                 <version>2.5.5</version>                 <configuration>                     <skipassembly>true</skipassembly>                 </configuration>             </plugin>             <plugin>                 <artifactid>maven-surefire-plugin</artifactid>                 <executions>                     <execution>                         <id>secondparttestsexecution</id>                         <phase>test</phase>                         <goals>                             <goal>test</goal>                         </goals>                         <configuration>                             <skip>true</skip>                         </configuration>                     </execution>                 </executions>             </plugin>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-source-plugin</artifactid>             </plugin>         </plugins>     </build>  </project> 

after reading lot similiar problems, made sure there no libs logback or common-logging (i tried use before) in lib-folder of wildfly application server using.

what not seeing?

regards , help!

the problem of libraries use in project relies in diferent slf4j version 1 provide.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -