java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

via by Unknown author

This is because SLF4J jar file needs to be added into your application's classpath. In order to fix this issue you have to provide one of the various SLF4J implementation .jar files in the classpath, as well as the interface .jar file.

Expert tip

A few things cause this exception:
1) Check if you have all jars and if they're in the correct path.
2) Your classpath might be broken, you can define it in the command line with java -cp yourClassPath or at your IDE if you're using one.

Solutions on the web

via by Unknown author, 1 year ago
via Oracle Community by babram, 1 year ago
org/slf4j/LoggerFactory[/i] Ok so I added the slf4j libs from, version 1.5.0 but am now getting the following error: [i]JBIFW1136: Binding sun-smtp-binding cannot be initialized. The LifeCycle init() method threw a java.lang.StackOverflowError exception. The exception message is: null java.lang.StackOverflowError
via Stack Overflow by herom
, 1 year ago
java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(
at org.apache.axis.components.logger.LogFactory.getLog(
at org.apache.axis.i18n.ProjectResourceBundle.(
at org.apache.axis.i18n.MessagesConstants.(
at org.apache.axis.utils.Messages.(
at org.apache.axis.wsdl.WSDL2Java.(

Users with the same issue

2 times, 12 hours ago
2 times, 19 hours ago
29 times, 1 day ago
Once, 1 day ago
Once, 1 day ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.