Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8821210F00 for ; Thu, 27 Feb 2014 06:18:23 +0000 (UTC) Received: (qmail 71808 invoked by uid 500); 27 Feb 2014 06:18:19 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 70791 invoked by uid 500); 27 Feb 2014 06:18:12 -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 70780 invoked by uid 99); 27 Feb 2014 06:18:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Feb 2014 06:18:09 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.220.46] (HELO mail-pa0-f46.google.com) (209.85.220.46) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Feb 2014 06:18:05 +0000 Received: by mail-pa0-f46.google.com with SMTP id rd3so2038614pab.19 for ; Wed, 26 Feb 2014 22:17:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:content-type:message-id:mime-version :subject:date:references:to:in-reply-to; bh=g3OBBG6uKvkO3A1m5YUCYUDh7wUnS1iwj1WEyo9YhQ4=; b=lC8vpDYI8cmuG4XWUgPJoh4atEyvvJTvlMiJG7ygJHUpPB5RScuOGB+VSNC1A4v1l5 Q7tVzZXpmg4qjLM0zeEsrKuhd3AzHCzkaP7tN/Z45A2hikwoRk8HGlgM8UV09e233aoB yEEqT+bgBVBlMhEHyvPYCap5mBFqGLVgTvm5BvzE7561guy+iN8a/8FfYP4tYfRamyuk Q3N+D85jL/xQfdKNRX1oBu5Oy5AY5j5o6PPwtOSK7nvamPM8SWFAnoc6lDFXe25gf3Qd ActXWJkorLkF8LuHr5M5JgG/qGqAGaOcg02J0+g3jAJ2qqj3WnAZBY7RgkKQXry50oXC AL/A== X-Gm-Message-State: ALoCoQnTIF+J1psnLLscUe1IrwbuwY1aSSU+hpo94Kv3gXOjQs665rX2gxykPCPUYZEB/jQAib9B X-Received: by 10.68.178.229 with SMTP id db5mr11307050pbc.97.1393481864669; Wed, 26 Feb 2014 22:17:44 -0800 (PST) Received: from [10.0.1.22] (c-24-16-133-248.hsd1.wa.comcast.net. [24.16.133.248]) by mx.google.com with ESMTPSA id sx8sm23343980pab.5.2014.02.26.22.17.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Feb 2014 22:17:43 -0800 (PST) Sender: Jeremy Boynes From: Jeremy Boynes Content-Type: multipart/signed; boundary="Apple-Mail=_F12309F3-F4AA-4403-85DE-4841219C8778"; protocol="application/pgp-signature"; micalg=pgp-sha512 Message-Id: Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: TldScanner + Config, was: Jasper Improvements Date: Wed, 26 Feb 2014 22:17:40 -0800 References: To: Tomcat Developers List In-Reply-To: X-Mailer: Apple Mail (2.1827) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_F12309F3-F4AA-4403-85DE-4841219C8778 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Feb 26, 2014, at 4:55 PM, Greg Wilkins wrote: > Just in case it was missed, here is the pull request I generated: >=20 > https://github.com/apache/tomcat/pull/4 >=20 > Happy to talk about individual changes either in the comments there or = here. Related to the TldScanner changes, I=92m assuming you have some = integration code in Jetty that is sub-classing the initializer and = overriding newTldScanner? I was thinking of supporting compile-on-start as a option where the = initializer would scan the war for JSP(x) files and initiate the = compilation during startup. This was intended for production use where = use of JspC was not practical (e.g. because the actual version of = runtime is not known at pre-compilation time) but where taking a hit on = access would be undesirable. I was thinking there to combine the TLD and = JSP scans into one. There may be other reasons to scan e.g. looking for tag-plugins packaged = in jars (no XML config needed a bit like a Tld). We also have an issue where Jasper is very reliant on system properties = and the Options built from the init-params of JspServlet. In short, I=92m wondering if instead of the subclassing we define a = JasperConfiguration interface and have the initializer look for an = instance of it in a context attribute. The configuration there would = allow the container to replace parts of Jasper=92s initialization (e.g. = by supplying a Collection of pre-scanned TLDs, by identifying TLDs = "provided by the container=94 etc.) and other configuration on a = per-context basis. Would something like that work for you? Cheers Jeremy --Apple-Mail=_F12309F3-F4AA-4403-85DE-4841219C8778 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJTDtiEAAoJEKVK0I6noCM8GegH/R+zslCNHE429d9tMHrkBSgU 3y4KHf/1IND7oXK+jeGF/5WYekS2BNEnykee4JpDzA3pRYG0sRkwdIHCqLWeU8b5 pvRauUxz3UTVzGaeo7QsdPiaSaoeXkV/vaKzL019YDgOSZ7N89vnuO+y6/pwi+fs NiVLZqzu2ujaWMEymYCLDaTTthOeY+4oBVz4WUj7uMWg45S4tl5kdRiQCsrULD6x OvKc2c4sCueDsqFl3px02q00TBO8pjrEf/jlDN8A+XBaXICYbIIfdk2BEYp0Ltca HJ/neWMSHz+WHGPELU9IEbuk42rar8e7M00X2iViO4e6U6ecmG9phllrdVDpuRM= =duPG -----END PGP SIGNATURE----- --Apple-Mail=_F12309F3-F4AA-4403-85DE-4841219C8778--