Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-12650

jenkins running in Tomcat doesn't initalize slf4j properly


    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: ssh-plugin
    • Labels:
    • Environment:
      jenkins 1.450, tomcat 7.0.23, java 1.6.0-30
    • Similar Issues:


      when running tomcat, the slf4j library isn't correctly initialized, this is not a problem by itself since it simply turns off logging completely for the components that use slf, however if the logging output is needed for a component it would be better to provide the simple logger.

      SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
      SLF4J: Defaulting to no-operation (NOP) logger implementation
      SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

      when I put the necessary jar into the war, the log output becomes this:

      16 [NullIdDescriptorMonitor.verifyId] INFO org.apache.sshd.common.util.SecurityUtils - Trying to register BouncyCastle as a JCE provider
      511 [NullIdDescriptorMonitor.verifyId] INFO org.apache.sshd.common.util.SecurityUtils - Registration succeeded

      so this is used by the sshd module in the default installation.

      Alternatively, the binding for jdk14 logging or log4j could be used (which ever is more fitting for the rest of jenkins).



          alexlehm Alex Lehmann created issue -
          kohsuke Kohsuke Kawaguchi made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Kohsuke Kawaguchi [ kohsuke ]
          Resolution Fixed [ 1 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 143016 ] JNJira + In-Review [ 190390 ]
          ljader Łukasz Jąder made changes -
          Status Resolved [ 5 ] Closed [ 6 ]


            • Assignee:
              kohsuke Kohsuke Kawaguchi
              alexlehm Alex Lehmann
            • Votes:
              1 Vote for this issue
              5 Start watching this issue


              • Created: