1.3 Frequently Asked Questions

This chapter covers some frequently asked questions and common mistakes made be new users.

log4j:WARN No appenders could be found for logger (...)

I get a

log4j:WARN No appenders could be found for logger (...).
log4j:WARN Please initialize the log4j system properly.

error in console.

Solution:

You need to initialize Log4j properly. You can do this by adding log4j.properties file to your classpath (which is preferred and there is default properties file in JCOP), using manual configuration such as

org.apache.log4j.BasicConfigurator.configure();

or disabling logs entirely with

Logger.getRootLogger().setLevel(Level.OFF);