SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [zip:E:/newbea/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/_appsdir_CTS_dir/6ctkfx/war/WEB-INF/lib/slf4j-log4j12-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [zip:E:/newbea/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/_appsdir_CTS_dir/6ctkfx/war/WEB-INF/lib/slf4j-log4j12-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

我的Jar文件用了:slf4j-log4j12-1.5.8.jar,slf4j-api-1.5.8.jar,log4j-1.2.15.jar等jar文件,请指点一下!!!

解决方案 »

  1.   

    看他的源码中错误是在这里抛出的
      private static String STATIC_LOGGER_BINDER_PATH = "org/slf4j/impl/StaticLoggerBinder.class";  private static void singleImplementationSanityCheck() {
        try {
          Enumeration paths = LoggerFactory.class.getClassLoader().getResources(
              STATIC_LOGGER_BINDER_PATH);
          List implementationList = new ArrayList();
          while (paths.hasMoreElements()) {
            URL path = (URL) paths.nextElement();
            implementationList.add(path);
          }
          if (implementationList.size() > 1) {
            Util
                .reportFailure("Class path contains multiple SLF4J bindings.");
          ......看到了吧,意思是说找到了多个org/slf4j/impl/StaticLoggerBinder.class,检查包重复问题吧
      

  2.   

    检查了几遍了并没有发现重复的SLF4J的包,郁闷了很久了!!!!
      

  3.   

    那你就只能把所有的包全部移除重新加载,把项目内的其他用到JAR包的地方停用一次,在重新部署,不过重新加载包时要注意不要一下全部加载,慢慢检查一下现在出错的包要最后最后加载。
      

  4.   

    奇怪的是报错重复的2个jar文件是同一个,把weblogic的临时文件全部删了,重新部署一下吧
      

  5.   

    去掉slf4j-log4j12-1.5.8.jar就会报找不到org.slf4j.impl.StaticLoggerBinder.class,加入就会报上面的错误,
    大家指点下具体问题!!!!
      

  6.   

    这应该只是一个提示,楼主可以忽略他,查了一下,也许是一个bug,描述的网址在这里
    http://news.gmane.org/gmane.comp.java.slf4j.devel
      

  7.   

    谢谢Landor,经查证的确是个BUg
      

  8.   

    我去掉slf4j-log4j12-1.5.8.jar就解决了楼主的问题,没有报错。
      

  9.   

    我去掉slf4j-log4j12-1.5.8.jar就解决了楼主的问题,没有报错。 这个貌似解决不了,我的是JBoss 5.1GA平台部署