Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-4658

jboss-integration-testing examples produce slf4j error in log

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • EAP_EWP 5.1.1 ER1
    • EAP_EWP 5.1.0_CR1
    • RESTEasy
    • None
    • Not Required

    Description

      this affects
      https://resteasy.svn.sourceforge.net/svnroot/resteasy/tags/RESTEASY_JAXRS_1_2_GA_CP02/jboss-integration-testing/
      but also exists in EAP 5.1.0.CR1 RESTEasy component

      similar issue is already discussed here: https://jira.jboss.org/browse/JBPAPP-3951

      when trying to run jboss-integration-testing examples, message appears in log

      13:04:27,649 ERROR [STDERR] SLF4J: Class path contains multiple SLF4J bindings.
      13:04:27,649 ERROR [STDERR] SLF4J: Found binding in [vfszip:/.../common/lib/slf4j-jboss-logging.jar/org/slf4j/impl/StaticLoggerBinder.class]
      13:04:27,650 ERROR [STDERR] SLF4J: Found binding in [vfszip:/.../jboss-integration-testing/spring-integration-test/target/spring-integration-test.war/WEB-INF/lib/slf4j-simple-1.5.8.jar/org/slf4j/impl/StaticLoggerBinder.class]
      13:04:27,650 ERROR [STDERR] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

      this is caused by including slf4j-api and slf4j-simple dependencies in the final wars.
      POMs of the examples should be changed so that slf4j dependencies have only test or provided scope
      so that JBoss's own slf4j is used

      they cannot be excluded completely as they're used by test cases. i've tried moving them to the test scope in all examples:

      application-config-test
      basic-integration-test
      ejb-test
      scanning-test
      servlet-mapping-test
      spring-integration-test

      and they worked fine.

      Attachments

        Issue Links

          Activity

            People

              weli@redhat.com Weinan Li
              mlinhard Michal Linhard (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: