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

Not able to access etc.clientlibs on publish environment

Avatar

Avatar
Validate 1
Level 2
snehag07
Level 2

Likes

8 likes

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
snehag07
Level 2

Likes

8 likes

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile
snehag07
Level 2

15-11-2017

I am trying to use cq.jquery clientlib which has dependency granite.jquery

used syntax:

<cq:includeClientLib categories="cq.jquery"/>

It should resolve in

<script type="text/javascript" src="/etc.clientlibs/clientlibs/granite/jquery.js"></script>

<script type="text/javascript" src="/etc.clientlibs/clientlibs/granite/utils.js"></script>

<script type="text/javascript" src="/etc.clientlibs/clientlibs/granite/jquery/granite.js"></script>

<script type="text/javascript" src="/etc/clientlibs/foundation/jquery.js"></script>

It is working fine on author env.

But on publish env only <script type="text/javascript" src="/etc/clientlibs/foundation/jquery.js"></script> is loading

I tried adding filter is dispatcher, but it is not working.

Can anyone suggest?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 3
poojac35931336
Level 3

Likes

20 likes

Total Posts

50 posts

Correct Reply

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

Avatar
Validate 1
Level 3
poojac35931336
Level 3

Likes

20 likes

Total Posts

50 posts

Correct Reply

8 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
poojac35931336
Level 3

16-11-2017

Please check if "granite.jquery" clientlib is present in your publish instance . 'Red color' shows, the category defined in the clientlib as a dependency / embedded does not exist.

Answers (5)

Answers (5)

Avatar

Avatar
Give Back 5
Employee
Andrew_Khoury
Employee

Likes

75 likes

Total Posts

93 posts

Correct Reply

33 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile

Avatar
Give Back 5
Employee
Andrew_Khoury
Employee

Likes

75 likes

Total Posts

93 posts

Correct Reply

33 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile
Andrew_Khoury
Employee

20-07-2018

Please try this solution out on your publish instance:

1. Go to http://hostport/system/console/configMgr

2. Search for and open Apache Sling Authentication Service

3. Add these two entries to the sling.auth.requirements

-/etc.clientlibs

-/etc/clientlibs/granite

4. After changing the property, restart the bundle http://host:port/system/console/bundles/org.apache.sling.auth.core

Avatar

Avatar
Level 1
marcelod8875323
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
marcelod8875323
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
marcelod8875323
Level 1

29-06-2018

I was able to access this clientlibs adding permission to user anonymous in publish for /etc

I am using AEM 6.4

Avatar

Avatar
Validate 1
Level 2
snehag07
Level 2

Likes

8 likes

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
snehag07
Level 2

Likes

8 likes

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile
snehag07
Level 2

15-11-2017

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,127 likes

Total Posts

6,116 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,127 likes

Total Posts

6,116 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

15-11-2017

Can you please confirm if the clientslibs are present in publisher instance?

Also, have a look at the comments from the experts in this thread: AEM 6.3 Proxy ClientLibs didn't work via dispatcher to publisher.

~kautuk

Avatar

Avatar
Validate 1
Level 3
poojac35931336
Level 3

Likes

20 likes

Total Posts

50 posts

Correct Reply

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

Avatar
Validate 1
Level 3
poojac35931336
Level 3

Likes

20 likes

Total Posts

50 posts

Correct Reply

8 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
poojac35931336
Level 3

15-11-2017

Can you check once if other nodes are present in your publish environment?

You can also validate it using http://localhost:4503/libs/granite/ui/content/dumplibs.validate.html and see if any dependency is not present.

You can also check the sample output of this using http://localhost:4503/libs/granite/ui/content/dumplibs.test.html?categories=cq.jquery