You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "claudio4j (via GitHub)" <gi...@apache.org> on 2023/10/30 18:21:21 UTC

[I] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder" when running an integration [camel-k]

claudio4j opened a new issue, #4882:
URL: https://github.com/apache/camel-k/issues/4882

   ### What happened?
   
   When run any integration in Camel K 2.1.0 or 2.2.0-SNAPSHOT there is a warning in camel-k-operator log 
   ```
   "camel-k.maven.build","msg":"SLF4J: Failed to load class \"org.slf4j.impl.StaticLoggerBinder\"."}
   "camel-k.maven.build","msg":"SLF4J: Defaulting to no-operation (NOP) logger implementation"}
   "camel-k.maven.build","msg":"SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details."}
   "camel-k.maven.build","msg":"Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)"}
   ```
   
   This message doesn't happen in camel-k-operator 2.0.1.
   
   You can 
   
   ### Steps to reproduce
   
   You can run just the `mvn` command in the camel-k-operator pod
   ```
   kubectl exec -i -t `kubectl get pod -l app=camel-k -oname` -- /usr/share/maven/mvnw/mvnw --version
   
   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.
   Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
   Maven home: /usr/share/maven/wrapper/dists/apache-maven-3.8.6-bin/5f1464e3/apache-maven-3.8.6
   Java version: 17.0.8.1, vendor: Eclipse Adoptium, runtime: /opt/java/openjdk
   Default locale: en_US, platform encoding: UTF-8
   OS name: "linux", version: "5.10.57", arch: "amd64", family: "unix"
   ```
   
   The notable logback and slf4j libraries in maven are
   ```
   /usr/share/maven/wrapper/dists/apache-maven-3.8.6-bin/5f1464e3/apache-maven-3.8.6/lib/jcl-over-slf4j-1.7.36.jar
   /usr/share/maven/wrapper/dists/apache-maven-3.8.6-bin/5f1464e3/apache-maven-3.8.6/lib/logback-classic-1.4.8.jar
   /usr/share/maven/wrapper/dists/apache-maven-3.8.6-bin/5f1464e3/apache-maven-3.8.6/lib/logback-core-1.4.8.jar
   /usr/share/maven/wrapper/dists/apache-maven-3.8.6-bin/5f1464e3/apache-maven-3.8.6/lib/logstash-logback-encoder-7.3.jar
   /usr/share/maven/wrapper/dists/apache-maven-3.8.6-bin/5f1464e3/apache-maven-3.8.6/lib/slf4j-api-1.7.36.jar
   ```
   
   logback 1.4.x is incompatible to slf4j 1.7, it should use slf4j 2.0 instead.
   
   
   ### Relevant log output
   
   _No response_
   
   ### Camel K version
   
   2.2.0-SNAPSHOT


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder" when running an integration [camel-k]

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez closed issue #4882: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder" when running an integration
URL: https://github.com/apache/camel-k/issues/4882


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder" when running an integration [camel-k]

Posted by "claudio4j (via GitHub)" <gi...@apache.org>.
claudio4j commented on issue #4882:
URL: https://github.com/apache/camel-k/issues/4882#issuecomment-1787824562

   I think this issue should not be closed as it was not fixed on camel-k.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder" when running an integration [camel-k]

Posted by "claudio4j (via GitHub)" <gi...@apache.org>.
claudio4j closed issue #4882: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder" when running an integration
URL: https://github.com/apache/camel-k/issues/4882


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org