AEM 6.5.15 - which version of SLF4J is compatiable | Adobe Higher Education
Skip to main content
Kamal_Kishor
Community Advisor
Community Advisor
August 27, 2024
해결됨

AEM 6.5.15 - which version of SLF4J is compatiable

  • August 27, 2024
  • 2 답변들
  • 952 조회

I am unable to use slf4j version 2.0.16 with AEM 6.5.15 (Java 11) By default the version of slf4j-api is 1.7.32 as I can see in OSGi Bundles.

I need to use log4j 2.x and also slf4j 2.x in order to use lambda expression in log statements. Even if I update the version in pom.xml, the slf4j version doesn't change, it still remains 1.7.32.

If I forcefully install the version 2.x, my instance becomes un-usable.

What could be the reason for this?

이 주제는 답변이 닫혔습니다.
최고의 답변: arunpatidar

Hi @kamal_kishor 
Please check below article if this help

https://stackoverflow.com/questions/30045873/log4j2-api-cannot-find-log4j2-core-in-osgi-environment

 

Below screenshot just to show the log4j version

 

 

2 답변

arunpatidar
Community Advisor
Community Advisor
August 27, 2024

Hi @kamal_kishor 
Please check below article if this help

https://stackoverflow.com/questions/30045873/log4j2-api-cannot-find-log4j2-core-in-osgi-environment

 

Below screenshot just to show the log4j version

 

 

Arun Patidar
Kamal_Kishor
Community Advisor
Kamal_KishorCommunity Advisor작성자
Community Advisor
September 16, 2024

There was some issue with my local instance it seems. For anyone else having similar issue can try the response above.

thanks.

kautuk_sahni
Community Manager
Community Manager
September 13, 2024

@kamal_kishor Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni