I solved this one on my own (after getting zero help from the list). The problem is that log4j-core.jar needs to be in the same classloader, or a parent of the classloader, that contains commons-logging.jar. In my case, a little re-ordering solved the problem (once I understood it).
