Users may face the following issue:
log4j:WARN No appenders could be found for logger (dao.hsqlmanager).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
One reason this can occur is if the log4j.properties or .xml file is not located within the project itself. (This can happen when you ship a tool, where the tool/JAR is in one directory and all the configuration is another directory).
You will then need to specify the path to the log4j.properties or .xml file. In the command line utility,
java -Dlog4j.configuration=file:///path/To/log4j.properties YourProject.jar
or if you have a script to run the tool you can add
-Dlog4j.configuration=file:///path/To/log4j.properties
to the place where you do the equivalent action of the command line version. Not that log4j.configuration
is specified in a URL format, prefixed by file:///
.