Thanks for the replies.
The problem (still not resolved on Windows!) was that I didn't have a log4j configuration file.
Once I created that, logging and rollover worked as expected .. on the Mac.
Yet, on Windows, the same code throws hundreds of JNDI erors like these:
In the log4j2.properties file, I read the system environment variable for the log directory like this:
property.basePath = ${sys:LOG_DIR}
Again, this works on Mac. It also creates the log file itself on Windows (so it seems it's getting the right log directory from the environment variable on Windows), but then on Windows it fills the log with hundreds of JNDI errors like I posted above.
I've also tried a hard-coded full path to the log directory on Windows, but I get the same hundreds of JNDI errors.
How can this work perfectly on the Mac but not at all on Windows using the exact
Tomcat and WAR file?
Baffling!!!
Suggestions?
Thanks,
-- mike