Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 13023 invoked from network); 9 Feb 2010 05:18:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Feb 2010 05:18:33 -0000 Received: (qmail 34426 invoked by uid 500); 9 Feb 2010 05:18:33 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 34274 invoked by uid 500); 9 Feb 2010 05:18:33 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 34266 invoked by uid 99); 9 Feb 2010 05:18:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Feb 2010 05:18:32 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jgawor@gmail.com designates 209.85.222.183 as permitted sender) Received: from [209.85.222.183] (HELO mail-pz0-f183.google.com) (209.85.222.183) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Feb 2010 05:18:25 +0000 Received: by pzk13 with SMTP id 13so5288204pzk.24 for ; Mon, 08 Feb 2010 21:18:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=seSySELdTULAPgl2ziS1fNYu9+gSvhxCdz+p36uzwa8=; b=eurQM4A4KWJftn9qxRnKMDFdT5S1uKp3CDMNvER8RCWCNtPzcrbA2RUHHUY4Bv52h6 hxZbxBJcyB36PJ0IFLQdoX8ix8/VMkOdpTtmP4l0uWNH8A2exal1aHAw9nr2X5lu/O01 yNHugJFqo2mPVwrgHuwOBcE/pQyN/CIrSuKdU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=BYt8GLccoVWMTkD5mLEgQ2t1x8bxgqW46RPZFWuQ2CQKb+hStgeW7GwbVASavtotH9 5tEDBJ1jAxDWP16Y48MuohLsRiqxxVswMG7J1+Ywvufsni/9ofawog1l7HzAxrzA2xAG E9gpBQdRkFefFKdkec0K1mkC0WPlg5QkXsDhk= MIME-Version: 1.0 Received: by 10.114.3.17 with SMTP id 17mr5129455wac.185.1265692685674; Mon, 08 Feb 2010 21:18:05 -0800 (PST) Date: Tue, 9 Feb 2010 00:18:05 -0500 Message-ID: <5eb405c71002082118v746f981bvf4c8643ee62d1aa7@mail.gmail.com> Subject: tld scanning/jstl/myfaces update From: Jarek Gawor To: dev Content-Type: text/plain; charset=ISO-8859-1 Hi, Just an updated on my tld scanning/discovery work. I had to patch our Tomcat code in order for Jasper to parse TLDs directly in a bundle. Jasper assumed the TLDs is either within the application bundle (accessible via ServletContext) or within a jar file and in which case it required a jar file url. But in our environment there was no easy way to pass a jar file url for a bundle. I submitted the same patch to Tomcat but not sure if it will be committed. The TLDs provided by JSTL or Myfaces are made available via TldProvider services registered in the service registry. The Jasper plugin registers the TldProvider service with TLDs on behave of the JSTL bundle and Myfaces plugin does the same for Myfaces impl bundle. Now, Jasper via GeronimoTldLocationsCache discovers these "container" TLDs by scanning the service registry for these TldProvider services. There are some potential problems with this solution and I'm not too happy with it but for now it works. For example, GeronimoTldLocationsCache will discover every TldProvider service in the registry even though the given application might not use JSTL or Myfaces. However, the classes referenced in TLDs are not actually instantiated until the TLD is referenced in the application so that shouldn't be a problem. It's just GeronimoTldLocationsCache seeing more then it probably should. Anyway, with these changes I was able to deploy a simple JSTL application. However, Myfaces support still doesn't quite work due to some CCL assumptions in Myfaces. Will try to resolve that next. Jarek