Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 64129 invoked from network); 22 May 2009 20:20:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 May 2009 20:20:04 -0000 Received: (qmail 41773 invoked by uid 500); 22 May 2009 20:19:27 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 40941 invoked by uid 500); 22 May 2009 20:19:24 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 40009 invoked by uid 99); 22 May 2009 20:01:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 May 2009 20:01:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 May 2009 20:01:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BB10129A001D for ; Fri, 22 May 2009 13:00:45 -0700 (PDT) Message-ID: <1740301079.1243022445765.JavaMail.jira@brutus> Date: Fri, 22 May 2009 13:00:45 -0700 (PDT) From: "Tim Ellison (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-6074) [classlib][luni] JAR referenced in a JAR's manifest 'Class-Path' that contains 'file' scheme URIs aren't loaded In-Reply-To: <512815514.1232516219778.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tim Ellison updated HARMONY-6074: --------------------------------- Fix Version/s: (was: 5.0M9) 5.0M10 > [classlib][luni] JAR referenced in a JAR's manifest 'Class-Path' that contains 'file' scheme URIs aren't loaded > --------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-6074 > URL: https://issues.apache.org/jira/browse/HARMONY-6074 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 5.0M8 > Reporter: Nathan Beyer > Assignee: Nathan Beyer > Fix For: 5.0M10 > > Attachments: HARMONY-6074-V2.diff, HARMONY-6074.diff > > Original Estimate: 24h > Remaining Estimate: 24h > > I ran into this while running Abdera's Maven build with the Harmony trunk. Surefire, the Maven plugin that invokes unit tests, when forked (default) creates an empty JAR file with a manifest like this. > Manifest-Version: 1.0 > Main-Class: org.apache.maven.surefire.booter.SurefireBooter > Class-Path: file:/C:/Users/nathan/.m2/repository/org/apache/maven/surefi > re/surefire-booter/2.4.2/surefire-booter-2.4.2.jar file:/C:/Users/natha > n/.m2/repository/org/apache/maven/surefire/surefire-api/2.4.2/surefire- > api-2.4.2.jar file:/C:/dev/abdera/dependencies/i18n/target/test-classes > / file:/C:/dev/abdera/dependencies/i18n/target/classes/ file:/C:/Users/ > nathan/.m2/repository/junit/junit/4.3/junit-4.3.jar file:/C:/Users/nath > an/.m2/repository/org/apache/geronimo/specs/geronimo-activation_1.0.2_s > pec/1.1/geronimo-activation_1.0.2_spec-1.1.jar > When invoked, the Harmony JRE throws the following exception. > Uncaught exception in main: > java.lang.ClassNotFoundException: org.apache.maven.surefire.booter.SurefireBooter > at java.net.URLClassLoader.findClass(URLClassLoader.java:892) > at java.lang.ClassLoader.loadClass(ClassLoader.java:489) > at java.lang.ClassLoader$SystemClassLoader.loadClass(ClassLoader.java:871) > at java.lang.ClassLoader.loadClass(ClassLoader.java:268) > at org.apache.harmony.vm.JarRunner.main(JarRunner.java:72) > I did some debugging it seems the source of the issue is in the java.net.URLClassLoader in the method 'getInternalURLs(URL,String)'. While looping over the values in 'Class-Path', new URLs are created, but they're always created relative to the base JAR, even though the URI entry is absolute. > I need to read over the manifest specification and make sure that absolute URIs should be treated differently. Regardless, the Sun RI seems to support this capability. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.