Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 66011 invoked from network); 14 Dec 2009 03:58:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Dec 2009 03:58:33 -0000 Received: (qmail 11691 invoked by uid 500); 14 Dec 2009 03:58:32 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 11579 invoked by uid 500); 14 Dec 2009 03:58:29 -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 11567 invoked by uid 99); 14 Dec 2009 03:58:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Dec 2009 03:58:29 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.136.44.61] (HELO smtp106.prem.mail.sp1.yahoo.com) (98.136.44.61) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 14 Dec 2009 03:58:26 +0000 Received: (qmail 41432 invoked from network); 14 Dec 2009 03:58:05 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-Id:From:To:In-Reply-To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:References:X-Mailer; b=b15ac3kf50YmCUUfuKRD+ntUnoVL3XPrbdXOf3fL+nVID3cKGqUb/012echVO6us+gWacOPlyWIr7CqL3SB+bwEDn3eTIc+V4zvhcyWeeEAJZf6b6OYNtxvijlqTE3dBez4a2ZJcURQxwRnj63PuX4kwOL/QQi211+IC4z+ZaMo= ; Received: from 076-076-148-215.pdx.net (david_jencks@76.76.148.215 with plain) by smtp106.prem.mail.sp1.yahoo.com with SMTP; 13 Dec 2009 19:58:05 -0800 PST X-Yahoo-SMTP: .9oIUzyswBANsYgUm_5uPui0skTnzGJXJQ-- X-YMail-OSG: xK3e8jQVM1kZlgUCLo46hx4vM3w3itwQNGiB_bSYv1s1ig9LXbAv4Nt2ifYDL6H6mJiMEcFlRiprLStkG1KHkt96SbYyzikSRLmqKHyZpS_y0LZ46LbilyI4JuqJN1kcy4rGXzuj7YM39mltkfSJp1qv_pAy36kK09RsTqBh4Ep91Ex7Yti6MKT7UKCEALU111NtoaICDKiGe2Z3SDB.7mDVBXzVA322boHA9JSSTKiaD.qxkLpjhNDGJnQJSlmuAHul5i4HP5w56bSX8dKQ3WmFV_Ql5poBmac8Qn4.HErd4pIrKn1h7a_pIjQx8Vxmp0NqhMk- X-Yahoo-Newman-Property: ymail-3 Message-Id: <4E3BB38C-9CA7-4403-BA9E-56E18EC279DC@yahoo.com> From: David Jencks To: "Tomcat Developers List" In-Reply-To: <4B2552A8.1010406@apache.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: Problem using maven jspc plugin with tomcat 7 and jstl Date: Sun, 13 Dec 2009 19:58:03 -0800 References: <4B2552A8.1010406@apache.org> X-Mailer: Apple Mail (2.936) On Dec 13, 2009, at 12:46 PM, Mark Thomas wrote: > On 13/12/2009 09:50, David Jencks wrote: >> It looks to me as if the problem is that no JarScanner is installed >> in >> the ServletContext used by JspC. (There definitely isn't one >> installed, >> and I think that is the cause of the problem). So, jasper cant >> find the >> jstl jar which is in the classloader all this is running with. > > Your analysis looks spot on to me. > >> I don't see how it would be possible for a JarScanner to get >> installed >> so I'm wondering if there is a bug and what a way to fix it or work >> around it might be. > > Yep, it's a bug. > >> Before proposing any code changes it would be great to have some >> advice >> on how this is supposed to work and confirmation that my theories on >> what is wrong are reasonable. > > The motivation behind the original change was to: > - make TLD handling consistent between Jasper and Tomcat (there are > some > edge case anomalies in 6.0.x) > - reduce code duplication (there is still a lot of duplication between > TldLocationCache and o.a.c.startup.TldConfig) > > Something to keep in mind is that Jasper should not have any > dependencies on Tomcat. At the moment, there are a few shared > interfaces > in o.a.tomcat but no implementation. > > The options I can think of off-hand are: > - refactor the DefaultJarScanner to o.a.tomcat (or a sub-package) and > add it to the tomcat-api.jar (maybe rename the jar) > - copy the DefaultJarScanner to the o.a.jasper package > > The second option is the simplest but I like the first as it > provides a > basis for removing some of the other duplication (eg around TLDs) > between Tomcat core and Jasper. I can verify by experiment that the 2nd solution fixes the problem with jspC. I agree that there's a strong case to be made for moving DefaultJarScanner to org.apache.tomcat but doing so introduces a lot of dependencies from that package to org.apache.tomcat.util.res.StringManager org.apache.juli.logging.LogFactory org.apache.catalina.startup.Constants I could resolve these but the results would probably not be consistent with whatever policy tomcat has on dependencies. However if this would be helpful I'll be happy to supply a patch. BTW I really appreciate that the classes formerly in org.apache got moved to org.apache.tomcat many thanks david jencks > > Mark > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org > For additional commands, e-mail: dev-help@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org