Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java.lang.NoSuchMethodError: org.apache.log4j.Logger

We use ivy to manage a multi project java application, and recently this error started showing up when we do builds. What's causing this?

like image 488
Brad Parks Avatar asked Feb 13 '23 01:02

Brad Parks


1 Answers

This was fixed by adding the following line to the end of the dependencies section in ivy.xml:

<dependencies>
         
  <exclude module="log4j-over-slf4j" /> 
</dependencies>

Why was it an issue?

  • Looks like the log4j bridge for sjf4j has an incomplete implementation
  • This url explains it in more detail.
like image 144
Brad Parks Avatar answered Feb 15 '23 13:02

Brad Parks