Expand my Community achievements bar.

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

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

AEM 6.4 Whitelist of bundles

Avatar

Level 4

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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

Screen Shot 2018-09-08 at 3.55.41 PM.png

Arun Patidar

AEM LinksLinkedIn

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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

Screen Shot 2018-09-08 at 3.55.41 PM.png

Arun Patidar

AEM LinksLinkedIn

Avatar

Level 6

How we can do in publish instance?