我正在尝试获取页面(CQ 5.4): HTTTP://本地主机:4502的/ etc /复制/ 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'> “最近的请求”我们可以看到渲染过程。
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转储的资源)。它也没有帮助。
答案 0 :(得分:2)
由于Apache Sling Resource Resolver Factory设置中的设置,也可能发生这种情况。我们遇到了同样的问题,发现资源搜索路径的设置缺少所有条目。验证默认条目应具有以下内容:
/aps
/libs
/apps/foundation/components/primary
/libs/foundation/components/primary
答案 1 :(得分:0)
我意识到这已经过了很长时间,但也许对将来的开发人员有用。
如果使用默认的GET Servlet,则需要在Apache Sling Get Servlet中配置一个设置以呈现HTML。可以在Apache Felix Web控制台中找到。您可以在此处访问它:
/system/console/configMgr
然后搜索“ Sling Get servlet”。在配置内部,您需要切换“启用HTML”的配置设置,以选择是否启用默认Get servlet的HTML渲染器。