Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 2630 invoked from network); 2 Aug 2007 08:57:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Aug 2007 08:57:05 -0000 Received: (qmail 9766 invoked by uid 500); 2 Aug 2007 08:57:04 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 9531 invoked by uid 500); 2 Aug 2007 08:57:04 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 9522 invoked by uid 99); 2 Aug 2007 08:57:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2007 01:57:04 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fmeschbe@gmail.com designates 66.249.92.168 as permitted sender) Received: from [66.249.92.168] (HELO ug-out-1314.google.com) (66.249.92.168) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2007 08:57:00 +0000 Received: by ug-out-1314.google.com with SMTP id s2so304646uge for ; Thu, 02 Aug 2007 01:56:38 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=VQc22PtWjGOdcne4dmoI1Xa2q0Sgr1dASWKZzieRtqU3gs/xpeLqWq05LYYt2K8vhE5hkPN7DsdFuBurEuNduXTCfifjKJrlcvKJuvUSf4SpYCWN1Dn+/FlKYmZNgrKDqOS8In1M0+irIWzO6ee3iPfIEeq73XOOqC7/ABbJiVA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=DP54HvjxBva4X21X87NaQpBqncc2KgIvVMQtYoHxIli+Opgmzqj2mQwiDU9AJFkcpfukR45qRkSKZGmgLBuDJZF96NQAULlfjcOqTfve8DQ8c3rLBkhu8iE2bdwsYqRHU1SvW94sIr2BoXhjjvQ1eC4NSJqkqVc+0MidvnfYFus= Received: by 10.78.132.2 with SMTP id f2mr467333hud.1186044997983; Thu, 02 Aug 2007 01:56:37 -0700 (PDT) Received: from ?10.0.0.73? ( [62.192.10.254]) by mx.google.com with ESMTPS id 38sm700163hua.2007.08.02.01.56.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 02 Aug 2007 01:56:36 -0700 (PDT) Subject: RE: Issue with Apache Felix Declarative Service From: Felix Meschberger To: dev@felix.apache.org In-Reply-To: <000001c7d374$a64cb320$f2e61960$@com> References: <01c501c7cd5e$aa79d700$ff6d8500$@com> <1185880490.7274.91.camel@bslm-046.corp.day.com> <000001c7d374$a64cb320$f2e61960$@com> Content-Type: text/plain Date: Thu, 02 Aug 2007 10:56:34 +0200 Message-Id: <1186044994.17531.44.camel@bslm-046.corp.day.com> Mime-Version: 1.0 X-Mailer: Evolution 2.8.3 (2.8.3-2.fc6) Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Dev, > Thanks a lot for your explanation, I was a little confused as to how OSGi > resolves import packages if the package has been exported by two different > bundles. Well, this is layed out in the spec in chapter 3.7, Resolving Process, which states that the package version is considered as well as attributes of the export. In case of multiple possible choices for an export, the following list defines the preferences in order of decreasing priority (quoting the Rev. 4.0 spec): * A resolved exporter is preferred over an unresolved exporter. * An exporter with a higher version is preferred over an exporter with a lower version. * An exporter with a lower bundle ID is preferred over an exporter with a higher ID. > As for my problem, we found that we hadn't imported ComponentContext package > in the manifest file. By the way, I am curious to ask, what kind of > debugging strategy can be adopted for OSGi? Because at times the bundles > don't get deployed, but doesn't provide more information as to the reason > why? Though it shows that there was an Error Event generated while starting > the bundle. First of all: have a Log Service implementation and use logging. While the Felix Framework uses an internal logger, having a Log Service handy is always a good thing as many of the Compendium Services use a Log Service to log issues. Second, more hard core of course, you might want to connect your favourite Java IDE/Debugger to the running instance to track the code path. If you encounter issues, using the debugger, which you think would be worth better logging, you might want to file a JIRA issue. Regards Felix