Errors when trying to create a Component Development (Declarative Services) project in Eclipse

570 views
Skip to first unread message

Thomas Kunnumpurath

unread,
Mar 9, 2012, 4:46:39 PM3/9/12
to bndtool...@googlegroups.com
I'm basically following the tutorial listed here:
http://bndtools.org/tutorial.html

After creating a Component Development project, I get the following errors in eclipse:
biz.aQute.bnd.annotation;version=0 Not found in [bnd-cache, aQute.lib.deployer.obr.LocalOBR@1e668c2, aQute.lib.deployer.obr.OBR@1e7a4d0, aQute.lib.deployer.obr.LocalOBR@f55ff2]    bnd.bnd    /osgi-implementation    Unknown    Bnd Classpath Resolution Problem
Component cannot be resolved to a type    ExampleComponent.java    /osgi-implementation/src/org/example    line 5    Java Problem
org.apache.felix.scr;version=0 Not found in [bnd-cache, aQute.lib.deployer.obr.LocalOBR@1e668c2, aQute.lib.deployer.obr.OBR@1e7a4d0, aQute.lib.deployer.obr.LocalOBR@f55ff2]    bnd.bnd    /osgi-implementation    Unknown    Bnd Classpath Resolution Problem
org.apache.felix.shell;version=0 Not found in [bnd-cache, aQute.lib.deployer.obr.LocalOBR@1e668c2, aQute.lib.deployer.obr.OBR@1e7a4d0, aQute.lib.deployer.obr.LocalOBR@f55ff2]    bnd.bnd    /osgi-implementation    Unknown    Bnd Classpath Resolution Problem
org.apache.felix.shell.tui;version=0 Not found in [bnd-cache, aQute.lib.deployer.obr.LocalOBR@1e668c2, aQute.lib.deployer.obr.OBR@1e7a4d0, aQute.lib.deployer.obr.LocalOBR@f55ff2]    bnd.bnd    /osgi-implementation    Unknown    Bnd Classpath Resolution Problem
osgi.cmpn;version=0 Not found in [bnd-cache, aQute.lib.deployer.obr.LocalOBR@1e668c2, aQute.lib.deployer.obr.OBR@1e7a4d0, aQute.lib.deployer.obr.LocalOBR@f55ff2]    bnd.bnd    /osgi-implementation    Unknown    Bnd Classpath Resolution Problem
The import aQute cannot be resolved    ExampleComponent.java    /osgi-implementation/src/org/example    line 3    Java Problem
Will not build OSGi bundle(s) for project osgi-implementation until compilation problems are fixed.    bnd.bnd    /osgi-implementation    Unknown    Bndtools Problem Marker

Yes, my project is in a subdirectory of the workspace folder where the cnf folder is created.

Can someone please assist?

Thanks,
Thomas

Max Franks

unread,
Sep 7, 2013, 5:08:49 PM9/7/13
to bndtool...@googlegroups.com
I'm having the exact same issue. Did you find a solution?

Henri Zwols

unread,
Jan 22, 2014, 11:01:02 AM1/22/14
to bndtool...@googlegroups.com
Same problem here.
bnd.bnd configuration has biz.Qute.bnd.annotation on the Build path, so it ought to work. Clean, rebuild didn't do the trick.
After 15 minutes of Googling and not finding anything I finally gave up and in a desperate last attempt restarted Eclipse.

That helped :)

Ferry Huberts

unread,
Jan 22, 2014, 11:10:00 AM1/22/14
to bndtool...@googlegroups.com
The quick fix is to remove the annotations dependency from the build
path, save, add it back, save.

This is a weird bug we haven't figured out yet...
> --
> You received this message because you are subscribed to the Google
> Groups "bndtools-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to bndtools-user...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
> --
> Ferry Huberts
Reply all
Reply to author
Forward
0 new messages