Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 68405 invoked from network); 17 Aug 2004 09:06:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 17 Aug 2004 09:06:12 -0000 Received: (qmail 7341 invoked by uid 500); 17 Aug 2004 09:05:52 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 7267 invoked by uid 500); 17 Aug 2004 09:05:51 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 7254 invoked by uid 500); 17 Aug 2004 09:05:51 -0000 Received: (qmail 7248 invoked by uid 99); 17 Aug 2004 09:05:51 -0000 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.27.1) with SMTP; Tue, 17 Aug 2004 02:05:51 -0700 Received: (qmail 68076 invoked by uid 1135); 17 Aug 2004 09:05:50 -0000 Date: 17 Aug 2004 09:05:50 -0000 Message-ID: <20040817090550.68075.qmail@minotaur.apache.org> From: remm@apache.org To: jakarta-tomcat-jasper-cvs@apache.org Subject: cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper JspCompilationContext.java X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N remm 2004/08/17 02:05:50 Modified: jasper2/src/share/org/apache/jasper JspCompilationContext.java Log: - Add missing check. - It worked for me because I had removed Ant. Revision Changes Path 1.50 +8 -6 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspCompilationContext.java Index: JspCompilationContext.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspCompilationContext.java,v retrieving revision 1.49 retrieving revision 1.50 diff -u -r1.49 -r1.50 --- JspCompilationContext.java 16 Aug 2004 23:48:36 -0000 1.49 +++ JspCompilationContext.java 17 Aug 2004 09:05:50 -0000 1.50 @@ -202,12 +202,14 @@ // Log ? // FIXME: log } - try { - jspCompiler = - (Compiler) Class.forName("org.apache.jasper.compiler.AntCompiler").newInstance(); - } catch (Throwable t) { - // Log ? - // FIXME: log + if (jspCompiler == null) { + try { + jspCompiler = + (Compiler) Class.forName("org.apache.jasper.compiler.AntCompiler").newInstance(); + } catch (Throwable t) { + // Log ? + // FIXME: log + } } jspCompiler.init(this, jsw); return jspCompiler; --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org