Hello,
try { Map<String, Object> param = new HashMap<String, Object>(); param.put(ResourceResolverFactory.SUBSERVICE, "contentReadService"); this.serviceResourceResolver = this.resourceResolverFactory.getServiceResourceResolver(param); if (this.serviceResourceResolver != null) { LOG.debug("New resource resolver found"); } } catch (LoginException e) { LOG.error("error getting resource resolver"); LOG.error(e.getMessage()); }
So my understanding is that the "contentReadService" in the bundle "XXX" should be assigned the user "service_content_read". This user does exist.XXX:contentReadService=service
_content_read
02.06.2015 10:28:51.802 *ERROR* [qtp1426607298-4062] error getting resource resolver
02.06.2015 10:28:51.802 *ERROR* [qtp1426607298-4062] Cannot derive user name for bundle XXX [449] and sub service contentReadService
Solved! Go to Solution.
Views
Replies
Total Likes
Yes, this is a requirement. The user node needs to have the following properties
Note also that the user *must not have* a password.
I'm creating a sling doc patch at the minute, I'll let you know once it is published.
Views
Replies
Total Likes
Also,
I have noticed the "Apache Sling Service User Mapper Service Amendment" factory, which is a much better way of managing these service users.
Tried that, same results.
Thanks,
kyle
Views
Replies
Total Likes
Same issue here...
Was able to solve it by creating a "rep:SystemUser". Looks like it MUST be such a user.
Views
Replies
Total Likes
Kyle Giovannetti wrote...
Also,
I have noticed the "Apache Sling Service User Mapper Service Amendment" factory, which is a much better way of managing these service users.
The User Mapper Service Amendment factory is indeed the right choice. I'm currently gathering information and hoping to publish something by end of the week.
Keep you posted,
Alex
Views
Replies
Total Likes
maggod wrote...
Same issue here...
Was able to solve it by creating a "rep:SystemUser". Looks like it MUST be such a user.
Can you elaborate or post example on how you were using "Apache Sling Service User Mapper Service Amendment" factory. I'm using AEM 6.1 and "resourceResolverFactory.getServiceResourceResolver" is failing with Login Exception.
Views
Replies
Total Likes
Yes, this is a requirement. The user node needs to have the following properties
Note also that the user *must not have* a password.
I'm creating a sling doc patch at the minute, I'll let you know once it is published.
Views
Replies
Total Likes
That was exactly the issue.
I had to create the service user through CRX Explorer.
Thanks,
Kyle
Views
Replies
Total Likes
Alexandre COLLIGNON wrote...
Yes, this is a requirement. The user node needs to have the following properties
jcr:primaryType="rep:SystemUser"
jcr:uuid="<some value>"
rep:principalName="<some value>"
rep:authorizableId="<some value>"
Note also that the user *must not have* a password.
I'm creating a sling doc patch at the minute, I'll let you know once it is published.
I had the same problem but now you solved it with your answer.Thanks!
Views
Replies
Total Likes
Is it possible to create system user without using admin account? What priviledge is needed?
I am using AEM 6.1.
Views
Replies
Total Likes
I solved this on AEM 6.1 .. added notes here:
Views
Replies
Total Likes
I may have to take back.. works only with a "system user" and not with a regular user as i mentioned earlier.
Updated my post here as well:
Views
Replies
Total Likes