Details

    • Branch Version/s:
      6.2.x, 6.1.x
    • Backported to Branch:
      Committed

      Description

      Into util-java-6.1.0, there are classes relative to slf4j :

      • org.slf4j.impl.StaticLoggerBinder
      • org.slf4j.impl.StaticMarkerBinder
      • org.slf4j.impl.StaticMDCBinder
        Is this normal ?

      While compiling my project, I get :
      SLF4J: The requested version 1.6.4 by your slf4j binding is not compatible with [1.5.5, 1.5.6, 1.5.7, 1.5.8, 1.5.9, 1.5.10, 1.5.11]
      SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.
      SLF4J: Class path contains multiple SLF4J bindings.
      SLF4J: Found binding in [jar:file:/home/rogon/.m2/repository/com/liferay/portal/util-java/6.1.0/util-java-6.1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      SLF4J: Found binding in [jar:file:/home/rogon/.m2/repository/org/slf4j/slf4j-log4j12/1.5.11/slf4j-log4j12-1.5.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

      I have to admit that I'm not a big fan of defining classes with the same namespace of well-known framework / toolkit ...

      I think these 3 classes should be in a separate module that follow slf4j connector convention : slf4j-liferay-1.6.4.jar
      That way, we clearly see that it is a liferay connector and that it needs slf4j 1.6.4.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                14 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 14 weeks, 1 day ago