我有用于发布环境的util页面。 HtmlLibraryManager用于包含ui
<%
HtmlLibraryManager htmlMgr = sling.getService(HtmlLibraryManager.class);
if (htmlMgr != null) {
htmlMgr.writeCssInclude(slingRequest, out, "cq.wcm.edit");
htmlMgr.writeJsInclude(slingRequest, out, "cq.wcm.edit");
}
%>
但有些人要求libs没有加载
/libs/cq/ui/widgets.js
和/libs/cq/ui/rte.js
他们打破了我的页面。
此外,如果我尝试访问http://servername:port/libs/cq/ui/widgets.js
,则会返回错误:
找不到请求的文件。
我怎样才能访问此clientlibs?
使用AEM 6.0。
我在日志文件中发现了以下错误:
23.09.2015 11:03:55.124 *ERROR* [172.18.251.90 [1443020634874] GET /libs/cq/ui/widgets.js HTTP/1.1] com.day.cq.widget.impl.HtmlLibraryManagerImpl Error while saving changes: javax.jcr.RepositoryException: Error during assembly of /libs/c
q/ui/widgets.js. reverting.
23.09.2015 11:03:55.124 *ERROR* [172.18.251.90 [1443020634874] GET /libs/cq/ui/widgets.js HTTP/1.1] com.day.cq.widget.impl.HtmlLibraryManagerImpl Error while sending cached library: javax.jcr.RepositoryException: Error during assembly of
/libs/cq/ui/widgets.js
23.09.2015 11:03:55.125 *ERROR* [172.18.251.90 [1443020634874] GET /libs/cq/ui/widgets.js HTTP/1.1] com.day.cq.widget.impl.HtmlLibraryServlet Cannot create library for /libs/cq/ui/widgets.js
java.io.IOException: Error while sending cached library: javax.jcr.RepositoryException: Error during assembly of /libs/cq/ui/widgets.js