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


Missing Constraint: Import-Package:; version="[1.5.0,2.0.0)

asked 2016-08-19 11:44:51 -0700

arthurguerra gravatar image

updated 2016-08-23 04:06:13 -0700


I've been playing with OpenDaylight recently and now I'm trying to create a Hello-World bundle that would be loaded inside the controller.

Before I started working on my own implementation, I took a look at the samples available on the OpenFlowPlugin repository on Github ( ). I successfully managed to compile the learning-switch sample and create the jar file. With this .jar file in hand, I started the controller and run the following command:

install file:/path/to/learning-switch-jar/learning-switch-0.4.0-SNAPSHOT.jar

The installation seemed to work fine and ODL returned a bundle ID: 190. Then, I run:

start 190

and I got the following exception that I can't figure out how to fix.

Error executing command: Error executing command on bundles: Unable to execute command on bundle 190: The bundle "org.opendaylight.openflowplugin.learning-switch_0.4.0.SNAPSHOT [190]" could not be resolved. Reason: Missing Constraint: Import-Package:; version="[1.5.0,2.0.0)"

All dependecies I have in the pom.xml are the following:


Any help is really appreciated.

Thanks in advance,


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-08-22 05:49:56 -0700

Without your source code it's a bit of a guesswork to figure out what's wrong, but I suspect you may need to add MD-SAL as a dependency to your pom.xml, if you didn't already. Also, the learning switch example may be unmaintained, and using APIs that are no longer available.

edit flag offensive delete publish link more


I updated my question with the project dependencies. Do you think we are missing any other dependency? Thanks a lot!

arthurguerra ( 2016-08-23 04:07:17 -0700 )edit

Hi, I have the same issue. Did you managed to solve this?

luizana ( 2016-10-29 13:26:43 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-08-19 11:44:51 -0700

Seen: 315 times

Last updated: Aug 23 '16