Ask Your Question
0

BundleException Could not be resolved Missing Constraint

asked 2014-10-14 03:38:29 -0700

anonymous user

Anonymous

osgi> install file:/home/mininet/con/controller/frescocore/target/frescocore-0.1.jar Bundle id is 281 RegisteredServices null ServicesInUse null LoaderProxy de.frescoplus.frescocore; bundle-version="0.1.0" Fragments null ClassLoader null Version 0.1.0 LastModified 1413282890155 Headers Bnd-LastModified = 1413282850856 Build-Jdk = 1.7.055 Built-By = mininet Bundle-Activator = de.frescoplus.frescocore.Activator Bundle-ManifestVersion = 2 Bundle-Name = frescocore Bundle-SymbolicName = de.frescoplus.frescocore Bundle-Version = 0.1.0 Created-By = Apache Maven Bundle Plugin Export-Package = de.frescoplus.frescocore;uses:="org.opendaylight.controller.sal.core,org.apache.felix.dm,org.opendaylight.controller.sal.packet,org.slf4j,com.google.common.util.concurrent,org.opendaylight.controller.md.sal.common.api,com.google.common.base,org.opendaylight.yangtools.yang.common,org.opendaylight.controller.md.sal.binding.api,org.opendaylight.yang.gen.v1.de.frescoplus.rev141013,org.opendaylight.yangtools.yang.binding,org.opendaylight.controller.md.sal.common.api.data";version="0.1.0" Import-Package = com.google.common.base;version="[14.0,15)",com.google.common.util.concurrent;version="[14.0,15)",org.apache.felix.dm;version="[3.0,4)",org.opendaylight.controller.md.sal.binding.api;version="[1.1,2)",org.opendaylight.controller.md.sal.common.api;version="[1.1,2)",org.opendaylight.controller.md.sal.common.api.data;version="[1.1,2)",org.opendaylight.controller.sal.core;version="[0.7,1)",org.opendaylight.controller.sal.packet;version="[0.7,1)",org.opendaylight.yang.gen.v1.de.fresco_plus.rev141013,org.opendaylight.yangtools.yang.binding;version="[0.6,1)",org.opendaylight.yangtools.yang.common;version="[0.6,1)",org.slf4j;version="[1.7,2)" Manifest-Version = 1.0 Tool = Bnd-1.50.0

BundleData de.frescoplus.frescocore0.1.0 KeyHashCode 281 BundleContext null BundleId 281 StartLevel 1 SymbolicName de.frescoplus.frescocore StateChanging null BundleDescription de.frescoplus.frescocore0.1.0 Framework org.eclipse.osgi.framework.internal.core.Framework@a5823ca ResolutionFailureException org.osgi.framework.BundleException: The bundle "de.frescoplus.frescocore0.1.0 [281]" could not be resolved Revisions [de.frescoplus.frescocore0.1.0] ProtectionDomain null Key 281 Location file:/home/mininet/con/controller/frescocore/target/frescocore-0.1.jar State 2 Bundle 281|Installed | 1|de.frescoplus.fresco_core (0.1.0)

osgi> start 281 gogo: BundleException: The bundle "de.frescoplus.frescocore0.1.0 [281]" could not be resolved. Reason: Missing Constraint: Import-Package: org.opendaylight.yang.gen.v1.de.frescoplus.rev141013; version="0.0.0" osgi>

How can i solve it?!

I follows up Toaster Tutorial for making MD-SAL ODL application for project.(In page 7)

Actually, i made Yang file for my project then build it.

After that, i make new classes which includes built yang classes

Then problem occurs How can i solve it?!

BTW does anyone who has interesting idea of making MD-SAL application without significant effort? I just need data provider and listener from each bundles.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-11-03 13:35:58 -0700

anu.nair gravatar image

Import-Package: org.opendaylight.yang.gen.v1.de.frescoplus.rev141013; version="0.0.0" Your Manifest.INF doesnt have the version set. Go to your bundle and see if the version is specified. One workaround is explicitly do an Import Package with this version in your pom file

edit flag offensive delete publish link more

Comments

Oh, Thank you for your replying. I try to solve this problem. Thanks

Seunghyeon ( 2014-11-04 16:06:42 -0700 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
1 follower

Stats

Asked: 2014-10-14 03:38:29 -0700

Seen: 1,366 times

Last updated: Nov 03 '14