Java TldLocationsCache:null-在tomcat6上导入标记库
我得到了臭名昭著的TldLocationsCache:null:-( 我的taglib位于jar的META-INF中。因此,在我的web.xml中,我会:Java TldLocationsCache:null-在tomcat6上导入标记库,java,tomcat,tags,tomcat6,taglib,Java,Tomcat,Tags,Tomcat6,Taglib,我得到了臭名昭著的TldLocationsCache:null:-( 我的taglib位于jar的META-INF中。因此,在我的web.xml中,我会: <jsp-config> <taglib> <taglib-uri>myTags</taglib-uri> <taglib-location>/WEB-INF/lib/myTagLib-2.0.0.jar</taglib-location&g
<jsp-config>
<taglib>
<taglib-uri>myTags</taglib-uri>
<taglib-location>/WEB-INF/lib/myTagLib-2.0.0.jar</taglib-location>
</taglib>
</jsp-config>
我正在运行Tomcat6。任何帮助都将不胜感激。谢谢!
应参考.tld
,因此请更改
<taglib-location>/WEB-INF/lib/myTagLib-2.0.0.jar</taglib-location>
/WEB-INF/lib/myTagLib-2.0.0.jar
到
/WEB-INF/lib/myTagLib-2.0.0.tld
或者类似于tld
文件的路径
这可能也很有用:
应参考.tld
,因此更改
<taglib-location>/WEB-INF/lib/myTagLib-2.0.0.jar</taglib-location>
/WEB-INF/lib/myTagLib-2.0.0.jar
到
/WEB-INF/lib/myTagLib-2.0.0.tld
或者类似于tld
文件的路径
这也可能有用:
<taglib-location>/WEB-INF/lib/myTagLib-2.0.0.jar</taglib-location>
<taglib-location>/WEB-INF/lib/myTagLib-2.0.0.tld</taglib-location>