Invalid tld file: “/WEB-INF/tags/xxx.tld”, see JSP 2.2 specification section 7.3.1 for more details

7.3.1章节内容如下:

In the jsp-2_2 JSP.7.3.1 Identifying Tag Library Descriptors Tag library descriptor files have names that use the extension .tld, and the extension indicates a tag library descriptor file. When deployed inside a JAR file, the tag library descriptor files must be in the META-INF directory, or a subdirectory of it. When deployed directly into a web application, the tag library descriptor files must always be in the WEB-INF directory, or some subdirectory of it. TLD files should not be placed in /WEB-INF/classes or /WEB-INF/lib, and must not be placed inside /WEB-INF/tags or a subdirectory of it, unless named implicit.tld and intended to configure an implicit tag library with its JSP version and tlib-version. the .tld file can't be in classes , lib ,tags folder or subfolder.

原来2.2不再允许用户将tld文件放置于WEB-INF/classes ,WEB-INF/lib 或者WEB-INF/tags下面;
解决方法:

1.如果你的tld文件放在 /WEB-INF/tags目录下,而你不想改代码,那么,把tomcat换成apache-tomcat-7.0.55 或者以下的版本。
2.如果你不想换tomcat就把 tld放在 /WEB-INF下。

 

参考:

https://www.cnblogs.com/demingblog/p/7919841.html


发表评论

(必填)

(必填)

(以便回访)