Return-Path: X-Original-To: apmail-karaf-user-archive@minotaur.apache.org Delivered-To: apmail-karaf-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B29E217E18 for ; Mon, 31 Aug 2015 12:20:57 +0000 (UTC) Received: (qmail 2826 invoked by uid 500); 31 Aug 2015 12:20:57 -0000 Delivered-To: apmail-karaf-user-archive@karaf.apache.org Received: (qmail 2781 invoked by uid 500); 31 Aug 2015 12:20:57 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 2771 invoked by uid 99); 31 Aug 2015 12:20:57 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Aug 2015 12:20:57 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id BE1BF182574 for ; Mon, 31 Aug 2015 12:20:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.463 X-Spam-Level: * X-Spam-Status: No, score=1.463 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Fjom0tC5gYXz for ; Mon, 31 Aug 2015 12:20:48 +0000 (UTC) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 1208242B5D for ; Mon, 31 Aug 2015 12:20:48 +0000 (UTC) Received: by wicpl12 with SMTP id pl12so31642881wic.0 for ; Mon, 31 Aug 2015 05:20:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=r+QMPh8tyD+/GB03YNU0CfjSVaxQivulOkJoSDQeKjM=; b=SWLL6643SF3uc45O/YBMfGW/GFAkuEeipi2wPfXYANQqT3pW4Yoi7nyPtQnqBb4yU6 OHDsrauZCmGhDBE11SsOr45IGPY2mlPmc3X/x5m3rgc1kkz63qP4E1zNL84l2aqLg2i1 pS51T2EniUhgVbwuYS/S0VPHG6ye5NRkDYhNdaRThydWRAt6Cx+I9ZmSRTXsBi5/LrlN HwdJlTS2+kKEMurFparDPviK1AVe+GXt6sMusl+KX2b4dnmivYyGlWv/NlxKYStHU7tz dLqnuzdxCoNHnriovuXczD0XefyNndjyD1j6Ytw/MSacmEPVLOEXjDWBG+DQXyR2RVXC L8Xg== MIME-Version: 1.0 X-Received: by 10.180.11.176 with SMTP id r16mr19142434wib.87.1441023647099; Mon, 31 Aug 2015 05:20:47 -0700 (PDT) Received: by 10.28.103.193 with HTTP; Mon, 31 Aug 2015 05:20:47 -0700 (PDT) Date: Mon, 31 Aug 2015 14:20:47 +0200 Message-ID: Subject: Karaf: How to get Equinox DS working correctly From: Markus Rathgeb To: user@karaf.apache.org Content-Type: text/plain; charset=UTF-8 Hello, I have to use the Equinox OSGi framework and Equinox DS in a Karaf container. The Equinox OSGi framework is no problem at all. I added "karaf.framework=equinox" to "etc/custom.properties" and started Karaf. To install DS of Equinox I installed first the Equnix util bundle and after that Equinox DS bundle: bundle:install http://repository.grepcode.com/java/eclipse.org/4.4.1/plugins/org.eclipse.equinox.util_1.0.500.v20130404-1337.jar bundle:install http://repository.grepcode.com/java/eclipse.org/4.4.1/plugins/org.eclipse.equinox.ds_1.4.200.v20131126-2331.jar The Equinox DS bundle could not be started because its "Import-Package" line for org.osgi.service.component;version="[1.1,1.3)" It does not export org.osgi.service.component themselves as it is done by org.apache.felix.scr. Perhaps the difference between the two bundles are exact this one: http://felix.apache.org/documentation/tutorials-examples-and-presentations/apache-felix-osgi-faq.html#should-a-service-providerconsumer-bundle-be-packaged-with-its-service-api-packages So, but I have to use Equinox DS. It is working, if I install the "org.eclipse.osgi.services" bundle, but this could be incorrect similar to install a org.osgi.compendium bundle. I have already read the reply of JBO in this topic years ago: http://karaf.922171.n3.nabble.com/Newbie-question-Useradmin-service-dependency-from-where-td4026903.html#a4026905 "You don't have (and must not ;)) put compendium jar in the deploy folder." But which packages can be added to "org.osgi.framework.system.packages" at all? The Equinox OSGi bundle does not contain the org.osgi.service.component package. Same problem as DS also exists for Equinox Event bundle. Ah, and if I installed "org.eclipse.osgi.services" feature:list will not work until the next restart of Karaf. But as I should not install the bundle, this just as a note. Could you give me some tips? Best regards, Markus