osgi bundle whitelist error-osgi-service is NOT whitelisted to use SlingRepository.loginAdministrative
osgi bundle whitelist error-osgi-service is NOT whitelisted to use SlingRepository.loginAdministrative
When we get the below exception @runtime
org.apache.sling.api.resource.LoginException: Bundle AEMWatchFolder.core is NOT whitelisted
at org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderStateFactory.getLoginException(JcrProviderStateFactory.java:203)
at org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderStateFactory.createProviderState(JcrProviderStateFactory.java:136)
at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.authenticate(JcrResourceProvider.java:284)
at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.authenticate(JcrResourceProvider.java:75)
at org.apache.sling.resourceresolver.impl.providers.stateful.ProviderManager.authenticate(ProviderManager.java:161)
use the below steps to resolve the issue.
org.apache.sling.api.resource.LoginException: Bundle AEMWatchFolder.core is NOT whitelisted
at org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderStateFactory.getLoginException(JcrProviderStateFactory.java:203)
at org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderStateFactory.createProviderState(JcrProviderStateFactory.java:136)
at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.authenticate(JcrResourceProvider.java:284)
at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.authenticate(JcrResourceProvider.java:75)
at org.apache.sling.resourceresolver.impl.providers.stateful.ProviderManager.authenticate(ProviderManager.java:161)
use the below steps to resolve the issue.
Easy Solution
1) go to osgi configurations
http://localhost:4502/system/console/configMgr
2) search for keyword whitelist
3) click on add and give a name to config and bundle symbolic name
Comments
Post a Comment