From dev-return-104739-apmail-maven-dev-archive=maven.apache.org@maven.apache.org Sun Jan 13 22:52:47 2013 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 C7CC6EB80 for ; Sun, 13 Jan 2013 22:52:47 +0000 (UTC) Received: (qmail 65205 invoked by uid 500); 13 Jan 2013 22:52:47 -0000 Delivered-To: apmail-maven-dev-archive@maven.apache.org Received: (qmail 64978 invoked by uid 500); 13 Jan 2013 22:52:47 -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 64970 invoked by uid 99); 13 Jan 2013 22:52:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Jan 2013 22:52:47 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chrisgwarp@gmail.com designates 209.85.210.47 as permitted sender) Received: from [209.85.210.47] (HELO mail-da0-f47.google.com) (209.85.210.47) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Jan 2013 22:52:42 +0000 Received: by mail-da0-f47.google.com with SMTP id s35so1528396dak.20 for ; Sun, 13 Jan 2013 14:52:22 -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=o3ikKm2Mfpa2f1gJ67PplBoSrsJm3QgJ8LzHBx0B5eM=; b=KJZU/V2Insy2Bu5LvSjMvcx1i7gP9E08JzmzRz+cTm3WkJKBvBMPK2axL6WjXVOslQ kgAPhwswmVVi20Yv6JOD+z9CigxBH9mPDI8yzbDg0NePhbZRBvVLzcRrosKKcnqTVO0T 9JxN+FeV1ecZ4F7V9NwUFB6RfgAcMeCVlG9ZZfqRNmZcTujI5i7wgHQg8DG6PToLE/A9 F27zM5bsW5IoI4b5WOA413tNQf2aA/+YnFs4xYlojfbTaHg+QJI2hzNrazVHFftTL+6t R2Hh8r+db+xurZPZRLUPES1nrzU4cubVJ4y6T1O9C/3OP/1/VA4x32KXWElvDG5cYs3a VWCA== MIME-Version: 1.0 Received: by 10.68.203.137 with SMTP id kq9mr246644560pbc.115.1358117542469; Sun, 13 Jan 2013 14:52:22 -0800 (PST) Received: by 10.68.35.137 with HTTP; Sun, 13 Jan 2013 14:52:22 -0800 (PST) In-Reply-To: References: Date: Mon, 14 Jan 2013 09:52:22 +1100 Message-ID: Subject: Re: Need a small sax parser for m-s-u From: Chris Graham To: Maven Developers List Content-Type: multipart/alternative; boundary=047d7b15aabdae9ea904d333617d X-Virus-Checked: Checked by ClamAV on apache.org --047d7b15aabdae9ea904d333617d Content-Type: text/plain; charset=ISO-8859-1 Yes, be really careful with shading and similar XML stuff, the IBM JRE has a lot of XML processing in it built in, and it can clash. -Chris On Mon, Jan 14, 2013 at 6:39 AM, Benson Margulies wrote: > 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 > > --047d7b15aabdae9ea904d333617d--