Topic
1 reply Latest Post - ‏2011-08-10T12:25:03Z by SystemAdmin
SystemAdmin
SystemAdmin
153 Posts
ACCEPTED ANSWER

Pinned topic The bundle could not be resolved. Reason: Missing Constraint: Error

‏2011-08-10T08:02:54Z |
Hi,
Thanks to Evelyn for providing the links to start on OSGI. I am using Eclipse IDE and the OSGI Aries runtime is configured based on the RAD -OSGIFree tool lab (http://www.osgi.org/wiki/uploads/CommunityEvent2010/OSGiCE-OSGiFreeToolsLab.pdf).
I was trying to explore how the imported packages are resolved. I am using Maven Felix plugin and the generated Manifest looks like this:

Created-By: Apache Maven Bundle Plugin
Embed-Dependency: org.apache.commons.lang*;
Export-Package: com.pcg.interfaces.util.log;uses:="org.slf4j,org.apache.
commons.lang";version="1.0.0",com.pcg.interfaces.osgi;uses:="org.apache
.commons.lang";version="1.0.0"
Import-Package: org.apache.commons.lang;version="[2.6,3)",org.slf4j;vers
ion="[1.6,2)";resolution:=optional
Tool: Bnd-1.43.0

When I start the bundle I get the error 'Missing Constraint: Import-Package: org.apache.commons.lang; version="[2.6.0,3.0.0)".
My question is should I create a bundle for all such jars/lib? or can I include them in the classpath (lib folder) within the bundle?
Thanks
Updated on 2011-08-10T12:25:03Z at 2011-08-10T12:25:03Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    153 Posts
    ACCEPTED ANSWER

    Re: The bundle could not be resolved. Reason: Missing Constraint: Error

    ‏2011-08-10T12:25:03Z  in response to SystemAdmin
    Found the osgi bundles for Apache Commons at http://ebr.springsource.com/repository/app/ and 2.5 is the latest available bundle.
    Thanks