NoClassDefFoundError for Azure Identity Client in AEM as Cloud Service | Community
Skip to main content
mayank0928
Level 3
November 29, 2021
Solved

NoClassDefFoundError for Azure Identity Client in AEM as Cloud Service

  • November 29, 2021
  • 1 reply
  • 2150 views

Hi Everyone,

 

I have tried to add the maven dependency for Azure Java API, and also embedded these dependencies at bundle classpath and fixed some issues coming in Imported-Packages by excluding them and adding some required packages in Export-Packages, but then it's giving the NoClassDefFoundError for the IdentityClient Class.

 

Maven Dependency in core/POM.XML

 

BND-Maven Plugin Configurations

 

Exception (Servlet where I'm using this to create a new user in Azure AD)

 

Bundle Status

 

 

Can anyone give any suggestions for this?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Vijayalakshmi_S

Hi @mayank0928,

You can make use of maven-bundle-plugin to create/build OSGi bundle out of desired dependency (Azure Identity client in this case)

Ways of including it as part of project code base is available here - https://myaemlearnings.blogspot.com/2021/08/embedding-third-party-dependencyosgi.html

 

1 reply

Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
November 29, 2021

Hi @mayank0928,

You can make use of maven-bundle-plugin to create/build OSGi bundle out of desired dependency (Azure Identity client in this case)

Ways of including it as part of project code base is available here - https://myaemlearnings.blogspot.com/2021/08/embedding-third-party-dependencyosgi.html

 

mayank0928
Level 3
November 30, 2021

Hi @vijayalakshmi_s 

 

Thanks for the blog, I guess I can implement this to fulfill my requirements.

 

Thanks for the help!