Ask Your Question
0

Run Bundle/Jar in helium-SR2

asked 2015-03-07 16:40:56 -0700

rahulkum gravatar image

I’m not able to run bundle (jar) in distribution-karaf-0.2.2-Helium-SR2.I’m getting the following error.

opendaylight-user@root>install file:/home/ubuntu/myctrlapp/target/myctrlapp-0.1.jar Bundle ID: 256 opendaylight-user@root>start 256 Error executing command: Error executing command on bundles: Unable to execute command on bundle 256: The bundle "de.frankdurr.myctrlapp0.1.0 [256]" could not be resolved. Reason: Missing Constraint: Import-Package: org.apache.felix.dm; version="[3.1.0,4.0.0)"

But if I run this bundle in SDNHUB opendaylight it works fine. How can I import missing package in distribution-karaf-0.2.2-Helium-SR2 ?

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2015-03-07 19:47:28 -0700

faizan gravatar image

updated 2015-03-07 19:47:59 -0700

Hi rahulkum ,

This error means you are missing a bundle in a feature of yours. To fix: Add the bundle containing the indicated package to the failing feature.

Regards, Faizan

edit flag offensive delete publish link more

Comments

Thanks Faizan. But i'm importing that org.apache.felix.dm (pom.xml) . How else i can add that missing package ?

rahulkum ( 2015-03-07 19:53:18 -0700 )edit

@rahulkum, It will come into your features.xml file of myctrlapp.

faizan ( 2015-03-07 21:21:44 -0700 )edit
0

answered 2015-03-10 20:48:12 -0700

yahooc gravatar image

Hi,rahulkum you just install feature in your ODL controller at your controller and type in following instruction

feature:install odl-restconf odl-l2switch-switch odl-mdsal-apidocs odl-adsal-all odl-adsal-northbound odl-dlux-core odl-openflowplugin-all odl-adsal-compatibility-all odl-ovsdb-all odl-lispflowmapping-all

Hope you enjoy ODL

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
2 followers

Stats

Asked: 2015-03-07 16:40:56 -0700

Seen: 221 times

Last updated: Mar 10 '15