java.lang.ClassNotFoundException: org.slf4j.impl.StaticLoggerBinder

Posted by Jagadeesh VP | Posted in

In hibernate this error is common.

Caused by: java.lang.ClassNotFoundException: org.slf4j.impl.StaticLoggerBinder
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)

The hibernate distribution package have slf4j-api-x.x.x.jar file which does not have the impl package.

To avoid this error download slf4j-x.x.x.zip / .gz package from http://slf4j.org/download.html.

In this package you will find slf4j-simple-x.x.x.jar which has this org.slf4j.impl package. Add this jar in your classpath and run your application.

Comments (0)

Post a Comment