Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-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 3B8FC1147A for ; Tue, 22 Apr 2014 14:47:27 +0000 (UTC) Received: (qmail 26585 invoked by uid 500); 22 Apr 2014 14:47:23 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 26482 invoked by uid 500); 22 Apr 2014 14:47:23 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 26473 invoked by uid 99); 22 Apr 2014 14:47:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Apr 2014 14:47:23 +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: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.212.176] (HELO mail-wi0-f176.google.com) (209.85.212.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Apr 2014 14:47:18 +0000 Received: by mail-wi0-f176.google.com with SMTP id r20so3402304wiv.3 for ; Tue, 22 Apr 2014 07:46:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=BXYNYqZSm2bpqO9LWmKPtQj2+1FIxK5CS4+qDYHnPoo=; b=f3VzXb+vQ8i/0gIZ+ydQcWvaOrfwqu/n8aGyZ2ntkyvvs5I+FRtm3dSmujeDh99ygt jckYAZTaEQwxlVjiKhsC5ysZjmJKXa3Ory/tv5aSjdSLWWatSAoSlFe9SYJt3TURGQqx 9HON8i1DNPyKnCIjWK2J99pWFHB3/AE/AX6V0ss6IkLaOmPgqrJ8evaUC4w9y8G5k2Lw doEq6thKZUpNOYbbq+5Fj3hg9ae8kFwQC0hmSsatTNUBEQJdm3ZaY4t4d3lt+pDHgTa3 P/ioLhH5MMWlcNtXJeAPhIlr2iTTBze6wYUGplIGc/PeOnswkshg34+iLUPFwRcjwqt8 h8DA== X-Gm-Message-State: ALoCoQku9gWDNPMxf1HgZsbNjG3My0hmUWdEExqFncKZl6DeZnjXaT5wrtSYMBVApKINOBeL+S0I MIME-Version: 1.0 X-Received: by 10.181.5.6 with SMTP id ci6mr19167944wid.39.1398178016367; Tue, 22 Apr 2014 07:46:56 -0700 (PDT) Received: by 10.227.90.9 with HTTP; Tue, 22 Apr 2014 07:46:56 -0700 (PDT) X-Originating-IP: [212.44.26.53] In-Reply-To: References: Date: Tue, 22 Apr 2014 15:46:56 +0100 Message-ID: Subject: Re: [all] Dependency resolution. From: Duncan Jones To: Commons Developers List Cc: Matt Benson Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On 22 April 2014 15:45, Duncan Jones wrote: > Hi Paul, > > On 22 April 2014 15:25, Paul Benedict wrote: >> Yup. I have depend on Lang 3 for my own code and many of my transitive >> dependencies relies on Lang 2. There's no problem with having both >> libraries in your code. > > I haven't fully understood your description of the problem. You say > you've got commons-confguration:commons-configuration:1.9 on your > classpath and this requires commons-lang(2), yet you also acknowledge > that it's ok to have both commons-lang and commons-lang3 in your > classpath. I agree this shouldn't be a problem. Apparently I'm confusing my Pauls with my Petars. My comments about not understanding the exception (below) still stand, but the first paragraph (above) can be ignored! > The exception you've shown looks more like something isn't happy with > the version of commons-configuration you're using; I'm not sure how > that relates to [lang]. Also, NoClassDefFoundError is typically thrown > *after* a previous failed attempt to find a class [1] - perhaps there > are more useful stack-traces elsewhere in your logs? > > Can you perhaps provide another example of how things are breaking? > > Duncan > > > [1] http://stackoverflow.com/a/5756989/474189 > >> >> >> On Tue, Apr 22, 2014 at 9:22 AM, Matt Benson wrote: >> >>> Note that you can use [lang] v2 and v3 together in the same project as both >>> the Maven coordinates and package names have been changed with the major >>> version upgrade. >>> >>> Matt >>> >>> >>> On Tue, Apr 22, 2014 at 9:07 AM, Petar Tahchiev >> >wrote: >>> >>> > Hi guys, >>> > >>> > I found out I'm using quite a lot of the commons-*:commons-* artifacts in >>> > my project so I decided to upgrade them to their new version in >>> > org.apache.commons:whatever. I only upgraded those that I could so now I >>> > have for instance org.apache.commons:commons-lang3 in my classpath, but >>> > unfortunately I also have commons-confguration:commons-configuration:1.9 >>> > and there I get exceptions like these: >>> > >>> > Caused by: java.lang.NoClassDefFoundError: >>> > org/apache/commons/configuration/ConfigurationException >>> > at java.lang.Class.getDeclaredMethods0(Native Method) >>> > at java.lang.Class.privateGetDeclaredMethods(Class.java:2521) >>> > at java.lang.Class.getDeclaredMethods(Class.java:1845) >>> > at >>> > >>> > >>> org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:402) >>> > at >>> > >>> > >>> org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(PersistenceAnnotationBeanPostProcessor.java:332) >>> > at >>> > >>> > >>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:908) >>> > at >>> > >>> > >>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512) >>> > at >>> > >>> > >>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) >>> > at >>> > >>> > >>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) >>> > at >>> > >>> > >>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) >>> > >>> > >>> > So because commons-configuration:commons-configuration requires >>> > commons-lang2 as a dependency I'm forced to downgrade to commons-lang2. >>> > >>> > My request is this: is it possible to upgrade ALL the commons artifacts >>> to >>> > the correct repository groupId (org.apache.commons) and upgrade their >>> > dependencies? Most of them are already there, and those which are not >>> will >>> > most certainly benefit from a new release (i guess there's been quite a >>> > while they haven't been released and there might be some resolved issues >>> in >>> > the JIRA). >>> > >>> > Is there anyone against having a new release on: commons-logging, >>> > commons-fileupload, commons-codec, >>> > commons-configuration,commons-beanutils,commons-digester and the rest of >>> > the projects which are still using the incorrect groupId. >>> > >>> > -- >>> > Regards, Petar! >>> > Karlovo, Bulgaria. >>> > --- >>> > Public PGP Key at: >>> > >>> https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611 >>> > Key Fingerprint: A369 A7EE 61BC 93A3 CDFF 55A5 1965 8550 C311 0611 >>> > >>> >> >> >> >> -- >> Cheers, >> Paul --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org