Java – log4j: error with Tomcat 6

I wrote a web application in Java EE I use log4j and Tomcat 6.0 28. When I start my application in tomcat, an error message appears on my console every 3 seconds:

log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading,using NOPLoggerRepository.

Does anyone know what this means? log4j. May there be a problem with XML? If it's nessicary, I can publish more code / configuration files

The application works, but I'm a little worried Thank you

Solution

This is Tomcat's log4j 1.2 15 bug. Update to version 1.2 17 or changed to log4j 2, the error message will disappear

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>