https://issues.apache.org/bugzilla/show_bug.cgi?id=50783
Summary: Custom TLD´s not recognized in TldLocationsCache
Product: Tomcat 7
Version: unspecified
Platform: Macintosh
OS/Version: Mac OS X 10.5
Status: NEW
Severity: normal
Priority: P2
Component: Jasper
AssignedTo: [email protected]
ReportedBy: [email protected]
Hi,
I have migrated my current Web Application from Tomcat 6.0.26 to Tomcat 7.0.8
In Tomcat 7 there was a problem finding my custom written Tag Libraries.
E.g. I have one tag library descriptor in /WEB-INF/tags/filter.tld
In the jsp file I try to get this tag library with uri=/filter
In Tomcat 6 everything works fine, in 7 I get JasperException saying he did
not find the file. (FileNotFoundException)
During debug I found out that the TldLocationsCache#tldScanResourcePaths
ignores all files in /WEB-INF/tags. Have a look around line 310 there is
following condition:
if (path.startsWith("/WEB-INF/tags/") && !path.endsWith("implicit.tld")) {
continue;
}
At this point he ignores my tag library cause it does not (and should not) end
with "implicit.tld".
>From my point of view the negotiation sign "!" is wrong. It should ignore all
implicit.tld like it is described in oracle´s jsp reference, instead he ignores
all others. I recompiled it without that sign and everything is working out of
the box!
I am a bit wondering that no one else found out this mistake, cause no
tag library should work in this way. Or I am doing something very wrong
at this stage?
Thanks in advance,
andre
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]