log4j-WARN No appenders could be found for logger

 FAQ > Errors > log4j-WARN No appenders could be found for logger

Error

log4j:WARN No appenders could be found for logger
(org.activemq.transport.tcp.TcpTransportChannel).
log4j:WARN Please initialize the log4j system properly.

Solution

You have not initialised log4j properly. Try reading the online log4j manual or by adding a log4j.properties file to your classpath (to a directory which is on the classpath to be precise).

Apache, ActiveMQ, Apache ActiveMQ, the Apache feather logo, and the Apache ActiveMQ project logo are trademarks of The Apache Software Foundation. Copyright © 2024, The Apache Software Foundation. Licensed under Apache License 2.0.