Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 8142 invoked from network); 4 Aug 2010 20:48:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Aug 2010 20:48:18 -0000 Received: (qmail 46874 invoked by uid 500); 4 Aug 2010 20:48:17 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 46804 invoked by uid 500); 4 Aug 2010 20:48:16 -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 46795 invoked by uid 99); 4 Aug 2010 20:48:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Aug 2010 20:48:16 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [193.252.22.128] (HELO smtp5.freeserve.com) (193.252.22.128) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Aug 2010 20:48:08 +0000 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3408.me.freeserve.com (SMTP Server) with ESMTP id 30DEF1C000A2 for ; Wed, 4 Aug 2010 22:47:47 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3408.me.freeserve.com (SMTP Server) with ESMTP id 233711C000A3 for ; Wed, 4 Aug 2010 22:47:47 +0200 (CEST) Received: from mail.homeinbox.net (unknown [91.109.166.185]) by mwinf3408.me.freeserve.com (SMTP Server) with ESMTP id D74221C000A2 for ; Wed, 4 Aug 2010 22:47:46 +0200 (CEST) X-ME-UUID: 20100804204746881.D74221C000A2@mwinf3408.me.freeserve.com Received: from localhost (localhost [127.0.0.1]) by mail.homeinbox.net (Postfix) with ESMTP id 84D733301F for ; Wed, 4 Aug 2010 21:48:11 +0100 (BST) X-Virus-Scanned: Debian amavisd-new at homeinbox.net Received: from mail.homeinbox.net ([127.0.0.1]) by localhost (mail.homeinbox.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uuWfajYegrHc for ; Wed, 4 Aug 2010 21:48:08 +0100 (BST) Received: from [192.168.0.9] (study03.dev.local [192.168.0.9]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.homeinbox.net (Postfix) with ESMTPSA id DA91333012 for ; Wed, 4 Aug 2010 21:48:07 +0100 (BST) Message-ID: <4C59D1EE.5050300@apache.org> Date: Wed, 04 Aug 2010 21:47:42 +0100 From: Mark Thomas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-GB; rv:1.9.2.7) Gecko/20100713 Thunderbird/3.1.1 MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: Again JarScanner and jarsToSkip References: <4C595511.5070607@kippdata.de> In-Reply-To: <4C595511.5070607@kippdata.de> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit On 04/08/2010 12:54, Rainer Jung wrote: > Hello everyone, > > would it make sense to make jarsToSkip publicly available in the > JarScanner interface and default impl, in order to allow to configure it > per context as part of context.xml? +1 > Is there one JarScanner instance per context? Yes. > If so: How would we want to merge default settings and per context > settings? Some of the default exclusions we know for sure we want to > exclude e.g. the stuff shipped with Tomcat. Others we can't say for sure > for all the future, like the commons stuff. So it seems if we make it > configurable per context and do not want people to have to include the > Tomcat stuff in every context config, the default would need to be split > in two parts, namely the always to exclude and the default per context > which gets overwritten. > > What about allowing to match against the full path of the jar, possibly > implicitley prefixing all pattrns which do not start with a slash with > "**/"? Does that make sense, i.e. is there a use case? The list now > allows glob patterns like in ant, so "**", "*" and "?". E.g. we could > add ${catalina.home}/lib/* and ${catalina.base}/lib/* to shortcut our > own jar list. For the classpath jars it seems the jars are all coming > from file URLs, so retrieving the full path is easy. Concerning the > WEB-INF/lib jars, I didn't yet check. > > Should we also add standard.jar and jstl.jar to the default exclude > list? They are scanned as part of the examples webapp. Or do we think > the names are to generic to add them to the list? > > Is there any complication, because the JarScanner is also used for > taglib scanning? There is an API to set "noTldJar", although I'm not > sure whether that's available by config. Default is null which leads to > again using jarsToSkip. I'm happy to see all of this configuration completely re-written if that is what is required. That said, this is just a start-up optimisation. I think we need three groups: a) never scan (JAR or TLD) b) default jarsToSkip c) default noTldJar I'd suggest all three being set in catalina.properties with b) & c) over-ridable per context. Users can over-ride the defaults in catalina.properties if they wish. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org