You are probably populating that property after the log4j
system has been initialized.
In order to have it done before, you can either supply it from the command line when starting the server, or use an initialization servlet like in this example. Scroll to Default Initialization under Tomcat and keep in mind that you only need to specify the property instead of the log4j config file.