I am facing a error while compiling JSP. When i compile JSP i am getting following error
I am not sure which dependency i need to include. I already included wcm-taglib, org.apache.sling.scripting.jsp.taglib.
Solved! Go to Solution.
Views
Replies
Total Likes
The personalization tag library is defined in cq-personalization bundle (<groupId>com.day.cq</groupId> - <artifactId>cq-personalization</artifactId>). The right version depends on which version of AEM you are running - you can find the version by looking at the bundle list in Felix.
Making that a dependency you POM should solve your problem.
Views
Replies
Total Likes
I am not sure if this is a copy and paste issue but you have a space in the URL - is that present in your code? I assume that you code that looks like
<%@taglib prefix="personalization" uri="http://www.day.com/taglibs/cq/personalization/1.0" %> at that top of you JSP page? |
Views
Replies
Total Likes
See this AEM doc topic:
https://docs.adobe.com/docs/en/cq/5-6/howto/taglib.html
Here is a good article that talks about this use case:
http://www.cqblueprints.com/tipsandtricks/jsp-custom-tag-lib.html
Views
Replies
Total Likes
I still couldn't figure out why i am getting that error. I am aware of how to build and how to use taglibs. But my problem is while compiling JSP using JSPC plugin i am getting the above error.
Could you please give me any hint or solution to the error?
Views
Replies
Total Likes
Hi,
Can you lets us know how did you create your project and building/compiling it ?
Views
Replies
Total Likes
The personalization tag library is defined in cq-personalization bundle (<groupId>com.day.cq</groupId> - <artifactId>cq-personalization</artifactId>). The right version depends on which version of AEM you are running - you can find the version by looking at the bundle list in Felix.
Making that a dependency you POM should solve your problem.
Views
Replies
Total Likes
That is just a copy-paste error. In the code, the URL is fine.
Views
Replies
Total Likes
Views
Likes
Replies