Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


while installing feature in karaf getting error related to Constraint?

asked 2014-12-10 22:22:36 -0700

Ashwini_Mhatre gravatar image

I have added new feature in l2 switch while installing that feature getting following error:

error details: Error executing command: Could not start bundle mvn:org.opendaylight.l2switch.packetstats/packetstats-model/0.1.0-Helium in feature(s) odl-l2switch-packetstats-0.1.0-Helium: The bundle "org.opendaylight.l2switch.packetstats.model_0.1.0.Helium [346]" could not be resolved. Reason: Missing Constraint: Import-Package: org.opendaylight.yangtools.yang.binding; version="[0.7.0,1.0.0)"

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-12-11 02:31:25 -0700

Dana gravatar image

Your codebases need to be synchronized. The codebases of the karaf container and the codebase of l2switch need to be compliant to each other. If you're modifying code from master, your karaf container also needs to have latest changes.

edit flag offensive delete publish link more


Thank you for your hint.following are the steps which i have taken to add changes in l2 switch correct me if i wrong: 1:I am using this link for l2 switch distribution git clone 2.and until now i am using different karaf distribution :distribution-karaf-0.2.0-Helium.tar.gz 3.i have made changes in l2 switch and copied respective jars in above karaf distribution and i guess that's why i am facing that issue so now i am going to use same karaf distribution which is in

Ashwini_Mhatre ( 2014-12-11 21:46:00 -0700 )edit

if i want to add changes in existing feature e.g addresstracker do i need to change rivision date??

Ashwini_Mhatre ( 2014-12-15 01:10:02 -0700 )edit

No, (if you mean revision in yang models), because revision dates are part of import namespaces.

Dana ( 2014-12-16 02:48:17 -0700 )edit

Thanks Dana.could you please clarify one more to synchronized code bases ? beacuse in karaf there is l2 switch with 0.1.0 helium version is exist and the code which i have modified has 0.2.0-SNAPSHOT version.

Ashwini_Mhatre ( 2014-12-16 03:46:10 -0700 )edit

You have to checkout the code from stable/helium branch, not from master. In stable/helium there are tags that mark each of the service releases for Helium (currently only one).

Dana ( 2014-12-16 04:29:56 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-12-10 22:22:36 -0700

Seen: 519 times

Last updated: Dec 11 '14