Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Script not found : Custom Layout is not accessible without login on publisher

Avatar

Avatar
Validate 1
Level 2
rahulpandey0102
Level 2

Likes

5 likes

Total Posts

12 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
rahulpandey0102
Level 2

Likes

5 likes

Total Posts

12 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
rahulpandey0102
Level 2

04-05-2018

Hello,

We have created a custom form layout and kept in /apps/myapp/layouts/ folder. we use this layout in our form template. when we are logged in @ publisher it works fine but if we try to access the page without login it shows Script not found exception for the custom layout - /libs/myapp/layouts/mylayout/mylayout.jsp is not found.

not able to find what is causing this issue. tried giving absolute path as well.

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

04-05-2018

You Pub instance sounds like its configured as an Author - requiring login to access data.

Avatar

Avatar
Validate 1
Level 2
rahulpandey0102
Level 2

Likes

5 likes

Total Posts

12 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
rahulpandey0102
Level 2

Likes

5 likes

Total Posts

12 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
rahulpandey0102
Level 2

04-05-2018

No, It works fine with all other components. Even If i change my forms layout resource type to the Out of the Box layout it works fine.

It is not finding the only layouts which are kept inside /apps.

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

04-05-2018

Is that the only content under /apps that cannot be found.

Avatar

Avatar
Validate 1
Level 2
rahulpandey0102
Level 2

Likes

5 likes

Total Posts

12 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
rahulpandey0102
Level 2

Likes

5 likes

Total Posts

12 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
rahulpandey0102
Level 2

04-05-2018

For Now I can say Yes. we are getting

Could not find script /libs/chassis/layouts/defaultGuideLayout/defaultGuideLayout.jsp

but the actual script is inside /apps .

tried giving absolute path as it was suggested in few help threads. but no luck.

Avatar

Avatar
Validate 1
Level 4
Rima_Mittal
Level 4

Likes

30 likes

Total Posts

82 posts

Correct Reply

17 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
Rima_Mittal
Level 4

Likes

30 likes

Total Posts

82 posts

Correct Reply

17 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
Rima_Mittal
Level 4

04-05-2018

Quick question - Is it that your form template is referring to /apps/myapp/layouts/ and the error you see is '/libs/myapp/layouts/mylayout/mylayout.jsp not found'??

Avatar

Avatar
Validate 1
Level 4
Rima_Mittal
Level 4

Likes

30 likes

Total Posts

82 posts

Correct Reply

17 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
Rima_Mittal
Level 4

Likes

30 likes

Total Posts

82 posts

Correct Reply

17 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
Rima_Mittal
Level 4

04-05-2018

Can you make sure the Apache Sling Resource Resolver Configuration is not modified and it refers to /apps before /libs?

Screen Shot 2018-05-04 at 2.39.08 PM.png

Avatar

Avatar
Validate 1
Level 2
rahulpandey0102
Level 2

Likes

5 likes

Total Posts

12 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
rahulpandey0102
Level 2

Likes

5 likes

Total Posts

12 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
rahulpandey0102
Level 2

05-05-2018

No, We are using default configuration(which looks like same as you shared), even in our local we tried with fresh publisher instance but did not work.
Having doubt, if we have any limitation in overlaying or creating new defaultGuildeLayout. Can we create our own defaultGuildeLayout ?

As things are fine with other custom layouts, only this one is not working.