Summary: | Cannot jspc precompile jsps with nested .tag files | ||
---|---|---|---|
Product: | Tomcat 6 | Reporter: | Anthony Berglas <aberglas> |
Component: | Jasper | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 6.0.9 | ||
Target Milestone: | default | ||
Hardware: | All | ||
OS: | All |
Description
Anthony Berglas
2007-10-30 21:25:38 UTC
Correction: Problem ONLY appears if nested tag is in a jar file. The bug appears to be in Parser.parseTaglibDirective. A JspCompilerContext instance is created for each JSP and each Tag file processed. The tag file url map is stored here, not globally. This is what JspCompilerContext.compile uses. But Parser.parseTaglibDirective only calls TagLibraryInfoImpl() once per JSP, not and not for the sub tag files. So the map is never populated. A hack workaround it to set caching="false" in the <jspc ...> command. I'm not sure what the full implications of doing this are. From here I think a proper fix should be fairly straight forward. This is fixed in svn and will be included in 6.0.16 onwards. |