Not able to access etc.clientlibs on publish environment



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)



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)




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



4. After changing the property, restart the bundle http://host:port/system/console/bundles/