请教一个jar冲突的问题

2024-12-20 18:19:58
推荐回答(1个)
回答1:

有a,b两台服务器 其中a报jar冲突,b服务器正常
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/benchmark/hbase/ycsb-0.1.4/hbase-binding/lib/hbase-binding-0.1.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/benchmark/hbase/ycsb-0.1.4/hbase-binding/lib/z.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See h j.org/codes.html#multiple_bindings for an explanation.
SLF4J: slf4j-api 1.6.x (or later) is incompatible with this binding.
SLF4J: Your binding is version 1.5.5 or earlier.
SLF4J: Upgrade your binding to version 1.6.x. or 2.0.x Exception in thread "Thread-1" java.lang.NoSuchMethodError: org.slf4j.impl.StaticLoggerBinder.getSingleton()Lorg/slf4j/impl/StaticLoggerBinder;

如果我将z.jar修改为a.jar,则变成b服务器报jar冲突,a正常。