13 Replies Latest reply on Sep 26, 2008 8:37 AM by Tim Fox

    Annoyance when running unit tests in eclipse

    Tim Fox Master

      Both Clebert and I are getting

      log4j error: setFile(null,true) call failed.
      java.io.FileNotFoundException: /logs/messaging-.log (No such file or directory)
       at java.io.FileOutputStream.openAppend(Native Method)
       at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
       at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
       at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
       at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
       at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:215)
       at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
       at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:220)
       at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:150)
       at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:163)
       at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:425)
       at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:394)
       at org.apache.log4j.xm
      


      When running unit tests in eclipse.

      Clebert suggests this is due to some change made by Andy recently in log4j.xml.

      Any ideas?