Hi,

It just says "com.mycompany.BTBundle" has to be found somewhere, so the related 
bundle should export the com.mycompany package.

JP

-----Message d'origine-----
De : imo [mailto:[email protected]] 
Envoyé : mardi 8 mars 2016 16:52
À : [email protected]
Objet : Felix+Bkuetooth: Missing requirement?

I am trying to develop a bundle with bluetooth support (listening + publish) 
using netbeans (ubuntu) I have created a Maven | OSGi bundle and then i added 
this to pom.xml:

<dependency>
    <groupId>net.sf.bluecove</groupId>
    <artifactId>bluecove</artifactId>
    <version>2.1.0</version>
</dependency>

<dependency>
        <groupId>net.sf.bluecove</groupId>
        <artifactId>bluecove-gpl</artifactId>
        <version>2.1.0</version>
</dependency>

to the dependencies element.

I also created a service to be registered and launched during bundle start in 
order to be listening bluetooth channel.
In the service I have just (for now) did this:


import javax.bluetooth.*;
import javax.microedition.io.*;


and

try
{
    LocalDevice localDevice = LocalDevice.getLocalDevice(); } catch(Exception 
ex) { }

When i register and start the bundle (and service) I see this:

g! start 15
org.osgi.framework.BundleException: Unable to resolve com.mycompany.BTBundle 
[15](R 15.0): missing requirement [com.mycompany.BTBundle [15](R 15.0)] 
osgi.wiring.package; (osgi.wiring.package=com.ibm.oti.connection) Unresolved
requirements: [[com.mycompany.BTBundle [15](R 15.0)] osgi.wiring.package; 
(osgi.wiring.package=com.ibm.oti.connection)]
g! 


If I comment the line:

LocalDevice localDevice = LocalDevice.getLocalDevice();

Everything works fine...

Any help, please?

Imo



--
View this message in context: 
http://apache-felix.18485.x6.nabble.com/Felix-Bkuetooth-Missing-requirement-tp5016686.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to