破坏的Adobe CQ页面呈现

问题描述 投票:0回答:2

我想获取页面(CQ 5.4):htttp:// 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..

在“系统/控制台”>“最近的请求”中,我们可以看到渲染过程。

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

此外,我在破碎的实例上还有一个更活跃的捆绑:Day Communique 5 WCM Geometrixx Gocom.day.cq.wcm.cq-wcm-geometrixx-go 5.4.0将其关闭,但它没有帮助。

之后我在包管理器中上传了cq-content-5.4.jar,安装它,重启系统。但同样,我对所有页面都有相同的错误(由HtmlRendererServlet转储的资源)。它也没有帮助。

adobe cq5 wcm
2个回答
2
投票

由于Apache Sling Resource Resolver Factory设置中的设置,也可能发生这种情况。我们遇到了同样的问题,发现资源搜索路径的设置缺少所有条目。验证默认条目应具有以下内容:

/aps
/libs
/apps/foundation/components/primary
/libs/foundation/components/primary

0
投票

我意识到这很久以后,但它可能对未来的开发人员有用。

如果使用默认的GET servlet,则需要在Apache Sling Get Servlet中配置一个设置以呈现HTML。这可以在Apache Felix Web控制台中找到。你可以在这里访问它:

/system/console/configMgr

然后搜索“Sling Get servlet”。在配置中,您需要切换“启用HTML”的配置设置,以选择是否启用默认Get servlet的HTML呈现器。

© www.soinside.com 2019 - 2024. All rights reserved.