내 커뮤니티 업적 표시줄을 확대합니다.

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

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

AEM 6.1 getServiceResourceResolver not works

Avatar

Level 2

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"/>

 

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Administrator

Hi 

Please have a look at this StackOverflow post :- http://stackoverflow.com/questions/31350548/resourceresolverfactory-getserviceresourceresolver-throw...

I hope this would help you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

원본 게시물의 솔루션 보기

3 답변 개

Avatar

정확한 답변 작성자:
Administrator

Hi 

Please have a look at this StackOverflow post :- http://stackoverflow.com/questions/31350548/resourceresolverfactory-getserviceresourceresolver-throw...

I hope this would help you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Level 2

Thank you.

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

Avatar

Level 10

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