AEM 6.4 Whitelist of bundles | Community
Skip to main content
Level 4
September 8, 2018
Solved

AEM 6.4 Whitelist of bundles

  • September 8, 2018
  • 1 reply
  • 6734 views

I was able to dpeloy the bundles and start the application.But the below exception is thrown

org.apache.sling.api.resource.LoginException: Bundle com.xxxxxxx is NOT whitelisted

Please can you provide the steps to white list the bundles.

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 arunpatidar

Hi,

You probably using the  SlingRepository.loginAdministrative() method to get session, you should be using subservice session.

Check this Service Users in AEM

If your bundle still want to use SlingRepository.loginAdministrative() then you can whitelist your bundle from OSGI config manager

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
September 8, 2018

Hi,

You probably using the  SlingRepository.loginAdministrative() method to get session, you should be using subservice session.

Check this Service Users in AEM

If your bundle still want to use SlingRepository.loginAdministrative() then you can whitelist your bundle from OSGI config manager

Arun Patidar
akhilraj
Level 5
August 31, 2021

How we can do in publish instance?