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


could not be resolved. Reason: Missing Constraint: Import-Package: javax.jms;

asked 2016-05-02 06:16:36 -0800

dpkakollu gravatar image


I had deployed (copied jar into deploy folder) one of my JMS plugin jar (which is working on opendaylight hydrogen) to distribution-karaf-0.4.0-Beryllium,when I start karaf I am getting an error:

org.osgi.framework.BundleException: The bundle "org.sdnmq.jms_0.1.0.SNAPSHOT [64]" could not be resolved. Reason: Missing Constraint: Import-Package: javax.jms; version="[1.1.0,2.0.0)"

at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError([org.eclipse.osgi-3.8.2.v20130124-134944.jar:]
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException([org.eclipse.osgi-3.8.2.v20130124-134944.jar:]
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker([org.eclipse.osgi-3.8.2.v20130124-134944.jar:]
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start([org.eclipse.osgi-3.8.2.v20130124-134944.jar:]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle([7:org.apache.felix.fileinstall:3.4.2]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles([7:org.apache.felix.fileinstall:3.4.2]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess([7:org.apache.felix.fileinstall:3.4.2]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process([7:org.apache.felix.fileinstall:3.4.2]

even all required jar available in system folder I am getting this error. any help.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-05-16 05:29:28 -0800

jgoodyear gravatar image

Having the jar in the system folder doesn't install said jar into the class path. The system folder is just a flat file Maven Repository.

You'll need to using Bundle install command to put that jar into your running container's class path.

If the JMS jar is not an OSGi bundle, than you'll want to use bundle:install wrap:mvn:bundleCoordinates

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

Question Tools

1 follower


Asked: 2016-05-02 06:16:36 -0800

Seen: 2,454 times

Last updated: May 16 '16