Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 59936 invoked from network); 29 Apr 2010 18:42:36 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Apr 2010 18:42:36 -0000 Received: (qmail 83108 invoked by uid 500); 29 Apr 2010 18:42:36 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 83055 invoked by uid 500); 29 Apr 2010 18:42:36 -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 83047 invoked by uid 99); 29 Apr 2010 18:42:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Apr 2010 18:42:36 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=AWL,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of heavy@ungoverned.org designates 69.89.21.11 as permitted sender) Received: from [69.89.21.11] (HELO outbound-mail-01.bluehost.com) (69.89.21.11) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 29 Apr 2010 18:42:29 +0000 Received: (qmail 15334 invoked by uid 0); 29 Apr 2010 18:42:07 -0000 Received: from unknown (HELO host118.hostmonster.com) (74.220.207.118) by cpoproxy1.bluehost.com with SMTP; 29 Apr 2010 18:42:07 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=ungoverned.org; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Identified-User; b=9HfjR/K+20qlS3X3aedMwS+XdGaRVRRsb/88gke29gyKURFKzRU9yjIVikBbCWI6NH29NDHe96Lv2Tq8RtSov6RlNg5ohHEvOgPlDNIOVOvlPmm6glCIuwl02T5XrWL3; Received: from [99.62.222.230] (helo=heavyweight.glastender.com) by host118.hostmonster.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1O7YgZ-0003e1-0O for dev@felix.apache.org; Thu, 29 Apr 2010 12:42:07 -0600 Message-ID: <4BD9D2FA.5000200@ungoverned.org> Date: Thu, 29 Apr 2010 14:42:02 -0400 From: "Richard S. Hall" User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: dev@felix.apache.org Subject: Re: org.osgi.framework.system.packages and Felix embedded in Android References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Identified-User: {1027:host118.hostmonster.com:ungovern:ungoverned.org} {sentby:smtp auth 99.62.222.230 authed with heavy@ungoverned.org} On 4/28/10 13:41, Jackson, Bruce wrote: > Hi All > > I have Felix embedded into an Android app, and I'm trying to export the > packages from the Android environment (e.g. android, android.app, etc) into > Felix. > > I have a couple of questions: first, can I still use the pre-4.2 > constructor: > > Felix felix = new Felix(Properties props); > > ...and if I do so passing in a properties file which contains a > semicolon-seperated list of packages as per the attached, should I see this > working properly? > Which version of the framework are you using? Should be fine for 2.0.x since it needs a Map and Properties is a Map...however, some of the property names have changed since they were standardized in R4.2. > Felix starts ok, but when I try to deploy any bundles to it (for example a > dexified org.apache.log4j) I get a message fro the debugger when I call: > > BundleContent bc = felix.getBundleContent(); > bc.installBundle(name, inputStream); > > 04-28 18:31:45.716: ERROR/SkiftaService(6274): Unresolved constraint in > bundle org.apache.log4j [1]: package; (package=javax.xml.parsers) > > ...which seems to suggest that it can't find the package. > > Any ideas? > Not sure off hand. Try Karl's suggestion. -> richard > Thanks > > Bruce > >