Search code examples
log4jweblogicclassnotfoundexception

Log4j Class missing on Weblogic


I have deployed a war file on Oracle Weblogic. War files contain all the required libraries in WEB-INF/lib. But whenever I am trying to visit my webpage, it gives error of

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

enter image description here


Solution

  • The problem is resolved. One of my custom library using log4j, that one was not able to find log4j. So I created the jar including log4j and its working.