Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4606

Plugin dependencies are not available for initialization java.util.logging

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 2.0.11, 2.2.1, 3.0-alpha-6, 3.0-alpha-7
    • None
    • Class Loading, Dependencies
    • None

    Description

      It seems that the classloader cannot find dependencies declared by Maven. After java.util.logging is parsed the logging handlers are inizialized lazy. The first call to java.util.logging.Logger.getLogger fails with a ClassNotFoundException: org.slf4j.bridge.SLF4JBridgeHandler

      I added a sample project (jersey produces the JUL-Output) and the Maven-debug-output as attachment. I invoked maven with following command line:
      mvn -X jetty:run -Djava.util.logging.config.file=.\src\main\resources\logging.properties -Dlog4j.configuration=file:.\src\main\resources\log4j.properties >maven.out 2>&1

      The project deployed to a Tomcat with has the same slf4j-setup works fine.

      Attachments

        1. rest-demo.zip
          5 kB
          Johannes Barop
        2. maven.out
          112 kB
          Johannes Barop

        Activity

          People

            bentmann Benjamin Bentmann
            johbar Johannes Barop
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: