Error in compilation of JSP due to taglibs error | Community
Skip to main content
tc94524330
Level 3
October 16, 2015
Solved

Error in compilation of JSP due to taglibs error

  • October 16, 2015
  • 6 replies
  • 3074 views

I am  facing a error while compiling JSP. When i compile JSP i am getting following error 

The absolute uri: http://www.day.com/taglibs/cq/personalization/1.0 cannot be resolved in either web.xml or the jar files  deployed with this application -> [Help 1]

I am not sure which dependency i need to include. I already included wcm-taglib, org.apache.sling.scripting.jsp.taglib.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by PaulMcMahon

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. 

6 replies

Level 8
October 16, 2015

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?
smacdonald2008
Level 10
October 16, 2015
tc94524330
Level 3
October 16, 2015

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?

Lokesh_Shivalingaiah
Level 10
October 16, 2015

Hi,

Can you lets us know how did you create your project and building/compiling it ?

PaulMcMahonAccepted solution
Level 8
October 16, 2015

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. 

tc94524330
Level 3
October 16, 2015

That is just a copy-paste error. In the code, the URL is fine.