No able to access file located in /etc/test folder | Community
Skip to main content
snehag07
Level 2
August 4, 2017
Solved

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

  • August 4, 2017
  • 18 replies
  • 7228 views

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.
Best answer by smacdonald2008

Yes - it no longer works in 6.3.

18 replies

susheel
Level 5
August 4, 2017

Hi Sneha,

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

Post your errors as well if you find any.    

snehag07
snehag07Author
Level 2
August 4, 2017

/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

susheel
Level 5
August 4, 2017

Are you trying this from admin user ?    

snehag07
snehag07Author
Level 2
August 4, 2017

yes

smacdonald2008
Level 10
August 4, 2017

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

snehag07
snehag07Author
Level 2
August 4, 2017

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

It is loading properly, with no error

smacdonald2008
Level 10
August 4, 2017

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

susheel
Level 5
August 4, 2017

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

smacdonald2008
Level 10
August 4, 2017

I was able to reproduce under etc. However - i put the JSP under apps and it worked:

VeenaVikraman
Community Advisor
Community Advisor
August 4, 2017

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.