log4j:WARN No appenders could be found for logger (org.apache.http.client.protocol.RequestAddCookies).
log4j:WARN Please initialize the log4j system properly.

See for more info.

marked as duplicate by IAmMilinPatel, NarendraC, Yu Zhang, Bharat Mane, Kate Paulk Jan 3 '17 at 17:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Add the location of the standard log4j.properties file to the Classpath in Eclipse.


Put BasicConfigurator.configure(); to main method.

Not the answer you're looking for? Browse other questions tagged or ask your own question.