Something wierd... Today, after restarting the instance, it works... Adding this message here to prevent people from wasting time...
Hi Masters!
I'm trying to use ACS AEM Commons Contexual Content Variables(CCVAR) in my project. After following the configuration steps, I get this error message in error.log:
Caused by: java.io.IOException: Unable to get component of class 'interface org.apache.sling.rewriter.Transformer' with type 'ccvar-transformer'.
I also configured a specific log for org.apache.sling.rewriter package and catched this error message:
2022-07-06 11:23:26.892 DEBUG [org.apache.sling.rewriter.impl.FactoryCache] Requested transformer factory for type 'ccvar-transformer' not found.
After analyzing, I figured out that I can't configure the PropertyAggregatorServiceImpl service (the first step in the documentation), so the service is not running, causing the error.
I followed the instructions provided, adding a com.adobe.acs.commons.ccvar.impl.PropertyAggregatorServiceImpl.xml file to my project, in /apps/myproject/osgiconfig/config/, but after a couple of seconds, the configuration is deleted.
I've checked in the OSGI Console, in the /components page, it remains as 'no config':
I also cheched the configMgr console page, and I can't see the PropertyAggregatorServiceImpl service. I can only see com.adobe.acs.commons.ccvar.impl.PropertyConfigServiceImpl:
My setup is:
My PropertyAggregatorServiceImpl.xml:
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="sling:OsgiConfig"/>
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="nt:unstructured"
contentTypes="[text/html]"
enabled="{Boolean}true"
generatorType="htmlparser"
order="0"
serializerType="htmlwriter"
transformerTypes="[linkchecker,mobile,mobiledebug,contentsync,ccvar-transformer]">
<transformer-mobile
jcr:primaryType="nt:unstructured"
component-optional="{Boolean}true"/>
<transformer-mobiledebug
jcr:primaryType="nt:unstructured"
component-optional="{Boolean}true"/>
<transformer-contentsync
jcr:primaryType="nt:unstructured"
component-optional="{Boolean}true"/>
<generator-htmlparser
jcr:primaryType="nt:unstructured"
includeTags="[A,/A,DIV,/DIV,SPAN,/SPAN,P,/P,SECTION,/SECTION,H1,/H1,H2,/H2,H3,/H3,H4,/H4,H5,/H5,LI,/LI,BUTTON,/BUTTON]"/>
</jcr:root>
Solved! Go to Solution.
As per the comment from Author
after restarting the instance, it works...
Views
Replies
Total Likes
As per the comment from Author
after restarting the instance, it works...
Views
Replies
Total Likes
Views
Likes
Replies