I am creating a JSP custom tag using tag file but i am getting following error
org.apache.sling.api.scripting.ScriptEvaluationException: org.apache.sling.scripting.jsp.jasper.JasperException: File "/META-INF/tags/HelloTag.tag" not found
tag file is located at /META-INF/tags/HelloTag.tag
Following are content of tag definition file located at //META-INF/taglibs.tld
<taglib xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_1.xsd" version="2.1"> <tlib-version>1.0</tlib-version> <short-name>Angular</short-name> <uri>http://abc.org/Hello/Taglib</uri> <tag-file> <name>Hello</name> <path>/META-INF/tags/HelloTag.tag</path> </tag-file></taglib>
Also following is the configuration of bundle plugin
<plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <extensions>true</extensions> <configuration> <instructions> <Bundle-SymbolicName>org.abc.angularjs-tags-aem</Bundle-SymbolicName> <Sling-Model-Packages>org.abc.web.jsp.angularjs.tags</Sling-Model-Packages> <Bundle-Resource>/META-INF/tags</Bundle-Resource> <Sling-Bundle-Resource>/META-INF/tags</Sling-Bundle-Resource> </instructions> </configuration></plugin>
I read following blogs for creating this sample.
Also full maven artifact is attached with this form.
I've removed obsolete bundles
com.squeakysand.sling - squeakysand-sling-taglibcom.squeakysand.sling.squeakysand-sling-taglib com.squeakysand.jsp - squeakysand-jsp-taglibcom.squeakysand.jsp.squeakysand-jsp-taglib com.squeakysand.jcr - squeakysand-jcr-taglibcom.squeakysand.jcr.squeakysand-jcr-taglib com.cqblueprints.taglib - cqblueprints-taglibcom.cqblueprints.taglib.cqblueprints-taglib
and this has fixed my problem
Removing of the com.cqblueprints.taglib bundle has fixed the issue
I am getting same issue when migrating from AEM 6.1 to AEM 6.3. We did an inplace upgrade. How do I find obsolete bundles in my instance. I dont have above bundles mentioned by Stanleyor.
Any thoughts what I need to check?
Thanks in advance!
We are upgrading from 6.1 to 6.3, I'm getting the same issue.
Any thoughts to fix this issue ?
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.
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.
Please contact Adobe to get the patch fix for this issue.