java - NoClassDefFoundError:StaticLoggerBinder -


while starting web application , hits following error message :

infos: starting servlet engine: apache tomcat/7.0.53 mai 16, 2014 3:35:16 pm org.apache.catalina.loader.webappclassloader validatejarfile infos:    validatejarfile(c:\users\ayman\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\atomikos\web-inf\lib\geronimo-servlet_2.5_spec-1.2.jar) - jar not loaded. see servlet spec 3.0, section 10.7.2. offending class: javax/servlet/servlet.class     mai 16, 2014 3:35:16 pm org.apache.catalina.loader.webappclassloader validatejarfile     infos: validatejarfile(c:\users\ayman\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\atomikos\web-inf\lib\javax.servlet-api-3.0.1.jar) - jar not loaded. see servlet spec 3.0, section 10.7.2. offending class: javax/servlet/servlet.class     slf4j: class path contains multiple slf4j bindings.     slf4j: found binding in [jar:file:/c:/users/ayman/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/atomikos/web-inf/lib/fabric3-monitor-log-2.0.1.jar!/org/slf4j/impl/staticloggerbinder.class]     slf4j: found binding in [jar:file:/c:/users/ayman/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/atomikos/web-inf/lib/slf4j-log4j12-1.6.6.jar!/org/slf4j/impl/staticloggerbinder.class]     slf4j: see http://www.slf4j.org/codes.html#multiple_bindings explanation.     slf4j: actual binding of type [org.slf4j.impl.staticloggerbinder]     mai 16, 2014 3:35:20 pm org.apache.catalina.core.standardcontext listenerstart     grave: exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.springframework.web.context.contextloaderlistener     java.lang.noclassdeffounderror: org/fabric3/spi/monitor/monitorlocator         @ org.slf4j.impl.staticloggerbinder.getlogger(staticloggerbinder.java:73)         @ org.slf4j.loggerfactory.getlogger(loggerfactory.java:270)         @ org.apache.commons.logging.impl.slf4jlogfactory.getinstance(slf4jlogfactory.java:156)         @ org.apache.commons.logging.impl.slf4jlogfactory.getinstance(slf4jlogfactory.java:132)         @ org.apache.commons.logging.logfactory.getlog(logfactory.java:645)         @ org.springframework.web.context.contextloader.initwebapplicationcontext(contextloader.java:191)         @ org.springframework.web.context.contextloaderlistener.contextinitialized(contextloaderlistener.java:47)         @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4973)         @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5467)         @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)         @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1559)         @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1549)         @ java.util.concurrent.futuretask$sync.innerrun(unknown source)         @ java.util.concurrent.futuretask.run(unknown source)         @ java.util.concurrent.threadpoolexecutor.runworker(unknown source)         @ java.util.concurrent.threadpoolexecutor$worker.run(unknown source)         @ java.lang.thread.run(unknown source)     caused by: java.lang.classnotfoundexception: org.fabric3.spi.monitor.monitorlocator         @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1720)         @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1571)         ... 17 more 

