karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajbir Saini <rajbsa...@yahoo.com.INVALID>
Subject Re: Missing Constraint: Import-Package: com.sun.jersey.api.client
Date Tue, 17 Jun 2014 07:03:35 GMT
If Jersey jars are OSGi bundle you can install them using bundle:install 
command. Syntax is:
bundle:install mvn:<groupid>/<bundleid>/version no

If Jersey jars are not OSGi bundles you can use wrap protocol to convert 
a plain jar into OSGi bundle
bundle:install wrap:mvn:<groupid>/<bundleid>/version.



On Tuesday 17 June 2014 12:24 PM, SapnaB wrote:
> Is there a way I can add jersey jars as bundles in Karaf libs. That way when
> I start Karaf, these bundles will be loaded at startup and all the classes
> will be available at runtime.
> >From the error message, I understand that Karaf is unable to resolve this
> dependency:
> Reason: Missing Constraint: Import-Package: com.sun.jersey.api.client;
> version="[1.18.0,2.0.0)"
> -Sapna
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Missing-Constraint-Import-Package-com-sun-jersey-api-client-tp4033550p4033562.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message