Hi All,
I have added some client code in my osgi bundle using jersey. I have added
jersey-bundle dependency in my pom.xml as below:
com.sun.jersey
jersey-bundle
1.18.1
The imported packages in my class are: com.sun.jersey.api.client.* and thats
why the Import Package section of pom.xml looks like:
com.sun.jersey.api.client,
org.apache.felix.service.command,
org.apache.felix.gogo.commands,
org.apache.karaf.shell.console,
*
problem is after installation, once I start the bundle, I get the following
error:
Reason: Missing Constraint: Import-Package: com.sun.jersey.api.client;
version="[1.18.0,2.0.0)"
Im really not able to figure out what karaf is trying to say, since I can
see the following imports in my manifest:
Import-Package: com.sun.jersey.api.client;version="[1.18,2)",com.sun.jer
sey.api.client.config;version="[1.18,2)",javax.ws.rs.core;version="[1.1
,2)",org.apache.felix.gogo.commands;version="[0.10,1)",org.apache.felix
.service.command;version="[0.10,1)";status=provisional,org.apache.karaf
.shell.console;version="[2.2,3)",org.osgi.service.blueprint;version="[1
.0.0,2.0.0)"
Any help is greatly appreciated.
Thanks,
Sapna
--
View this message in context: http://karaf.922171.n3.nabble.com/Missing-Constraint-Import-Package-com-sun-jersey-api-client-tp4033550.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.