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

0

could not be resolved. Reason: Missing Constraint: Import-Package: org.opendaylight.controller.sal.action; version="[0.7.0,1.0.0)

asked 2017-03-26 07:30:20 -0800

thebigbg gravatar image

updated 2017-03-26 07:54:29 -0800

Hello, i am new to opendaylight and karaf. Im trying to start a Bundle (that shows Hello World when it start).

When i run "Bundle:install file:/......" its return the id of the bundle.
However, when i run "bundle:start id" i got this Error:

Error executing command: Error executing command on bundles: Unable to execute command on bundle 291: The bundle "org.opendaylight.controller.helloworld_0.1.0 [291]" could not be resolved. Reason: Missing Constraint: Import-Package: org.opendaylight.controller.sal.action; version="[0.7.0,1.0.0)"

Can somebody help me to fix it please?

edit retag flag offensive close merge delete

Comments

I once had a similar problem, mine was to do with the DLUX loader..... I solved the issue by changing the archetype version ( I assume there was an issue with the original one I was using). I hope this helps some bit EDIT: I was following the dlux app guide and used archetypes to start the project

klaatz ( 2017-03-28 08:15:59 -0800 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-03-31 02:12:05 -0800

It may be that some of the necessary dependencies are not present in your pom.xml file, or they use the wrong version. It looks like the current version of the controller project no longer has the org.opendaylight.controller.sal.action package:

grep -r --include="*.java" "org.opendaylight.controller.sal.action" *

That means that you're using a recent version of the maven archetype to generate your project, but an old tutorial to write your Hello World, and that's why things don't work.

edit flag offensive delete publish link more

Comments

Thank you. I am trying the newer tutorials now

thebigbg ( 2017-03-31 11:12:34 -0800 )edit
Login/Signup to Answer

Stats

Asked: 2017-03-26 07:30:20 -0800

Seen: 113 times

Last updated: Mar 31