Hi,
we are upgrading the system from cq 5.6.1 to aem 6.2,
where we have a following setup.
1. A ".tld" file is written with both <tag> and <tag-file> attributes.
2. and tag files are defined in the tld file as below
<tag>
<description>
Generate social metadata from page properties
</description>
<name>getOpenGraphFieldsFromPage</name>
<tag-class>com.new.hype.f12.ui.tags.OpenGraphTag</tag-class>
<body-content>empty</body-content>
</tag>
<tag-file>
<name>openGraph</name>
<path>/META-INF/tags/openGraph.tag</path>
</tag-file>
The above setup is working fine in cq 5.6.1 but not here in 6.2.
Now when we are accessing a page, we can see the below error in error.log
org.apache.sling.api.scripting.ScriptEvaluationException: org.apache.sling.scripting.jsp.jasper.JasperException: File "/META-INF/tags/openGraph.tag" not found
at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:416)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:184)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:491)
at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:546)
at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:44)
Does anybody know why it happened and how to fix it?
Does this solution have a backend OSGi associated with it?
Views
Replies
Total Likes
Same problem I am facing with AEM 6.3 , any clue?
I have used tld generator maven plugin in my project. it successfully generating the tld file in jar file but not able to access the .tag file.
Views
Replies
Total Likes
Views
Replies
Total Likes
Do you have a sample you can share?
Views
Replies
Total Likes
The issue was fixed in https://issues.apache.org/jira/browse/SLING-7044
Summary of the issue :
If a taglib in a bundle references a tag implemented as a script (located in /META-INF/tags) this script is not found as it is not searched within the bundle containing the tld - it's rather used as a resource on the classpath.
Do we need to contact Adobe to get the patch fix for this issue? or Is there any workaround to implement the same issue ?
I would raise a support ticket for this.
Hi Feike Visser,
Did you raise a support ticket for the sling patch fix mentioned by chanchalesj60771443
or please let me know how to use that patch in our aem environments.
Thanks in advance.
Views
Replies
Total Likes
You need to raise a support ticket on this, and ask for further guidance.
Views
Likes
Replies