Shivam153, thank you for your example.
It works finally after setting up the system user as advised by Asutosh_Jena_
(Please note that ResourceResolverFactoryService uses in your code example does not exist in sling libraries, at least I was not able to find it)
I have the problem with locating the folder as resource from Sling Component.
The code looks like the following:
The line 36 gives not null resource object but line 37 gives null.
The folder "/apps/sling" exists initially but "/apps/myfolder" was manually created in JCR Repository Browse...
The usecase is very general: we need to implement a kind of singleton - an object that collects the information generated during servlet execution and allows to retrieve this information from another servlet.
We have custom library supporting this functionality in web container environment, so try...
We are trying to implement the functionality similar to provided by javax.servlet.ServletContextListener.
We need to instantiate the object at the moment of context initialization and then access it from servlets
Could somebody help to understand what is the proper way to do that with Sl...
Hello,I'm deploying the WKND demo application in the Cloud manager.The WKND project was uploaded to the main branch of Adobe Cloud Git after being cloned from https://github.com/adobe/aem-guides-wknd The Pipeline fails at the "Build Images" stage with the following log entries:2021/04/28 19:32:45 /t...