Menu

log4j-config.xml not found for emma

2005-01-31
2013-05-09
  • Nobody/Anonymous

    hej,
    while using emma als an ant task I have the following message:
    [emmajava] (...) Caused by:
    Logging service configuration file: log4j-config.xml or log4j-config.properties not found.
    [emmajava] java.lang.NullPointerException

    I have 5 source folders (the first two for domain - domain classes and src, the second two for test - test classes and src, and the last one for all *.jar files - including emma's files).
    The files log4j-config.xml I have in classes's folders.

    Where should I put the log4j-config.xml file that it could be seen by emma?

     
    • Vlad Roubtsov

      Vlad Roubtsov - 2005-02-03

      EMMA does not need log4j-config.xml because it does not use log4j at all.

      So, I would guess the exception is coming from your app code, not from EMMA. I recommend you get your code working without code coverage first and then try <emmajava> after that. Also, when reporting problems, please print full stack traces (run ant -debug ... if necessary) if you want better help.

      Vlad.

       

Log in to post a comment.