AEM 6.1 getServiceResourceResolver not works | Community
Skip to main content
New Participant
October 16, 2015
Solved

AEM 6.1 getServiceResourceResolver not works

  • October 16, 2015
  • 3 replies
  • 1288 views

Hi,

getServiceResourceResolver not work for me, I created new system user, added mappings in org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl, but getServiceResourceResolver throws LoginException.

When i specify existing system user (e.g. projects-service) in getServiceResourceResolver works, but it does not work with my system user.

Could anyone help me how to create system user that will work with my services?


User:

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:rep="internal"
    jcr:primaryType="rep:SystemUser"
    jcr:uuid="98c416ab-ee61-30f2-a8d0-0c13bd39d6c0"
    rep:authorizableId="sevice-user"
    rep:principalName="sevice-user"/>

 

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 kautuk_sahni

Hi 

Please have a look at this StackOverflow post :- http://stackoverflow.com/questions/31350548/resourceresolverfactory-getserviceresourceresolver-throws-exception-in-aem-6-1

I hope this would help you.

Thanks and Regards

Kautuk Sahni

3 replies

kautuk_sahni
kautuk_sahniAccepted solution
Employee
October 16, 2015

Hi 

Please have a look at this StackOverflow post :- http://stackoverflow.com/questions/31350548/resourceresolverfactory-getserviceresourceresolver-throws-exception-in-aem-6-1

I hope this would help you.

Thanks and Regards

Kautuk Sahni

Kautuk Sahni
New Participant
October 16, 2015

Thank you.

found the issue, in .content.xml rep:principalName was sevice-user insted of seRvice-user

smacdonald2008
New Participant
October 16, 2015

We will update the AEM community article for this use case located here: 

https://helpx.adobe.com/experience-manager/using/querying-experience-manager-sling.html