java.lang.NoClassDefFoundError: org/apache/log4j/Layout

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

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.


you can change your scala version to 2.11.11

Solutions on the web

via Google Groups by Unknown author, 11 months ago
java.lang.ClassNotFoundException: org.apache.log4j.Layout
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at org.opendedup.sdfs.Config.parseSDFSConfigFile(
at org.opendedup.sdfs.servers.SDFSService.start(
at fuse.SDFS.MountSDFS.setup(
at fuse.SDFS.MountSDFS.init(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(

Users with the same issue

2 times, 2 days ago
2 times, 2 days ago
29 times, 3 days ago
Once, 3 days ago
Once, 3 days ago

Write tip

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