0

Working with selenium + maven project in eclipse. I am facing below warnings:

log4j:WARN No appenders could be found for logger(org.apache.http.client.protocol.RequestAddCookies).

log4j:WARN Please initialize the log4j system properly.

I have tried

  • Adding log4j.properties
  • Corrected jdk version
  • updated pom.xml file with accurate dependancy
  • Ensure that those files are physically available and link in build with correct + valid path
  • cleaned project in eclipse
  • updated all maven dependancies

Anyone has experience and face, please guide/suggest how those can be fixed?

asked Jul 8, 2016 at 7:38
2
  • Please check this out. Commented Jul 8, 2016 at 8:36
  • good to see your quick response. But I have tried those solutions already, No success yet ! Commented Jul 8, 2016 at 9:01

2 Answers 2

1

In Your Project, you have added log4j JAR but in your code you have not used any logs. This Warning can be ignored.

Narendra Chandratre
2,8347 gold badges31 silver badges60 bronze badges
answered Aug 25, 2016 at 12:01
0

I have applied below solution steps -

  1. Remove Proxy

    • Ensure your computer is not using any proxies, connect to open network
  2. Open terminal and hit below commands:

    • rm -rf ~/.m2/repository/antlr
    • rm -rf ~/.m2/repository/aopalliance
    • rm -rf ~/.m2/repository/asm
  3. Remove/delete that particular dependent .JAR from library folder
  4. From terminal navigate to your project root folder and hit:
    • mvn -U clean install
  5. Crosscheck once that dependent all .JAR are visible under .m2 folder. Sometime few of them may not get automatically downloaded, so if not seen pls add those manually

Finally - I got everything working now :)

answered Jul 8, 2016 at 13:36

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.