Cannot resolve taglib with uri

I've some JSP pages in src/main/webapp that reference a TLD file, also in src/main/webapp - and IntelliJ 14.1.4 Ultimate is reporting the error "Cannot resolve taglib with uri taglib.tld" (though the ant-based command line build works just fine).

Now, for various historical reasons that I can't change the layout of the project is a bit odd, but where should the TLD file go in order for IntelliJ to recognise the location of a taglib reference by a JSP page with

<%@ taglib prefix="tl" uri="taglib.tld" %>

Thanks,

Greg

2 comments
Comment actions Permalink

https://docs.oracle.com/javaee/5/tutorial/doc/bnamu.html

Tag library descriptor file names must have the extension .tld and must be packaged in the /WEB-INF/ directory or subdirectory of the WAR file or in the /META-INF/ directory or subdirectory of a tag library packaged in a JAR.


So, WEB-INF is the correct folder for .tld files in your case.
0
Comment actions Permalink

It's the right folder for IntelliJ, but sdly not the rather odd build process we have. Still, abuse of svn:externals means that I can have the same file in two places, so thanks!

Greg

0

Please sign in to leave a comment.