Return-Path: Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: (qmail 46748 invoked from network); 10 Feb 2011 04:09:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Feb 2011 04:09:23 -0000 Received: (qmail 82219 invoked by uid 500); 10 Feb 2011 04:09:23 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 81902 invoked by uid 500); 10 Feb 2011 04:09:20 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 81893 invoked by uid 99); 10 Feb 2011 04:09:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Feb 2011 04:09:19 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Feb 2011 04:09:15 +0000 Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1PnNpu-0007VX-9h for users@felix.apache.org; Wed, 09 Feb 2011 20:08:54 -0800 Message-ID: <30889183.post@talk.nabble.com> Date: Wed, 9 Feb 2011 20:08:54 -0800 (PST) From: samsmarty To: users@felix.apache.org Subject: Re: Getting error while starting a bundle In-Reply-To: <0DBB5E91-418A-4E82-BC51-7323C3EB06A6@justinedelson.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: sadashiv.borkar@gmail.com References: <30887791.post@talk.nabble.com> <0DBB5E91-418A-4E82-BC51-7323C3EB06A6@justinedelson.com> Thanks you are right.Does this mean that i cannot use the regular jar file into my bundle. Is there a way to do it. I have seen couple of manifest files in eclipse which uses Bundle-Classpath to add external jars. any idea ? Thanks, Sadashiv justinedelson wrote: > ' > Is a bundle exporting this package installed in the framework? I'm > guessing no and that's your problem. > > Justin > > On Feb 9, 2011, at 5:46 PM, samsmarty wrote: > >> >> Hi All, >> Iam getting following error while starting the bundle. >> org.osgi.framework.BundleException: Unresolved constraint in bundle >> OSGIBndTutorial.bundledirectorymanager [21]: Unable to resolve 21.12: >> missing requirement [21.12] package; >> (package=org.apache.commons.io.filefilter) >> Iam using commons-io-1.3.2.jar in my bundle for some processing. Can you >> please let me know how to get around the error. I read some forms which >> talked about adding the bundle classpath or by using >> >> org.osgi.framework.system.packages.extra: >> org.apache.commons.io.filefilter >> >> but nothing worked. Iam using felix and bnd tools from the following link >> http://www.aqute.biz/Code/Bnd bnd >> >> Below is my bundle header configuration >> >> OSGIBndTutorial.bundledirectorymanager (21) >> ------------------------------------------- >> Bnd-LastModified = 1297289848595 >> Bundle-Activator = org.osgi.tutorial.BundleDirectoryManager >> Bundle-ManifestVersion = 2 >> Bundle-Name = OSGIBndTutorial.bundledirectorymanager >> Bundle-SymbolicName = OSGIBndTutorial.bundledirectorymanager >> Bundle-Version = 0 >> Created-By = 1.6.0_13 (Sun Microsystems Inc.) >> Import-Package = org.apache.commons.io.filefilter,org.osgi.framework >> Manifest-Version = 1.0 >> Private-Package = org.osgi.tutorial >> Tool = Bnd-1.31.0 >> >> Iam using MyEclipse with felix and bnd tools for executing the program. >> >> Any help would be appreciated. >> -- >> View this message in context: >> http://old.nabble.com/Getting-error-while-starting-a-bundle-tp30887791p30887791.html >> Sent from the Apache Felix - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >> For additional commands, e-mail: users-help@felix.apache.org >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org > For additional commands, e-mail: users-help@felix.apache.org > > > -- View this message in context: http://old.nabble.com/Getting-error-while-starting-a-bundle-tp30887791p30889183.html Sent from the Apache Felix - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org