I am getting the infamous TldLocationsCache: null. 🙁
My taglib is inside the META-INF of my jar. So in my web.xml I do:
<jsp-config>
<taglib>
<taglib-uri>myTags</taglib-uri>
<taglib-location>/WEB-INF/lib/myTagLib-2.0.0.jar</taglib-location>
</taglib>
</jsp-config>
And on my JSP:
<%@ taglib uri="myTags" prefix="m" %>
But then I get:
org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: null
org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:248)
org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.java:219)
org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:553)
I am running Tomcat6. Any help will be appreciated. Thanks!
<taglib-location>should refer to the.tld, so changeto
or something similar with the path of the
tldfile.This could be also useful: Removing <taglib> from web.xml