java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory


Samebug tips

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.


9 months ago
Expert tip

If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.


7 months ago
Expert tip

Solutions on the web

Solution icon of web
org/slf4j/LoggerFactory

Solution icon of stackoverflow
via Stack Overflow by herom
, 10 months ago
org/slf4j/LoggerFactory

Solution icon of stackoverflow
org/slf4j/LoggerFactory

Solution icon of stackoverflow
via Stack Overflow by kpa_robor
, 2 weeks ago
org/slf4j/LoggerFactory

Solution icon of web
via broadleafcommerce.org by Unknown author, 1 year ago
org/slf4j/LoggerFactory

Solution icon of web
org/slf4j/LoggerFactory

Solution icon of web
org/slf4j/LoggerFactory

Solution icon of web
org/slf4j/LoggerFactory

Solution icon of web
via hivmr.com by Unknown author, 1 year ago
org/slf4j/LoggerFactory

Solution icon of github
org/slf4j/LoggerFactory

Stack trace

java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
	at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155)
	at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:290)
	at org.apache.axis.components.logger.LogFactory.getLog(LogFactory.java:37)
	at org.apache.axis.i18n.ProjectResourceBundle.<clinit>(ProjectResourceBundle.java:53)
	at org.apache.axis.i18n.MessagesConstants.<clinit>(MessagesConstants.java:32)
	at org.apache.axis.utils.Messages.<clinit>(Messages.java:36)
	at org.apache.axis.wsdl.WSDL2Java.<clinit>(WSDL2Java.java:112)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 7 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 5 days ago
Once, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 7 months ago
2476 more bugmates