and 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/maven-v4_0_0.xsd">     <modelversion>4.0.0</modelversion>     <groupid>com.gestion</groupid>     <artifactid>projet</artifactid>     <name>tutoriel</name>     <packaging>war</packaging>     <version>1.0.0-build-snapshot</version>     <properties>         <java-version>1.6</java-version>         <org.springframework-version>4.0.3.release</org.springframework-version>         <org.aspectj-version>1.6.10</org.aspectj-version>         <org.slf4j-version>1.6.6</org.slf4j-version>     </properties>     <repositories>     <repository>         <id>prime-repo</id>         <name>primefaces maven repository</name>         <url>http://repository.primefaces.org</url>         <layout>default</layout>     </repository>     </repositories>     <dependencies>         <dependency>             <groupid>com.sun.faces</groupid>             <artifactid>jsf-api</artifactid>             <version>2.2.2</version>         </dependency>         <dependency>             <groupid>com.sun.faces</groupid>             <artifactid>jsf-impl</artifactid>             <version>2.2.2</version>         </dependency>         <!-- decorator -->         <dependency>             <groupid>opensymphony</groupid>             <artifactid>sitemesh</artifactid>             <version>2.4.2</version>         </dependency>       <dependency>         <groupid>com.atomikos</groupid>         <artifactid>transactions</artifactid>         <version>3.9.3</version>     </dependency>     <dependency>         <groupid>org.codehaus.fabric3</groupid>         <artifactid>fabric3-spi</artifactid>         <version>1.9</version>     </dependency>      <dependency>         <groupid>org.codehaus.fabric3</groupid>         <artifactid>fabric3-atomikos-library</artifactid>         <version>2.0.1</version>     </dependency>            <!-- apache ds -->     <dependency>         <groupid>commons-dbcp</groupid>         <artifactid>commons-dbcp</artifactid>         <version>1.2.2</version>     </dependency>         <dependency>             <groupid>javax.servlet</groupid>             <artifactid>javax.servlet-api</artifactid>             <version>3.0.1</version>         </dependency>         <dependency>             <groupid>org.primefaces</groupid>             <artifactid>primefaces</artifactid>             <version>3.5</version>         </dependency>         <!-- spring -->         <dependency>             <groupid>org.springframework</groupid>             <artifactid>spring-context</artifactid>             <version>${org.springframework-version}</version>             <exclusions>                 <!-- exclude commons logging in favor of slf4j -->                 <exclusion>                     <groupid>commons-logging</groupid>                     <artifactid>commons-logging</artifactid>                 </exclusion>             </exclusions>         </dependency>          <dependency>             <groupid>org.springframework</groupid>             <artifactid>spring-webmvc</artifactid>             <version>${org.springframework-version}</version>         </dependency>      <!-- joda time-->         <dependency>             <groupid>joda-time</groupid>             <artifactid>joda-time</artifactid>             <version>2.3</version>         </dependency>     <!-- upload image -->     <dependency>         <groupid>commons-fileupload</groupid>         <artifactid>commons-fileupload</artifactid>         <version>1.2</version >     </dependency>     <dependency>         <groupid>commons-io</groupid>         <artifactid>commons-io</artifactid>         <version>2.4</version>     </dependency>          <!-- aspectj -->         <dependency>             <groupid>org.aspectj</groupid>             <artifactid>aspectjrt</artifactid>             <version>${org.aspectj-version}</version>         </dependency>          <!-- logging -->         <dependency>             <groupid>org.slf4j</groupid>             <artifactid>slf4j-api</artifactid>             <version>${org.slf4j-version}</version>         </dependency>         <dependency>             <groupid>org.slf4j</groupid>             <artifactid>jcl-over-slf4j</artifactid>             <version>${org.slf4j-version}</version>             <scope>runtime</scope>         </dependency>         <dependency>             <groupid>org.slf4j</groupid>             <artifactid>slf4j-log4j12</artifactid>             <version>${org.slf4j-version}</version>             <scope>runtime</scope>         </dependency>         <dependency>             <groupid>log4j</groupid>             <artifactid>log4j</artifactid>             <version>1.2.15</version>             <exclusions>                 <exclusion>                     <groupid>javax.mail</groupid>                     <artifactid>mail</artifactid>                 </exclusion>                 <exclusion>                     <groupid>javax.jms</groupid>                     <artifactid>jms</artifactid>                 </exclusion>                 <exclusion>                     <groupid>com.sun.jdmk</groupid>                     <artifactid>jmxtools</artifactid>                 </exclusion>                 <exclusion>                     <groupid>com.sun.jmx</groupid>                     <artifactid>jmxri</artifactid>                 </exclusion>             </exclusions>             <scope>runtime</scope>         </dependency>          <!-- @inject -->         <dependency>             <groupid>javax.inject</groupid>             <artifactid>javax.inject</artifactid>             <version>1</version>         </dependency>          <!-- servlet -->         <dependency>             <groupid>javax.servlet</groupid>             <artifactid>servlet-api</artifactid>             <version>2.5</version>             <scope>provided</scope>         </dependency>         <dependency>             <groupid>javax.servlet.jsp</groupid>             <artifactid>jsp-api</artifactid>             <version>2.1</version>             <scope>provided</scope>         </dependency>         <dependency>             <groupid>javax.servlet</groupid>             <artifactid>jstl</artifactid>             <version>1.2</version>         </dependency>         <dependency>             <groupid>org.hibernate</groupid>             <artifactid>hibernate-entitymanager</artifactid>             <version>4.0.1.final</version>         </dependency>         <!-- test -->         <dependency>             <groupid>junit</groupid>             <artifactid>junit</artifactid>             <version>4.7</version>             <scope>test</scope>         </dependency>         <dependency>             <groupid>org.hibernate</groupid>             <artifactid>hibernate-validator</artifactid>             <version>4.2.0.final</version>         </dependency>         <dependency>             <groupid>org.springframework</groupid>             <artifactid>spring-tx</artifactid>             <version>4.0.3.release</version>         </dependency>         <dependency>             <groupid>org.springframework</groupid>             <artifactid>spring-orm</artifactid>             <version>4.0.3.release</version>         </dependency>         <dependency>             <groupid>org.springframework</groupid>             <artifactid>spring-beans</artifactid>             <version>4.0.3.release</version>         </dependency>         <dependency>             <groupid>org.springframework</groupid>             <artifactid>spring-core</artifactid>             <version>4.0.3.release</version>         </dependency>         <dependency>             <groupid>org.postgresql</groupid>             <artifactid>postgresql</artifactid>             <version>9.3-1101-jdbc41</version>         </dependency>         <dependency>             <groupid>net.wimpi</groupid>             <artifactid>telnetd-x</artifactid>             <version>2.1.1</version>         </dependency>         <!-- skyway -->     <dependency>         <groupid>org.skywaysoftware</groupid>         <artifactid>skyway-spring-utils</artifactid>         <version>7.1.0</version>     </dependency>     <!-- test spring -->     <dependency>         <groupid>org.springframework</groupid>         <artifactid>spring-test</artifactid>         <version>2.5</version>     </dependency>          <!-- aop dependency -->         <dependency>             <groupid>cglib</groupid>             <artifactid>cglib</artifactid>             <version>2.2</version>         </dependency>         </dependencies>     <build>         <plugins>             <plugin>                 <artifactid>maven-eclipse-plugin</artifactid>                 <version>2.9</version>                 <configuration>                     <additionalprojectnatures>                         <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>                     </additionalprojectnatures>                     <additionalbuildcommands>                         <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>                     </additionalbuildcommands>                     <downloadsources>true</downloadsources>                     <downloadjavadocs>true</downloadjavadocs>                 </configuration>             </plugin>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-compiler-plugin</artifactid>                 <version>2.5.1</version>                 <configuration>                     <source>1.6</source>                     <target>1.6</target>                     <compilerargument>-xlint:all</compilerargument>                     <showwarnings>true</showwarnings>                     <showdeprecation>true</showdeprecation>                 </configuration>             </plugin>             <plugin>                 <groupid>org.codehaus.mojo</groupid>                 <artifactid>exec-maven-plugin</artifactid>                 <version>1.2.1</version>                 <configuration>                     <mainclass>org.test.int1.main</mainclass>                 </configuration>             </plugin>         </plugins>     </build> </project> 

it seems not have fabric3-monitor jars in dependencies. put in pom.xml , should resolve issue.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -