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: [email protected]
For additional commands, e-mail: [email protected]