Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

regarding sitemap schedular


Level 3

Hi all,
i am using schedular to generate sitemap,but I am not able to adapt ca-config at the time of schedular,

But in case of All-on-demand it working,
Please help me to resolve this problem.


Topics help categorize Community content and increase your ability to discover relevant content.

2 Replies


Level 3

HI @Himanshu_Singhal,
So I need to create sitemap for multi site,

public String getSiteUrl(Resource resource) {
final GlobalConfiguration globalConfiguration = resource.adaptTo(ConfigurationBuilder.class)
return StringUtils.isNotBlank(globalConfiguration.siteHostUrl()) ? globalConfiguration.siteHostUrl() : "";

This is the output with schedular


and without schedular it's working fine


here is my ca-config




Community Advisor

Hi @neerajsankalia 


Can you tell or add screenshot here that how are you getting the resource which you are passing to addResource Method?





Community Advisor

Can you check which resource is passed to the method while calling the from scheduler ?

Check if both the resources are same in On-demand and from scheduler.




Community Advisor

Below thread explains on the permissions that needs to /conf folder, could you please check if you have enough permissions to read the resource.

If not provide the required permissions and restrict it through the dispatcher.


Hope this is helpful


Community Advisor



Can you check if your GlobalConfiguration is null, if resource is same in both the scenarios then it should not be null. Log the resource path and check once. 


Level 3

Yeah it's null any solution for this?


It is null for all-on-demand too


but somehow I am able to get values from ca-config in the case of all-on-demand


Level 3


This one is when all-on-demand enable,


This is when using schedular

seems same for both cases

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now