Expand my Community achievements bar.

SOLVED

Unable to retrieve Resource from ResourceResolver

Avatar

Level 2

Hi Guys,

I was trying to access a specific resource from my Servlet. Before that I created a system user, then added permission to that user to a specific node. But I think I did a mistake while configuring the user in system console User Mapper Service due to which I am unable to retrieve instance of Resource from ResourceResolver. Please find the screenshot for further info.

Thanks & regards

Tapasaranjan Samanta  pom.JPGServlet.JPGUser Mapper Service.JPGsystem_user.JPG

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Tapass,

You have given wrong OSGI symbolic name. You are mapping sling model packages(as from your screenshot) in the mapper service.

You have to use correct symbolic name to make sure this work. For example below screenshot.

SlingMapping.PNG

And bundle symbolic name can be found here under bundles.

BundleSymbolic.PNG

Use the bundle symbolic name and that should work!!

Hope this helps!!

Thanks,

Ratna Kumar.

View solution in original post

2 Replies

Avatar

Level 10

Try clicking the top row and see if that makes a different. Also for you Sling mapping -  make sure that you are using the OSGi symbolic name. See this article for more details and a working example:

Adobe Experience Manager Help | Querying Adobe Experience Manager 6.4 JCR data

Hope this helps....

Avatar

Correct answer by
Level 10

Hi Tapass,

You have given wrong OSGI symbolic name. You are mapping sling model packages(as from your screenshot) in the mapper service.

You have to use correct symbolic name to make sure this work. For example below screenshot.

SlingMapping.PNG

And bundle symbolic name can be found here under bundles.

BundleSymbolic.PNG

Use the bundle symbolic name and that should work!!

Hope this helps!!

Thanks,

Ratna Kumar.