0

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

Alex Riabov
  • 8,655
  • 5
  • 47
  • 48

2 Answers2

0

try adding to weblogic.xml :

 <container-descriptor>
      <prefer-web-inf-classes>true</prefer-web-inf-classes>
 </container-descriptor>

(Although this may cause secondary issues with JSF jar's.)

devwebcl
  • 2,866
  • 3
  • 27
  • 46
0

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.