Posts

Showing posts from July, 2017

AEM 6.3 Migration -osgi bundle whitelist error-osgi-service is NOT whitelisted to use SlingRepository.loginAdministrative

Are you facing such errors while migrating to AEM 6.3 : osgi bundle whitelist error-osgi-service is NOT whitelisted to use SlingRepository.loginAdministrative Here is a quick hack but please ensure not to use it in production I believe most of the AEM developers are aware that ResourceResolverFactory.getAdministrativeResourceResolver   and   SlingRepository.loginAdministrative   methods have been defined to provide access to the resource tree and JCR Repository .  Consequently the following methods are being deprecated  ResourceResolverFactory.getAdministrativeResourceResolver ResourceProviderFactory.getAdministrativeResourceProvider SlingRepository.loginAdministrative and alternatively we started using service authentication method  getServiceResourceResolver to get the resourceResolver and then making a systme user and mapping service with user in felix congigurations. like this  < service - name > [: < subservice - name > ]= < authorizable id of