Friday, December 27, 2013

java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder

Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder

Problem:  
You need to add SLF4J jar file to your classpath.

Solution: 
Add the SLF4J jar file to your class path or specify the maven dependency in pom.xml file.
<dependency>
           <groupId>org.slf4j</groupId>
           <artifactId>slf4j-api</artifactId>
           <version>1.7.5</version>
</dependency>

Related Posts:

  • CRUD Operations Using HibernateBelow example explains how to perform Create, Read, Update and Delete (CRUD) operations using Hibernate.Tools: Eclipse,MySQLHiberante 4.3.6Project Structure:Step1: Creating the POJO classEmployee.javapackage com.var… Read More
  • Hibernate Object Identity and EqualityThere are several mismatches between the Object oriented system and Relation system. In that one of the important mismatch is Object identity and equality.There are three ways to tackle identity: two ways in java world, and o… Read More
  • Creating Custom Generator class in HibernateIn this post, we are going to learn how to create custom generator class in hibernate.Hibernate supports many built in generator classes like assigned, sequence, increment, identity, native etc. But some requirements the… Read More
  • Creating our Own Hibernate Template classLet us see how to develop our own Hibernate Template class.HibernateTemplate.javaimport java.io.Serializable;import java.util.List;import org.hibernate.HibernateException;import org.hibernate.Query;import org.hibernate.Sessio… Read More
  • Explain about Hibernate Object Life Cycle?In hibernate object life cycle, mainly consists of four states. They are Transient State, Persistent State, Detached State and Removed State.Hibernate Object Life Cycle1. New or Transient State:When ever a… Read More

0 comments: