You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2007/10/31 05:25:39 UTC
DO NOT REPLY [Bug 43743] New: - Cannot jspc precompile jsps with nested .tag files
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43743>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43743
Summary: Cannot jspc precompile jsps with nested .tag files
Product: Tomcat 6
Version: 6.0.9
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P3
Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: aberglas@rsa.com
myjsp.jsp: HELLO <tag1/>
tag1.tag: <tag2>
tag2.tag: WORLD
Crashes (null pointer) while trying to load tag2.class, called by
TagFileProcessor.loadTagFile.
Very Initial analysis:-
TagFileProcessor.loadTagFile creates wrapper, but ctxt.getTagFileJarUrl
(tagFilePath) returns null for nested .tag.
Thus in JspCompilationContext.Compile JspCCtx.isPackagedFile == false, so
outDated test is wrong
So tag2.tag not compiled, thus class cannot be loaded.
But problem also appears if tags not packaged in a .jar, so there is more
going on.
Work around is to create dummy.jsp that calls the .tags in leaf first order
so .class files are created.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 43743] - Cannot jspc precompile jsps with nested .tag files
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43743>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43743
------- Additional Comments From aberglas@rsa.com 2007-10-30 23:35 -------
Correction: Problem ONLY appears if nested tag is in a jar file.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 43743] - Cannot jspc precompile jsps with nested .tag files
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43743>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43743
------- Additional Comments From aberglas@rsa.com 2007-10-31 02:08 -------
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.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 43743] - Cannot jspc precompile jsps with nested .tag files
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43743>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43743
markt@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From markt@apache.org 2008-01-10 13:46 -------
This is fixed in svn and will be included in 6.0.16 onwards.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org