View RSS Feed

My Java Tips

java.lang.NoClassDefFound Error: org/apache/log4j/Layout

Rate this Entry
by , 05-21-2011 at 10:22 PM (2512 Views)
You might have seen the following exception:

Java Code:
java.lang.NoClassDefFoundError: org/apache/log4j/*
It may mean that log4j is not in your class path or you are using some outdated version of log4j.

Get latest copy of log4j and put it in your class path. If JSP caused this, then put the log4j jar into WEB-INF/lib directory. Restart your application server (say Tomcat) and it should work now.

Get latest version of log4j from:
Apache log4j 1.2 - Download Apache log4j 1.2

Currently log4j 1.2.15 is available.

Submit "java.lang.NoClassDefFound Error: org/apache/log4j/Layout" to Facebook Submit "java.lang.NoClassDefFound Error: org/apache/log4j/Layout" to Digg Submit "java.lang.NoClassDefFound Error: org/apache/log4j/Layout" to del.icio.us Submit "java.lang.NoClassDefFound Error: org/apache/log4j/Layout" to StumbleUpon Submit "java.lang.NoClassDefFound Error: org/apache/log4j/Layout" to Google

Categories
Frameworks

Comments