Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Ignite 1
Level 1
dilipr77149023
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
View profile

Avatar
Ignite 1
Level 1
dilipr77149023
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
View profile
dilipr77149023
Level 1

01-01-2020

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.

Replies

Avatar

Avatar
Give Back 5
Level 2
zonroc
Level 2

Likes

7 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile

Avatar
Give Back 5
Level 2
zonroc
Level 2

Likes

7 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile
zonroc
Level 2

01-01-2020

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.