The bundle requires SCR (the package org.osgi.service.component is provided by Felix SCR).
So try to install the scr feature first:

feature:install scr

and after try to start your bundle, it should be better.

Regards
JB

On 06/01/2014 08:57 PM, lionceau wrote:
OMG , i understand why .. because i use the aQute.sudoku.jar and i sould use
this aQute.webrpc.jar  link <http://www.aqute.biz/Code/Download#sudoku>  .

Then , when i use   aQute.sudoku.jar, I have the same problem , i can't run
the bundle
When i use aQute.webrpc.jar I have this error :


karaf@root(dev)> feature:install greeter_server
Error executing command: Could not start bundle
file:/C:/Users/Florian/Downloads
/apache-karaf-3.0.1/apache-karaf-3.0.1/deploy/aQute.webrpc.jar in feature(s)
: U
nresolved constraint in bundle aQute.webrpc [183]: Unable to resolve 183.0:
miss
ing requirement [183.0] osgi.wiring.package;
(&(osgi.wiring.package=org.osgi.ser
vice.component)(version>=1.0.0))
karaf@root(dev)>
karaf@root(dev)>
karaf@root(dev)>
karaf@root(dev)>
karaf@root(dev)>
karaf@root(dev)>
karaf@root(dev)>
karaf@root(dev)>
karaf@root(dev)>
karaf@root(dev)>
karaf@root(dev)> list |grep aQ
138 | Active    |  80 | 1.0                  | aQute.sudoku

183 | Installed |  80 | 1.0                  | aQute.webrpc

karaf@root(dev)> start 183
Error executing command: Error executing command on bundles:
         Unable to execute command on bundle 183: Unresolved constraint in
bundle
  aQute.webrpc [183]: Unable to resolve 183.0: missing requirement [183.0]
osgi.w
iring.package;
(&(osgi.wiring.package=org.osgi.service.component)(version>=1.0.0
))
karaf@root(dev)>



--
View this message in context: 
http://karaf.922171.n3.nabble.com/I-can-deploy-a-jar-Sudoku-in-Karaf-3-but-can-t-use-it-why-tp4033368p4033370.html
Sent from the Karaf - User mailing list archive at Nabble.com.


--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to