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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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

Level 1
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 for further details.
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: javax/net/ssl/HttpsURLConnection.


Thanks in advance if anybody helps me here.

1 Reply
Level 2
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.