The DOMConfigurator function configureAndWatch (line 556) (in log4j 1.2.9) only watches a configuration file, and does not perform configuration using the indicated file. Workaround: currently using, DOMConfigurator.doConfigure(InputStream, LoggerRepository) and then watching the config file using a separate api call.
The DOMConfigurator delegates configuration to XMLWatchdog, which will only perform the first configuration upon detecting a file change. XMLWatchdog.doOnChange() calls DOMConfigurator.doConfigure(String,LoggerRepository);
Also: In the base class of XMLWatchdog, FileWatchdog does attempt to perform a first configuration of the indicated file (via checkAndConfigure()), but in my tests, this first configuration fails because FileWatchdog seems not to be able to deal with resources that exist on the classpath (via fileExists, line 68, since FileWatchdog is depending on a java.io.File reference). At any rate, DOMConfigurator.configureAndWatch() does not perform an initial config, and possibly not even a watch
Changed bug summary.
Added unit test in rev 568763. DOMConfigurator.configureAndWatch does appear to perform an initial configuration. Perhaps fixed sometime in the interim.