I am using AEM 6.3 version.
I am trying to access file componentId.jsp located in /etc/test folder from /apps/myWebsite, but I am getting file not found error.
I checked the permissions, it is present.
Could you please suggest?
I was able to do it in AEM 6.2 version.
Solved! Go to Solution.
I am getting
org.apache.sling.scripting.jsp.jasper.JasperException : /apps/myWebsite/components/testComponent.jsp File "/etc/test/componentId.jsp" not found
Yes. Under etc, files are not getting included. Not sure if this is any kind of restriction. I don't see any files other than clienlibs in etc too.
I also tried the same, putting jsp under /apps works.
But can you please suggest on the files in /etc, is there any restriction?
Due to due, we will need to do changes in current implementation.
Thank you all for your comments.
I will make the changes accordingly.
Can we say that it is a limitation in AEM 6.3?
As i already mentioned, in previous versions i was able to access jsp file from /etc folder
I agree with susheel and scott. Together you have to keep in mind that ultimately you have to let go off JSPs. It should have been high time you rewrote everything to Touch UI and sightly.
I agree with Veena. Its better to move on to sightly rather than working on JSP's anymore.
That might be the result of the introduction of a service user into the resource resolving process. In earlier versions the sling script resolver used an admin session, and you were able to include files from the complete repository. Now it is using a service user which can read only on /apps and /libs. That means that you have to place your rendering scripts (JSP, HTL) in /apps and /libs.
That's for security reasons. And I would not change the permissions of that service user!