问答详情
源自:4-3 应用 log4j 调试动态 SQL

log4j 报错

log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.

log4j:ERROR The class "org.apache.log4j.Appender" was loaded by 

log4j:ERROR [org.apache.catalina.loader.StandardClassLoader@6a2bcfcb] whereas object of type 

log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [WebappClassLoader

  delegate: false

  repositories:

    /WEB-INF/classes/

----------> Parent Classloader:

org.apache.catalina.loader.StandardClassLoader@6a2bcfcb

].

log4j:ERROR Could not instantiate appender named "Console".

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

log4j:WARN Please initialize the log4j system properly.

log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.


提问者:慕勒5926719 2017-01-18 18:31

个回答

  • 慕侠3514495
    2017-11-24 23:10:46

    解决了吗?我和你遇到了同样的问题。。

  • 慕勒5926719
    2017-01-19 10:28:48

    有的呀

  • weibo_籁皮尐欣i_0
    2017-01-18 20:23:25

    在lib目录中log4j.jar包有放进去么?