【发布时间】:2013-12-16 10:45:13
【问题描述】:
我正在尝试获取页面(CQ 5.4): http://localhost:4502/etc/replication/agents.author.html
但是看下一个:
Resource dumped by HtmlRendererServlet
Resource path: /etc/replication/agents.author
Resource metadata: {sling.resolutionPathInfo=.html, sling.resolutionPath=/etc/replication/agents.author}
Resource type: cq:Page
Resource super type: -
Resource properties..
在 'system/console' > 'Recent requests' 我们可以看到渲染过程。
0 (2013-12-16 02:33:09) TIMER_START{Request Processing}
0 (2013-12-16 02:33:09) COMMENT timer_end format is {<elapsed msec>,<timer name>} <optional message>
0 (2013-12-16 02:33:09) LOG Method=GET, PathInfo=/etc/replication/agents.author.html
0 (2013-12-16 02:33:09) TIMER_START{ResourceResolution}
1 (2013-12-16 02:33:09) TIMER_END{1,ResourceResolution} URI=/etc/replication/agents.author.html resolves to Resource=JcrNodeResource, type=cq:Page, superType=null, path=/etc/replication/agents.author
1 (2013-12-16 02:33:09) LOG Resource Path Info: SlingRequestPathInfo: path='/etc/replication/agents.author', selectorString='null', extension='html', suffix='null'
1 (2013-12-16 02:33:09) TIMER_START{ServletResolution}
1 (2013-12-16 02:33:09) TIMER_START{resolveServlet(JcrNodeResource, type=cq:Page, superType=null, path=/etc/replication/agents.author)}
1 (2013-12-16 02:33:09) TIMER_END{0,resolveServlet(JcrNodeResource, type=cq:Page, superType=null, path=/etc/replication/agents.author)} Using servlet org.apache.sling.servlets.get.DefaultGetServlet
1 (2013-12-16 02:33:09) TIMER_END{0,ServletResolution} URI=/etc/replication/agents.author.html handled by Servlet=org.apache.sling.servlets.get.DefaultGetServlet
1 (2013-12-16 02:33:09) LOG Applying Requestfilters
使用 DefaultGetServlet 而不是 Page.jsp(使用 servlet org.apache.sling.servlets.get.DefaultGetServlet)
所有捆绑包都处于活动状态。
Log outputs:
==> request.log <==
17/Dec/2013:01:29:49 -0800 [3677] -> GET /etc/replication/agents.author.html HTTP/1.1
17/Dec/2013:01:29:49 -0800 [3677] <- 200 text/html 3ms
==> access.log <==
<myIp> - admin 17/Dec/2013:01:29:49 -0800 "GET /etc/replication/agents.author.html HTTP/1.1" 200 1232 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36"
==> request.log <==
17/Dec/2013:01:29:50 -0800 [3678] -> GET /favicon.ico HTTP/1.1
==> error.log <==
17.12.2013 01:29:50.332 *INFO* [82.209.214.162 [1387272590327] GET /favicon.ico HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Resource /favicon.ico not found
==> request.log <==
17/Dec/2013:01:29:50 -0800 [3678] <- 404 text/html 6ms
==> access.log <==
<myip> admin 17/Dec/2013:01:29:50 -0800 "GET /favicon.ico HTTP/1.1" 404 393 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36"
什么坏了?为什么会这样?
在捆绑包中,我发现了下一个差异(比较损坏的实例和未损坏的相同实例):
Day CRX Sling - Token Authenticationcom.day.crx.sling.crx-auth-token 2.2.0.54 cq5 Active
Day CRX Sling - Token Authenticationcom.day.crx.sling.crx-auth-token 2.2.0.61 cq5 Active
另外,我的损坏实例上还有一个活动包: 日公报 5 WCM Geometrixx Gocom.day.cq.wcm.cq-wcm-geometrixx-go 5.4.0 关掉它,但它没有帮助。
之后,我在包管理器中上传了 cq-content-5.4.jar,安装它,重新启动系统。 但是对于所有页面,我再次遇到相同的错误(HtmlRendererServlet 转储的资源)。它也没有帮助。
【问题讨论】:
-
在 Felix 控制台中,所有捆绑包都处于活动状态吗?如果是这样,您能否也发布 error.log 文件中的任何错误。
-
所有捆绑包都处于活动状态。
-
默认情况下,这个页面会被Page.jsp和agents.jsp渲染出来(/libs/foundation/components/primary/cq/Page/Page.jsp; /libs/cq/replication/ components/agents/agents.jsp) — 如果您直接浏览这些,它们是否都存在?其他页面是否受到影响?
-
首先感谢您的帮助!我直接浏览了所有这些页面。他们在场。这种情况发生在所有页面上,不仅是 /etc/replication/agents.author.html
-
好的,那么听起来核心 CQ 库文件中缺少或更改了某些内容,如果它找不到任何页面的渲染器 - 我会说检查,1)如果你有作为默认实例安装的捆绑包数量相同(从我在本地看到的 5.6.1 上是 308)——如果没有,有什么区别;如果它看起来确实相同,我会尝试在 CRX 包管理器中重新安装“cq-content-5.x.x.zip”包——不过你必须小心,就好像你在节点下做了任何更改一样包含在过滤器中,您会丢失它们。不过,这个问题开始变得非常本地化。