The log4j package is designed so that the Know how log4j tries to configure itself. This is defined by the log4j.dtd which is located in the log4j distribution jar in the package org.apache.log4j.xml. Log4j tutorial with Tomcat examples . ... log4j.xml log4j log4j ... How is this expected to be run?