+ -
当前位置:首页 → 问答吧 → jboss 6.0 和 struts 2 搭建的环境无法使用slf4j

jboss 6.0 和 struts 2 搭建的环境无法使用slf4j

时间:2011-12-03

来源:互联网

14:07:24,843 ERROR [STDERR] SLF4J: Class path contains multiple SLF4J bindings.

14:07:24,843 ERROR [STDERR] SLF4J: Found binding in [vfs:/D:/jboss-6.0.0.Final/common/lib/slf4j-jboss-logmanager.jar/org/slf4j/impl/StaticLoggerBinder.class]

14:07:24,843 ERROR [STDERR] SLF4J: Found binding in [vfs:/D:/jboss-6.0.0.Final/server/default/deploy/quan_cs.war/WEB-INF/lib/slf4j-log4j12-1.6.0.jar/org/slf4j/impl/StaticLoggerBinder.class]

14:07:24,843 ERROR [STDERR] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

14:07:25,031 ERROR [STDERR] log4j:WARN No appenders could be found for logger (com.opensymphony.xwork2.config.providers.XmlConfigurationProvider).

14:07:25,031 ERROR [STDERR] log4j:WARN Please initialize the log4j system properly.

作者: wonka438   发布时间: 2011-12-03

试试将你的包换为最新的

作者: xishuixixia   发布时间: 2011-12-03

看看报错信息就知道是包冲突,你的工程中有多个slf4j的包

Class path contains multiple SLF4J bindings.

这句话的翻译过来就是:Class 路径下包含多个SLF4J绑定

你试着去掉其他的slf4j的包

作者: dzfking007   发布时间: 2011-12-03