No able to access file located in /etc/test folder | Community
Skip to main content
snehag07
Level 2
Aug 4, 2017 7:45 AM UTC
Solved

No able to access file located in /etc/test folder

Hi,

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Aug 10, 2017 2:20 PM UTC

Yes - it no longer works in 6.3.

18 replies

susheel
Level 5
Aug 4, 2017 2:31 PM UTC

Even I tried it gives not found error for some reason in 6.3.

Translate
smacdonald2008
Level 10
Aug 4, 2017 2:30 PM UTC

I will try this on my end - see if this occurs!

Translate
snehag07
snehag07Author
Level 2
Aug 4, 2017 1:02 PM UTC

I tried to include <%@include file="/libs/foundation/global.jsp"%>

It is loading properly, with no error

Translate
smacdonald2008
Level 10
Aug 4, 2017 12:08 PM UTC

Have you tried other files in other JCR locations. Try ruling out this issue is only applicable to this location.

Translate
snehag07
snehag07Author
Level 2
Aug 4, 2017 8:29 AM UTC

yes

Translate
susheel
Level 5
Aug 4, 2017 8:27 AM UTC

Are you trying this from admin user ?    

Translate
snehag07
snehag07Author
Level 2
Aug 4, 2017 8:14 AM UTC

/apps/myWebsite/components/testComponent.jsp

<%@include file="/libs/foundation/global.jsp"%>

<%@include file="/etc/test/componentId.jsp"%>

<some code>

/etc/test/componentId.jsp

<%@include file="/libs/foundation/global.jsp"%>

<some code>

I am getting

org.apache.sling.scripting.jsp.jasper.JasperException : /apps/myWebsite/components/testComponent.jsp File "/etc/test/componentId.jsp" not found

Translate
susheel
Level 5
Aug 4, 2017 8:03 AM UTC

Hi Sneha,

How are you trying to access? Can you post you code here.

Post your errors as well if you find any.    

Translate