Getting error log "AEM failed to activate Use class"
Hey Community
I have wriiten this basic code to get cq:tags property of current page
public Void activate throws exception{
rootpage=getCurrentPage;
Resource res = getResourceResolver.getResource(rootpage.getPath()+"/jcr:content/");
ValueMap pageProperties = res .getValueMap();
tag= (String) pageProperties.get("cq:tags", "Default value");
logger.info(tag);
}
When I'm using creating object using HTL statement in HTMl file it is not displaying anything on page and error log says "AEM failed to activate Use class"
How to resolve it?
@dipti_chauhan Please suggest.


