【发布时间】:2010-11-04 13:58:04
【问题描述】:
在我的项目中,我使用的是 Hibernate3(取决于 slf4j-1.6)和 RESTeasy(取决于 slf4j-1.5)。两者都不兼容并在运行时出错。
SLF4J: The requested version 1.5.8 by your slf4j binding is not compatible with [1.6]
SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.
Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/String;
at org.slf4j.impl.SimpleLogger.formatAndLog(SimpleLogger.java:222)
at org.slf4j.impl.SimpleLogger.info(SimpleLogger.java:258)
at org.hibernate.annotations.common.Version.<clinit>(Version.java:37)
有解决这个冲突的想法吗?
【问题讨论】:
标签: java hibernate slf4j resteasy