If you are interested in knowing where log4j is looking for configuration files, try setting the system property log4j.debug.
<java classname="Hello" fork="true">
<sysproperty key="log4j.debug" value="true" />
<classpath>
…
</classpath>
</java>
This will print information about stderr where it searches for configuration files. It is briefly mentioned here in manual .
source
share