Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

ACS Commons Sitemap Generator error: No renderer for extension xml

Avatar

Community Advisor

AEM 6.3.3.5/RHEL/Core components 2.7.0/ACS-Commons 3.17

 

I have 2 page page resource types, each has the "sling:resourceSuperType" set to "core/wcm/components/page/v2/page".

To generate sitemap on the topmost page of the site, I am using the ACS Commons Sitemap Generator. So, as per the instructions here

https://adobe-consulting-services.github.io/acs-aem-commons/features/sitemap/index.html and 

http://www.flexibledesigns.rs/sitemap-creation/

I created two OSGi configs by the name: com.adobe.acs.commons.wcm.impl.SiteMapServlet.config-site1 and com.adobe.acs.commons.wcm.impl.SiteMapServlet.config-site2 of type: sling:OsgiConfig under the "config" folder, so that they are available both in Author and Publish instances.

Then i have set the properties and their values as directed at https://adobe-consulting-services.github.io/acs-aem-commons/features/sitemap/index.html

    sling.servlet.resourceTypes="[myapp/components/page/home-page]"
    externalizer.domain="publish"
    extensionless.urls="Boolean{true}"
    include.lastmod="{Boolean}false"
    changefreq.properties="[myChangeFreqProperties]"
    priority.properties="[myPriorityProperties]"
    damassets.property="myDAMFoldersProperty"
    damassets.types="[myDAMAllowedMIMETypes]"

Problem is, this does not work on AEM publish for one of the sites.

The difference I noticed is that the <site2-page>.sitemap.xml returns content as text/html, however, <site1-page>.sitemap.xml returns document type as xml. Here are the logs supporting that observation. And for site2, i see the error that there is no xml renderer.

 

What am I missing here?

 

error.log

*ERROR* GET /content/mysite/lob/intl/country/rootpage.sitemap.xml HTTP/1.1] org.apache.sling.servlets.get.impl.DefaultGetServlet No renderer for extension xml, cannot render resource JcrNodeResource, type=mysite/components/structure/country-page, superType=null, path=/content/mysite/lob/intl/country/rootpage/jcr:content

 

request.log

[266280] -> GET /content/mysite/lob/country1/en-us.sitemap.xml HTTP/1.1
[266280] <- 200 text/html 4ms

[491104] -> GET /content/mysite/lob/intl/country2/en-fr.sitemap.xml HTTP/1.1
[491104] <- 200 application/xml 117ms
[491120] -> GET /content/mysite/lob/intl/country2/en-ca.sitemap.xml HTTP/1.1
[491120] <- 200 application/xml 23ms

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

The issue is resolved after creating the OSGi configs from the web console.

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

The issue is resolved after creating the OSGi configs from the web console.

Avatar

Level 2

Hi @Preetpal_Bindra  I am trying to create a site map but facing some  issue can you please guide me, instead of homepage I am using /structure/page