Return-Path: X-Original-To: apmail-maven-dev-archive@www.apache.org Delivered-To: apmail-maven-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 5CF38D09B for ; Sun, 13 Jan 2013 19:39:38 +0000 (UTC) Received: (qmail 94669 invoked by uid 500); 13 Jan 2013 19:39:37 -0000 Delivered-To: apmail-maven-dev-archive@maven.apache.org Received: (qmail 94574 invoked by uid 500); 13 Jan 2013 19:39:37 -0000 Mailing-List: contact dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Developers List" Reply-To: "Maven Developers List" Delivered-To: mailing list dev@maven.apache.org Received: (qmail 94565 invoked by uid 99); 13 Jan 2013 19:39:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Jan 2013 19:39:37 +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 (nike.apache.org: domain of bimargulies@gmail.com designates 209.85.214.54 as permitted sender) Received: from [209.85.214.54] (HELO mail-bk0-f54.google.com) (209.85.214.54) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Jan 2013 19:39:32 +0000 Received: by mail-bk0-f54.google.com with SMTP id je9so1650577bkc.13 for ; Sun, 13 Jan 2013 11:39:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ebQhrNX/cODZ/SD39KinvPKmdksnWyXAT3UDB3jI3JM=; b=do37dyR3sAzgrcPyFv4nvsT7l9zERLPXy2zcI+QeSVdkVxWkdd8Htgik0d911nQSkF AUat86trXbIvaX9fo0FhgyZV6Y+nnbj3PiF0xAIEH0dJwK6Zfs0Rdq6OIlxMqK7u6/Hl o1ChDdkKcMxoO1Q/IVqwLS2xRtFx0QyIIR7XyhUn+0BEsDNZdIt6xtvaQ8ZYciEhOA30 H6K3e7629D/a41qd+1cyAv83Gn+TjXKHGuFxjlXiyuICCI6jDGU5S0omnv7ZKLyzhKKa 9GFUWjBOdbdK8SkOmK2k/i+nQ68HGeDkjDTUHlW44Yr90+Zmjgpo8xOaD2v7FMZ/Dqtm +o6w== MIME-Version: 1.0 Received: by 10.204.148.195 with SMTP id q3mr37911555bkv.122.1358105951938; Sun, 13 Jan 2013 11:39:11 -0800 (PST) Received: by 10.204.154.7 with HTTP; Sun, 13 Jan 2013 11:39:11 -0800 (PST) In-Reply-To: References: Date: Sun, 13 Jan 2013 14:39:11 -0500 Message-ID: Subject: Re: Need a small sax parser for m-s-u From: Benson Margulies To: Maven Developers List Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Well, you could scan for the JRE's builtin SPI file and pass the class name you acquire to http://docs.oracle.com/javase/6/docs/api/org/xml/sax/helpers/XMLReaderFactory.html. It is rather annoying that these classes don't let you say 'give me the stock JRE method, ignore the system property'. Or you could write down a list consisting of the class name used in the Oracle JRE and the class name used in the IBM JDK, and try them in order. On Sun, Jan 13, 2013 at 2:09 PM, Kristian Rosenvold wrote: > We switched to SAX parsing in m-s-u, and we just had an interesting > issue (https://jira.codehaus.org/browse/SUREFIRE-950) > which basically happens because some plugin sets org.xml.sax.driver to > point to a variable that is only present in that plugins classloader, > when m-s-u later tries to instantiate a sax parser it blows up. > > This happens because the standard instantiation algorithm in > org.xml.sax.helpers.XMLReaderFactory.createXMLReader() is > not good enough for us. To my knowledge there is no standard way to > determine what implementation is in use for different JDK's, > so the best option is probably to shade in a nice small version of a > sax parser from somewhere. > > I tried shading in xerces, which works nicely, but is hardly "small". > Anyone have any other suggestions ? > > Kristian > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org > For additional commands, e-mail: dev-help@maven.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org For additional commands, e-mail: dev-help@maven.apache.org