Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-4582

crowd-rest-plugin includes slf4j-log4j12

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 2.8.4
    • 2.8.4
    • None
    • None

    Description

      Thanks to including atlassian-http which ships slf4j-log4j12, crowd-rest-plugin now bundles slf4j-log4j12 as well.

      This leads to having multiple bindings for slf4j available. Luckily they're both for log4j in practice but it still complicates using a binding other than slf4j:

      error	07-Dec-2015 23:30:50	SLF4J: Class path contains multiple SLF4J bindings.
      error	07-Dec-2015 23:30:50	SLF4J: Found binding in [file:/opt/bamboo-agent/bamboo-agent-home/xml-data/build-dir/CWD-TRUNKMAIN-CRAT/components/crowd-rest/crowd-rest-plugin/target/classes/org/slf4j/impl/StaticLoggerBinder.class]
      error	07-Dec-2015 23:30:50	SLF4J: Found binding in [jar:file:/opt/bamboo-agent/.m2/repository/org/slf4j/slf4j-log4j12/1.7.7/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      error	07-Dec-2015 23:30:50	SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
      error	07-Dec-2015 23:30:50	SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
      error	07-Dec-2015 23:30:50	log4j:WARN No appenders could be found for logger (com.atlassian.crowd.plugin.rest.filter.BasicApplicationAuthenticationFilter).
      error	07-Dec-2015 23:30:50	log4j:WARN Please initialize the log4j system properly.
      error	07-Dec-2015 23:30:50	log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
      

      Attachments

        Issue Links

          Activity

            People

              ckrieger Caspar Krieger (Inactive)
              ckrieger Caspar Krieger (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: