Guys, I realized the problem was in resourceResolver property. In my case when the property was local in activator, it did not work.
When the resourceResolver property is global in class, then it works.
Following works:
@Activate
public void start(BundleContext context) throws Exception {
re...