Return-Path: X-Original-To: apmail-felix-users-archive@minotaur.apache.org Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 466C62065 for ; Sat, 7 May 2011 21:09:23 +0000 (UTC) Received: (qmail 32170 invoked by uid 500); 7 May 2011 21:09:22 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 32127 invoked by uid 500); 7 May 2011 21:09:22 -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 Delivered-To: moderator for users@felix.apache.org Received: (qmail 49657 invoked by uid 99); 7 May 2011 15:33:03 -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: domain of angelo.vandersijpt_luminis@changelos.com designates 74.125.82.41 as permitted sender) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: BundleException: Unresolved constraint in bundle (package=org.apache.commons.lang) From: Angelo van der Sijpt In-Reply-To: Date: Sat, 7 May 2011 17:32:31 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <13800A04-9B7E-4D70-ACA6-F91D19500BC9@luminis.eu> References: To: X-Mailer: Apple Mail (2.1084) Your bundle correctly imports org.apache.commons.lang, hoping that = someone else exports it. You can basically do two things now, - make sure someone exports it, by packaging commons-lang in a bundle, = and exporting the packages from it (there might be one out there), or - embed the classes you need in your bundle by adding = *;scope=3Dcompile to your bundle = plugin instructions. In your case, the latter is probably the easiest thing to do, even if = this means you have multiple bundles using classes from commons-lang. Angelo On May 7, 2011, at 5:02 PM, Bahadir Konu wrote: > Hi everybody, >=20 > I am new to Felix. I tried to read mail archive messages and = documentation > but still I couldnt solve the problem and I m losing time. >=20 > I have a bundle created by maven bundle plugin. I put that jar to > FELIX_HOME/bundle > When I run felix, I get his error: >=20 > ERROR: Bundle DynamicCalculator [5] Error starting > file:/C:/tools/felix-framework-3.2.1/bundle/service-1.0.jar > (org.osgi.framework.BundleException: Unresolved constraint in bundle > DynamicCalculator [5]: Unable to resolve 5.0: missing requirement = [5.0] > package; > = (&(package=3Dorg.apache.commons.lang)(version>=3D2.5.0)(!(version>=3D3.0.0= )))) >=20 > My POM is: >=20 > 4.0.0 > com.bkonu.calculator > service > 1.0 > bundle >=20 > > > commons-lang > commons-lang > 2.5 > > > org.apache.felix > org.apache.felix.framework > 2.0.0 > >=20 > >=20 > > > > org.apache.maven.plugins > maven-compiler-plugin > 2.0.2 > > 1.6 > 1.6 > > >=20 > > org.apache.felix > maven-bundle-plugin > true > > >=20 > DynamicCalculatorService > * >=20 > com.bkonu.calculator.service >=20 > = com.bkonu.calculator.ExpressionEvaluatorActivator >=20 > > > > > >=20 > In the error message we see: (version>=3D2.5.0)(!(version>=3D3.0.0) = What s the > meaning of this? >=20 > The manifest file in the jar is: >=20 > Manifest-Version: 1.0 > Export-Package: com.bkonu.calculator.service;uses:=3D"org.apache.commons= > .lang" > Tool: Bnd-1.15.0 > Bundle-Name: Unnamed - com.bkonu.calculator:service:bundle:1.0 > Created-By: Apache Maven Bundle Plugin > Build-Jdk: 1.6.0_22 > Bundle-Version: 1.0.0 > Bnd-LastModified: 1304778448213 > Bundle-ManifestVersion: 2 > Bundle-Activator: com.bkonu.calculator.ExpressionEvaluatorActivator > Bundle-License: http://www.apache.org/licenses/LICENSE-2.0 > Bundle-SymbolicName: DynamicCalculatorService > Import-Package: com.bkonu.calculator.service,org.apache.commons.lang;v > ersion=3D"[2.5,3)",org.osgi.framework;version=3D"[1.5,2)" >=20 > Should I change felix's config.properties? (Doesn't sound very logical = for a > maven dependency like apache.commons.lang) >=20 > Can anybody help please? >=20 > Thanks, > Bahad=C4=B1r Konu --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org