Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-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 E7F42DCD3 for ; Fri, 16 Nov 2012 17:02:00 +0000 (UTC) Received: (qmail 21439 invoked by uid 500); 16 Nov 2012 17:02:00 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 21401 invoked by uid 500); 16 Nov 2012 17:02:00 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 21387 invoked by uid 99); 16 Nov 2012 17:02:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Nov 2012 17:02:00 +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 columbro@gmail.com designates 209.85.223.170 as permitted sender) Received: from [209.85.223.170] (HELO mail-ie0-f170.google.com) (209.85.223.170) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Nov 2012 17:01:56 +0000 Received: by mail-ie0-f170.google.com with SMTP id c12so8158243ieb.1 for ; Fri, 16 Nov 2012 09:01:35 -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=hfDdKYV4mg7HrMVPNsRz1ysRstsEY6Yq2b38/SGuPsM=; b=xn/HEGz2qp5EXVoDIZXpsol+IqzGLPQQcbawPz7QPUkb88PUd2L84NWea1P5kicJhH o57ulQqr/ltgPm2AxVYZHrWuwwqsMnKQai/bPiIcK/mHhuUkOPm9ni9h/nsODGWN2Kfc X1OJ+Lrp+EdrhFX1n3iW806dJe4nLMknL1cupAWUF4xVkMPSSECOg99KDiKVC08iZdjr nosI8GeS/vhzlIVyhyH6SXHRVhnVBhDNEifl5py1lg8kwhkef0KcmkqvBuqBmzHRN345 lKQB165uLPSoxj1t/SZP1GH5HoEYn0qD2eLNfQzy20I9SuzPPz3D7HEJmQdP6ZE5TPlk uBzA== MIME-Version: 1.0 Received: by 10.42.175.5 with SMTP id ay5mr4351455icb.10.1353085295634; Fri, 16 Nov 2012 09:01:35 -0800 (PST) Received: by 10.42.71.139 with HTTP; Fri, 16 Nov 2012 09:01:35 -0800 (PST) In-Reply-To: References: <2054138326.60700.1351870396638.JavaMail.jiratomcat@arcas> <1816792549.124557.1353084733554.JavaMail.jiratomcat@arcas> Date: Fri, 16 Nov 2012 09:01:35 -0800 Message-ID: Subject: Re: [jira] [Commented] (CMIS-597) NoClassDefFoundError after upgrading to OpenCMIS 0.8.0 From: Gabriele Columbro To: dev@chemistry.apache.org Content-Type: multipart/alternative; boundary=90e6ba6e8f3865aa1b04ce9fb82b X-Virus-Checked: Checked by ClamAV on apache.org --90e6ba6e8f3865aa1b04ce9fb82b Content-Type: text/plain; charset=ISO-8859-1 The POM looks ok. Did you try already to remove the chemistry-opencmis-client-bindings from your local Maven repo? Sounds like it might be corrupt since the dependency is there and should be resolved. On Fri, Nov 16, 2012 at 8:57 AM, Sebastian Danninger < sebastian.danninger@googlemail.com> wrote: > > > > > > > 4.0.0 > > > org.apache.chemistry.opencmis > chemistry-opencmis > 0.8.0 > ../../pom.xml > > > chemistry-opencmis-client-impl > OpenCMIS Client Implementation > jar > > > ../../ > > > > > > maven-jar-plugin > > > > ${project.build.outputDirectory}/META-INF/MANIFEST.MF > > > > > org.apache.felix > maven-bundle-plugin > 2.3.4 > true > > > bundle-manifest > process-classes > > manifest > > > > > > > > org.apache.commons.codec.*;version="[1.4,2.0)", > org.apache.commons.logging.*;version="[1.1,2.0)", > * > > ${project.url} > > org.apache.chemistry.opencmis.client.osgi.Activator > > > > > maven-assembly-plugin > 2.3 > > > pack-client-with-deps > > single > > package > > true > > > > src/main/assembly/client-with-dependencies-assembly.xml > > > > > > > > > > > > ${project.groupId} > chemistry-opencmis-client-api > ${project.version} > > > ${project.groupId} > chemistry-opencmis-commons-api > ${project.version} > > > ${project.groupId} > chemistry-opencmis-commons-impl > ${project.version} > > > ${project.groupId} > chemistry-opencmis-client-bindings > ${project.version} > > > org.apache.felix > org.osgi.core > 1.0.0 > > > log4j > log4j > 1.2.16 > test > > > org.slf4j > slf4j-log4j12 > 1.6.6 > test > > > > > > > > > > org.apache.chemistry.opencmis.client.runtime.test.config.path > > > > > > > org.apache.maven.plugins > maven-surefire-plugin > > > -Dorg.apache.chemistry.opencmis.client.runtime.test.config.path=${org.apache.chemistry.opencmis.client.runtime.test.config.path} > > > > > > > > > > apache-release > > false > > > > > maven-assembly-plugin > false > > > pack-client-with-deps > > single > > package > > true > > > > src/main/assembly/client-with-dependencies-assembly.xml > > > > > > > > > > > > > > > > thats the pom, attached the output > > > 2012/11/16 Gabriele Columbro (JIRA) > > >> [ >> https://issues.apache.org/jira/browse/CMIS-597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13498912#comment-13498912] >> >> Gabriele Columbro commented on CMIS-597: >> ---------------------------------------- >> >> Can you post the pom.xml of chemistry-opencmis-client-impl that you have >> in your local repo? Also can you post the output of >> >> mvn dependency:tree >> >> on your project? >> >> Artifacts are all there, so I imagine it might be a POM / transitive >> dependency issue. >> >> >> > NoClassDefFoundError after upgrading to OpenCMIS 0.8.0 >> > ------------------------------------------------------ >> > >> > Key: CMIS-597 >> > URL: https://issues.apache.org/jira/browse/CMIS-597 >> > Project: Chemistry >> > Issue Type: Bug >> > Components: opencmis-client >> > Affects Versions: OpenCMIS 0.8.0 >> > Environment: Mac OS X Snow Leopard upgrading a portlet for >> GateIn >> > Reporter: Piergiorgio Lucidi >> > >> > I tried to upgrade the OpenCMIS Client library from 0.7.0 to 0.8.0, but >> it returns the following exception: >> > {code} >> > Caused by: java.lang.NoClassDefFoundError: Could not initialize class >> org.apache.chemistry.opencmis.client.bindings.cache.impl.CacheImpl >> > at >> org.apache.chemistry.opencmis.client.bindings.impl.RepositoryInfoCache.(RepositoryInfoCache.java:54) >> > at >> org.apache.chemistry.opencmis.client.bindings.impl.CmisBindingImpl.clearAllCaches(CmisBindingImpl.java:215) >> > at >> org.apache.chemistry.opencmis.client.bindings.impl.CmisBindingImpl.(CmisBindingImpl.java:129) >> > at >> org.apache.chemistry.opencmis.client.bindings.CmisBindingFactory.createCmisAtomPubBinding(CmisBindingFactory.java:132) >> > at >> org.apache.chemistry.opencmis.client.runtime.CmisBindingHelper.createAtomPubBinding(CmisBindingHelper.java:97) >> > at >> org.apache.chemistry.opencmis.client.runtime.CmisBindingHelper.createBinding(CmisBindingHelper.java:55) >> > at >> org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:107) >> > at >> org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:96) >> > at >> org.alfresco.training.portals.cmis.portlets.CmisUtils.getCmisSession(CmisUtils.java:79) >> > ... 115 more >> > {code} >> > It seems that including only the usual opencmis-client-impl dependency >> in the pom.xml is not enough for getting all the needed resources. >> > {code} >> > >> > org.apache.chemistry.opencmis >> > chemistry-opencmis-client-impl >> > 0.8.0 >> > >> > {code} >> >> -- >> This message is automatically generated by JIRA. >> If you think it was sent incorrectly, please contact your JIRA >> administrators >> For more information on JIRA, see: http://www.atlassian.com/software/jira >> > > -- Gabriele Columbro Principal Architect, Consulting Services Alfresco Software twitter: @mindthegabz blog: http://mindthegab.com mobile: +31627565013 --90e6ba6e8f3865aa1b04ce9fb82b--