java.lang.NoClassDefFoundError

Could not initialize class org.apache.log4j.LogManager


Solutions on the web5399

Solution icon of github
Could not initialize class org.apache.log4j.LogManager

Solution icon of stackoverflow
via Stack Overflow by Kliver Max
, 1 year ago
Could not initialize class org.apache.log4j.LogManager

Solution icon of stackoverflow
Could not initialize class org.apache.log4j.LogManager

Solution icon of stackoverflow
Could not initialize class org.apache.log4j.LogManager

Solution icon of web
Could not initialize class org.apache.log4j.LogManager

Solution icon of coderanch
via Coderanch by S McCormick, 1 year ago
Could not initialize class org.apache.log4j.LogManager

Solution icon of github
Could not initialize class org.apache.log4j.LogManager

Solution icon of stackoverflow
via Stack Overflow by John
, 1 year ago
Could not initialize class org.apache.log4j.LogManager

Solution icon of stackoverflow
via Stack Overflow by ZeKoU
, 1 year ago
Could not initialize class org.apache.log4j.LogManager

Solution icon of stackoverflow
via Stack Overflow by Chris
, 4 months ago
Could not initialize class org.apache.log4j.LogManager

Stack trace

  • java.lang.NoClassDefFoundError: Could not initialize class org.apache.log4j.LogManager at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:88) at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155) at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:131) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685) at org.springframework.web.context.ContextCleanupListener.<clinit>(ContextCleanupListener.java:43) at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:144) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5064) at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5726) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722)

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

Samebug visitor profile picture
Unknown user
Once, 1 year ago