Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 48827 invoked from network); 3 Jan 2009 16:32:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jan 2009 16:32:11 -0000 Received: (qmail 56938 invoked by uid 500); 3 Jan 2009 16:32:04 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 56880 invoked by uid 500); 3 Jan 2009 16:32:04 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 56869 invoked by uid 99); 3 Jan 2009 16:32:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Jan 2009 08:32:04 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Jan 2009 16:32:02 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id 6B4DD234C4AA; Sat, 3 Jan 2009 08:31:41 -0800 (PST) From: bugzilla@apache.org To: dev@tomcat.apache.org Subject: DO NOT REPLY [Bug 37084] JspC from ant fails on JSPs that use custom taglib X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Tomcat 5 X-Bugzilla-Component: Jasper X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: knst.kolinko@gmail.com X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@tomcat.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Severity Status Resolution In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Message-Id: <20090103163141.6B4DD234C4AA@brutus.apache.org> Date: Sat, 3 Jan 2009 08:31:41 -0800 (PST) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=37084 Konstantin Kolinko changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|regression |normal Status|RESOLVED |REOPENED Resolution|WORKSFORME | --- Comment #10 from Konstantin Kolinko 2009-01-03 08:31:39 PST --- Though I am yet failing to reproduce the issue in current tc6.0.x, I have elaborated a theory why it occurs. 1. The exception is caused by creating JasperLoader instance with a null baseUrl and trying to use it to load a class, in JspCompilationContext#getJspLoader(). Usually that does not occur, because JspCompilationContext#createOutputDir() is called first. 2. During compilation the #createOutputDir() call does occur: a) in Compiler#isOutDated() when it checks for the full name of the java source / class file, b) later, when Compiler#generateJava() explicitly calls JspCompilationContext#checkOutputDir(). Thus, the compilation is not the route that leads to the preliminary creation of JasperLoader instance. 3. I think that the issue is caused when JspServletWrapper#getDependants() gets called earlier than the compilation of the class occurs. The events will occur as following: 1) JspServletWrapper#getDependants() calls JspCompilationContext#load() that results in #getJspLoader() call and creation of JasperLoader instance. 2) The JasperLoader instance is unusable and this call results in an exception. Nevertheless the created JasperLoader instance is remembered. 3) JspServletWrapper#getDependants() catches the exception, but silently swallows it. 4) The program continues running but breaks later. Thus, the question is what can cause the early #getDependants() call on a fresh compilation context. I am not able to reproduce it. Maybe there should be some interrelated tag/jsp files (OP mentioned: "Seems to be related to the use of a custom taglib in a JSP that is included by another JSP", but that is not sufficient). Also, the known workaround for the issue (disabling caching in JspC) should somehow fit into the picture. Nevertheless, I am proposing a patch to TC 6.0, that I attached above. A side effect is that it mkdirs the output directory, but I think that must be OK. -- 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: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org