jfinal 2.2 升级到 jfinal 3.1 相关的log 出错

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 [sun.misc.Launcher$AppClassLoader@14dad5dc] whereas object of type 

log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [WebAppClassLoader=36333492@22a67b4].

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

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

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

log4j:ERROR [sun.misc.Launcher$AppClassLoader@14dad5dc] whereas object of type 

log4j:ERROR "org.apache.log4j.RollingFileAppender" was loaded by [WebAppClassLoader=36333492@22a67b4].

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

log4j:WARN No appenders could be found for logger (com.jfinal.kit.LogKit).

log4j:WARN Please initialize the log4j system properly.


评论区

JFinal

2017-07-13 17:38

配置错了而已,从本站下载 jfinal demo,里面有一个 log4j.properties 文件,直接 copy 到项目中改一改就好

热门反馈

扫码入社