相关疑难解决方法(0)

SLF4J:无法加载类"org.slf4j.impl.StaticLoggerBinder"

我的应用程序将部署在tcServer和WebSphere 6.1上.此应用程序使用ehCache,因此需要slf4j作为依赖项.结果我将slf4j-api.jar(1.6)jar添加到我的war文件包中.

该应用程序在tcServer中正常工作,但以下错误除外:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Run Code Online (Sandbox Code Playgroud)

但是,当我在WebSphere中部署时,我得到了一个java.lang.NoClassDefFoundError: org.slf4j.impl.StaticLoggerBinder.

我检查了两个应用程序服务器的类路径,没有其他的slf4j jar.

有没有人有任何想法可能会发生在这里?

java websphere slf4j

547
推荐指数
17
解决办法
78万
查看次数

记录器(log4j)没有找到appender?

我已经将log4j放到我的buildpath中,但是当我运行我的应用程序时收到以下消息:

log4j:WARN No appenders could be found for logger (dao.hsqlmanager).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Run Code Online (Sandbox Code Playgroud)

这些警告意味着什么?什么是appender在这里?

java eclipse log4j

341
推荐指数
13
解决办法
60万
查看次数

标签 统计

java ×2

eclipse ×1

log4j ×1

slf4j ×1

websphere ×1