title: log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable
body: <p>I am making a web app using gradle. I used log4j in this app. When I build the project I am getting error...</p>
  
  <ul>
  <li>log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.</li>
  <li>log4j:ERROR The class "org.apache.log4j.Appender" was loaded by</li>
  <li>log4j:ERROR [org.powermock.core.classloader.MockClassLoader@16a40b2] whereas object of type </li>
  <li>log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [sun.misc.Launcher$AppClassLoader@5e3a78ad].</li>
  <li>log4j:ERROR Could not instantiate appender named "stdout".</li>
  </ul>
  
  <p>I still did not find a good answer. And I forgot to say, My project build correctly and show log massages correctly. It doesn't work only on test classes. </p>