Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3B8D1100F9 for ; Wed, 30 Oct 2013 14:14:59 +0000 (UTC) Received: (qmail 6752 invoked by uid 500); 30 Oct 2013 14:12:36 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 6691 invoked by uid 500); 30 Oct 2013 14:12:25 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 6588 invoked by uid 99); 30 Oct 2013 14:12:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Oct 2013 14:12:10 +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 (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [74.125.83.48] (HELO mail-ee0-f48.google.com) (74.125.83.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Oct 2013 14:12:04 +0000 Received: by mail-ee0-f48.google.com with SMTP id d49so666270eek.21 for ; Wed, 30 Oct 2013 07:11:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type; bh=2CJxOwzoR2qEmS68Y46MipDLwnDYAR5cyeT3ioo5hyQ=; b=ZjQtUU4qKp+Rn1FIRDIFHeIkXtD7HGezLN1uruLJ64xDWJIxhbXe3HxiummOAgaCes 5y3uMkVO9J4OykqD+PA/A8tdg96FKS9IxqyLtXRw5We7VW/Oz7b36vm6UiJ3i7V+znIx dGFUw4ib8UUsr+ZrNc/Sd8ZMZGYkC97FU2XgADTk1sMJHEP9Irxh82aOpDiAjZDPvv2J pYLK0BcmUgk7RFa+buKB4n7MKMPrgg/8Mzjl2OxtrJXudH/PhWImY1roG/fVqch9mwMr PwrWj3NBoBp63LS2iKrI/vD5UFELfGokwc02iUbip9TryFjkI5cIsVRAMaNWvB1Spmjg b/pA== X-Gm-Message-State: ALoCoQlT2OOwL8j1ncgqmRbePFNDsMdGTHpYxCYlq+xkS06nsQ1wxKwueNxQrBOJWCL48vYyAoQB X-Received: by 10.14.180.73 with SMTP id i49mr2533471eem.55.1383142303525; Wed, 30 Oct 2013 07:11:43 -0700 (PDT) Received: from [192.168.254.134] ([147.83.206.82]) by mx.google.com with ESMTPSA id i1sm83960995eeg.0.2013.10.30.07.11.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 30 Oct 2013 07:11:42 -0700 (PDT) Message-ID: <5271139D.9050400@i2cat.net> Date: Wed, 30 Oct 2013 15:11:41 +0100 From: Isart Canyameres User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: users@cxf.apache.org Subject: Re: problem exporting OSGI service using DOSGI References: <525FF85F.1090504@gmail.com> <52601790.80401@gmail.com> In-Reply-To: <52601790.80401@gmail.com> Content-Type: multipart/mixed; boundary="------------070009050505050909020502" X-Virus-Checked: Checked by ClamAV on apache.org --------------070009050505050909020502 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Hi all, I'm trying to use cxf-bundle-2.7.7 to create an OSGi application that uses org.apache.cxf.ws.security.wss4j package. However, cxf-bundle-2.7.7 fails to start, due to following error: Activator start error in bundle org.apache.cxf.bundle [158]. Caused by: java.lang.ClassNotFoundException: org.apache.neethi.AssertionBuilderFactory not found by org.apache.cxf.bundle [158] I've been looking into cxf-bundle-2.7.7 manifest and couldn't find any dependency to this package. Please, see attached document if more detail is desired. I guess this problem is related with the issue noticed in the previous conversation. Taking the same recommended approach of using individual CXF modules (instead of composite bundles), how can I know which modules to install? Thank you in advance, Isart El 17/10/13 19:00, Sergey Beryozkin ha escrit: > Hi David > On 17/10/13 17:00, David Bosschaert wrote: >>> Caused by: java.lang.NoClassDefFoundError: >>> org/osgi/framework/BundleActivator >> >> Is the bundle importing the org.osgi.framework package? >> > Hmm..., good catch, it appears none of CXF 2.7.7 composite/big bundles > import it. It is there imported correctly in CXF 2.7.6. > > We now work with installing individual modules, example, cxf rt core, > etc, which import this package, but the big bundles have missed it in > CXF 2.7.7 > > Adri�n, can you experiment with installing individual CXF modules > (which are now bundles) ? You probably need cxf-rt-core, > cxf-rt-bindings-xml, cxf-rt-transports-http & cxf-rt-frontend-jaxrs, > this is the better way to go, in CXF 3.0.0 composite bundles (except > the all one) have been removed, > > though this issue needs to be fixed for 2.7.8 > > Thanks, Sergey -- Isart Canyameres Gim�nez Distributed Applications and Networks Area (DANA) Fundaci� i2CAT, Internet i Innovaci� Digital a Catalunya, Barcelona, Spain T: +34 93 567 99 27 - http://dana.i2cat.net --------------070009050505050909020502 Content-Type: text/plain; charset=UTF-8; name="errorDescription.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="errorDescription.txt" karaf>features:install my-feature Error executing command: Could not start bundle mvn:org.apache.cxf/cxf-bundle/2.7.7 in feature(s) my-feature-0.24.1: Activator start error in bundle org.apache.cxf.bundle [158]. Logs: org.apache.cxf.bus.extension.ExtensionException: Could not load extension class org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl. at org.apache.cxf.bus.osgi.CXFExtensionBundleListener$OSGiExtension.tryClass(CXFExtensionBundleListener.java:140) at org.apache.cxf.bus.extension.Extension.getClassObject(Extension.java:194) at org.apache.cxf.bus.extension.ExtensionManagerImpl.getBeansOfType(ExtensionManagerImpl.java:317) at org.apache.cxf.bus.CXFBusImpl.getExtension(CXFBusImpl.java:108) at org.apache.cxf.bus.extension.ExtensionManagerBus.(ExtensionManagerBus.java:110) at org.apache.cxf.bus.extension.ExtensionManagerBus.(ExtensionManagerBus.java:134) at org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:40) at org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:36) at org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:32) at org.apache.cxf.dosgi.dsw.handlers.HttpServiceManager.registerServletAndGetBus(HttpServiceManager.java:77) at org.apache.cxf.dosgi.dsw.handlers.JaxRSPojoConfigurationTypeHandler.createServer(JaxRSPojoConfigurationTypeHandler.java:129) at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportInterfaces(RemoteServiceAdminCore.java:165) at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:121) at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:56) at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:54) at java.security.AccessController.doPrivileged(Native Method) at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:54) at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:39) at org.apache.cxf.dosgi.topologymanager.exporter.TopologyManagerExport.exportServiceUsingRemoteServiceAdmin(TopologyManagerExport.java:177) at org.apache.cxf.dosgi.topologymanager.exporter.TopologyManagerExport.doExportService(TopologyManagerExport.java:168) at org.apache.cxf.dosgi.topologymanager.exporter.TopologyManagerExport$3.run(TopologyManagerExport.java:143) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.NoClassDefFoundError: org/apache/neethi/AssertionBuilderFactory at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1947) at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:752) at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:72) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1807) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1947) at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:752) at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:72) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1807) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:670) at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1654) at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:909) at org.apache.cxf.bus.osgi.CXFExtensionBundleListener$OSGiExtension.tryClass(CXFExtensionBundleListener.java:131) ... 23 more Caused by: java.lang.ClassNotFoundException: org.apache.neethi.AssertionBuilderFactory not found by org.apache.cxf.bundle [158] at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:812) at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:72) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1807) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 43 more Manifest for mvn:org.apache.cxf/cxf-bundle/2.7.7 does not import org.apache.neethi package: karaf>osgi:headers 158 Apache CXF Bundle Jar (158) --------------------------- Specification-Title = Apache CXF Tool = Bnd-2.1.0.20130426-122213 Specification-Version = 2.7.7 Specification-Vendor = The Apache Software Foundation Implementation-Version = 2.7.7 Build-Jdk = 1.6.0_33 Implementation-Vendor-Id = org.apache Created-By = Apache Maven Bundle Plugin Implementation-Title = Apache CXF Manifest-Version = 1.0 Bnd-LastModified = 1379522779665 SPI-Provider = true Built-By = dkulp Implementation-Vendor = The Apache Software Foundation Bundle-Vendor = The Apache Software Foundation Bundle-Activator = org.apache.cxf.bus.osgi.CXFActivator Bundle-Name = Apache CXF Bundle Jar Bundle-DocURL = http://www.apache.org/ Bundle-Description = Apache CXF Bundle Jar Bundle-SymbolicName = org.apache.cxf.bundle Bundle-Version = 2.7.7 Bundle-License = http://www.apache.org/licenses/LICENSE-2.0.txt Bundle-ManifestVersion = 2 DynamicImport-Package = com.sun.xml.bind, com.sun.xml.bind.*, com.sun.xml.internal.bind, com.sun.xml.internal.bind.*, com.ctc.wstx.*, org.apache.commons.logging.*, org.slf4j.*, org.slf4j.impl.*, org.eclipse.jetty.plus.jaas, org.eclipse.jetty.plus.jaas.*, org.apache.karaf.jaas.modules, org.apache.karaf.jaas.modules.*, org.eclipse.jetty.jmx, org.eclipse.jetty.jmx.* Import-Package = javax.xml.soap, org.apache.http.nio.conn;resolution:=optional;version="[4.0.0.beta3,4.1)", org.apache.lucene.search;resolution:=optional, org.apache.http.nio.conn.scheme;resolution:=optional;version="[4.0.0.beta3,4.1)", org.apache.http.impl.nio.conn;resolution:=optional;version="[4.0.0.beta3,4.1)", org.apache.lucene.document;resolution:=optional, javax.jms;resolution:=optional;version="[0.0,2)", javax.activation;version="[0.0,2)", org.apache.lucene.index;resolution:=optional, javax.annotation;version="[0.0,2)", org.joda.time;resolution:=optional;version="[1.6,2)", org.apache.http.impl.nio.client;resolution:=optional;version="[4.0.0.beta3,4.1)", repackage;resolution:=optional, org.apache.http.nio.conn.ssl;resolution:=optional;version="[4.0.0.beta3,4.1)" Export-Package = META-INF.cxf;version=2.7.7, META-INF.cxf.osgi;version=2.7.7 --------------070009050505050909020502--