내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

java.lang.NoClassDefFoundError: javax/net/ssl/HttpsURLConnection

Avatar

Level 1

While embedding Microsoft PowerBI into the AEM(6.4.3) html page and calling ADAL4J Microsoft API to getAccessTokenFromUserCredentials so I am getting below-mentioned error it's happening with AEM running on localhost. The same code working with java main method on eclipse and generating the access token. 

 

SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
context=com.microsoft.aad.adal4j.AuthenticationContext@4bb6d8d9
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: javax/net/ssl/HttpsURLConnection.

 

Thanks in advance if anybody helps me here.

1 답변 개

Avatar

Level 2

Its part of working with OSGi. You need to make sure all of the LIBS are part of a deployed OSGi bundle in the service container. Otherwise, you encounter dependency issues like this.