Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Duplicate SLF4J bindings warning

Enthusiast ,
Aug 04, 2022 Aug 04, 2022
Hi, we see this warning in the CF logs. Should we leave the warning or remove one of the JARs? Advice appreciated. The warning only started happening recently, perhaps after a CF update.

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/ColdFusion2018/cfusion/lib/log4j-slf4j-impl-2.17.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/ColdFusion2018/cfusion/lib/slf4j-log4j12-1.7.12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]

1.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 04, 2022 Aug 04, 2022

Hi @tribule 

 

We are aware of this warning and this will have any impact on your server functionality. As of now, you can ignore this message. 

 

Thanks,
Priyank Shrivastava
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 04, 2022 Aug 04, 2022

Thanks, but is there a fix?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 05, 2022 Aug 05, 2022

Though the warning may be ignored, I think it's even better for the ColdFusion Team to fix the issue. Especially because it is simple to fix.

See, for example, https://www.baeldung.com/slf4j-classpath-multiple-bindings

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 05, 2022 Aug 05, 2022

@BKBKI already saw the link you provided but I still do not know which JAR file we should remove/rename based on the error above.

We have these files:

 

Directory of C:\ColdFusion2018\cfusion\lib

04/02/2019 09:05 32,127 slf4j-api-1.7.12.jar
04/02/2019 09:05 8,860 slf4j-log4j12-1.7.12.jar

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 06, 2022 Aug 06, 2022
 

@BKBKI already saw the link you provided but I still do not know which JAR file we should remove/rename based on the error above.

By @tribule

 

Hi @tribule ,

The change I suggested has to be done inside the ColdFusion engine. So, my suggestion, and the accompanying link, are meant for Adobe's ColdFusion Team. Not for you, the user.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 06, 2022 Aug 06, 2022

Understood. I renamed the two files above, error has gone now and logging unaffected so far.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 07, 2022 Aug 07, 2022
 

Understood. I renamed the two files above, error has gone now and logging unaffected so far.


By @tribule

 

You're brave. 🙂 I wouldn't take that risk.

 

The crucial thing is that the ColdFusion Team has to sort out the dependencies.

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 07, 2022 Aug 07, 2022
LATEST

Well, I'll watch it and the first sign of any issues I'll rename them back lol.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 05, 2022 Aug 05, 2022

Removed.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources