java - Freemarker can't find JSP tld-s -


i creating project tomcat 7, spring 4.1.7 (with spring mvc) , freemarker 2.3.23. libs deployed under /web-inf/lib contains custom libs tlds under own /meta-inf/.

but when freemarker scans <#assign a=jsptaglib["/web-inf/a.tld"]>, system complains can't find definition file.

after debugging freemarker's taglibfacotry.java, found explicitly mapped tld location not working. means have put tlds directly under class path. tried copy on 1 tld /web-inf/, works.

further investigation shows "servletcontext.getresourcepaths("/web-inf/lib")" returns null value.

did miss configurations? or related compatibility problem since works fine jetty?

thanks in advance.

verify if deployment copying jars web-inf/lib. taglibfactory scans every jar inside there searching /meta-inf/**/*tlds.

take @ https://stackoverflow.com/a/37092269/1113510


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -