java - karaf 3 with OSGi , how install a bundle -
how create bundle using apache karaf 3
? know ?
i have try in eclipse
:
export jar manifest file ... , why have error:
karaf@root(dev)> feature:repo-add file:///c:/users/xx/downloads/apache-kara f-3.0.1/apache-karaf-3.0.1/deploy/features.xml adding feature url file:///c:/users/xx/downloads/apache-karaf-3.0.1/apache- karaf-3.0.1/deploy/features.xml karaf@root(dev)> feature:install greeter_server error executing command: jar not bundle, no bundle-symbolicname file:///c:/ users/xx/downloads/apache-karaf-3.0.1/apache-karaf-3.0.1/deploy/nebula_cdat etime_vf4.jar karaf@root(dev)>
this features.xml
:
<features> <feature name='greeter_server' version='1.0'> <bundle>file:///c:/users/xx/downloads/apache-karaf-3.0.1/apache-karaf-3.0.1/deploy/nebula_cdatetime_vf4.jar</bundle> </feature> </features>
when want export bundle or declarative service eclipse rcp must use file -> export -> plugin development-> deployable plugins , fragments explained here.
obviously project want export bundle must have sound manifest file. have idea of correct osgi-friendly structure project should have, create test plugin project in eclipse rcp using file → new → other... → plug-in development → plug-in project menu. in wizard can choose create simple osgi bundle activator. outcome skeleton new osgi bundle.
Comments
Post a Comment