felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From el_paso <robert.dara...@windowslive.com>
Subject Re: org.wiring.package missing
Date Thu, 10 Nov 2011 14:09:49 GMT

Hi,

<Import-Bundle>org.wiring.package</Import-Bundle>






Richard S. Hall wrote:
> 
> On 11/3/11 19:33, el_paso wrote:
>> Hi,
>>
>> I've read some topics about this but it's still not clear to me.  I try
>> to
>> make something like Example 6 in the OSGi tutorial
>> (http://felix.apache.org/site/apache-felix-osgi-tutorial.html) with
>> maven2
>> in eclipse, but felix throws me the following error at start:
>>
>> org.osgi.framework.BundleException: Unresolved constraint in bundle
>> com.mybundle [6]: Unable to resolve 6.1: missing requirement [6.1]
>> osgi.wiring.package; (osgi.wiring.package=anotherbundle.api)
>>
>> I simply don't understand this error. Am I missing this
>> "org.wiring.package"? How/where should I import/install it and where can
>> I
>> get it? Or maybe is it another problem?
> 
> Read section 3.3 of the OSGi R4.3 spec for more detailed background, but 
> I'll explain quickly.
> 
> This error message is telling you that bundle com.mybundle has expressed 
> a dependency on something that is not being provided by any other 
> deployed bundle.
> 
> The portion of the error message you ask about is telling you that the 
> namespace of the unsatisfied requirement is "osgi.wiring.package", which 
> is the namespace for an Import-Package (read the spec section I refer to 
> above).
> 
> The next part of the message inside the parenthesis is the LDAP filter 
> that defines the requirement. In this case, the dependency is on package 
> anotherbundle.api. As the spec will describe, OSGi uses the namespace 
> name as the "key" property name when it models dependencies, so that is 
> why you see "osgi.wiring.package" repeated. The first time it is the 
> dependency namespace, the second time it is actually the key name for 
> the package name.
> 
> (Personally, I think this naming convention is a little goofy and 
> unintuitive, but it was done to provide a hint as to how you framework 
> implementations might want to index capabilities.)
> 
> Hope that helps.
> 
> -> richard
> 
>>
>> please help
> 
> ---------------------------------------------------------------------
> 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/Re%3A-org.wiring.package-missing-tp32777412p32818890.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


Mime
View raw message