hstaudacher / osgi-jax-rs-connector

An OSGi - JAX-RS 2.0 Connector, software repository available on the link below
http://hstaudacher.github.io/osgi-jax-rs-connector
Other
191 stars 98 forks source link

Different provider import definitions for 'org.osgi.framework' #184

Closed dfelski closed 7 years ago

dfelski commented 7 years ago

Currently you can find the following import package definitions for the available JAX-RS provider features:

com.eclipsesource.jaxrs.provider.moxy com.eclipsesource.jaxrs.provider.gson com.eclipsesource.jaxrs.provider.security Import-Package: ... , org.osgi.framework;version="[1.3.0,2.0.0)"

com.eclipsesource.jaxrs.provider.sse com.eclipsesource.jaxrs.provider.swagger Import-Package: ... , org.osgi.framework;version="[1.2.0,2.0.0)"

com.eclipsesource.jaxrs.provider.multipart Import-Package: ... , org.osgi.framework;version="1.3.0"

Especially the last one is not usable e.g in current version of Apache Felix, which exports that package in version 1.8. Is there a reason for that definition? Changing it to org.osgi.framework;version="[1.3.0,2.0.0)" seems to fix that issue.

doggy-dev commented 7 years ago

If I recall correctly version="1.3.0" means every version from 1.3.0 on... this is not a restricttion to 1.3.0 only. But this may be an Equinox interpretation of the version, I don't know how Felix behaves.

dfelski commented 7 years ago

You're absolutely right, I missed that detail. But what could be the reason for that behavior then? I don't think Felix deals with that completely different.

doggy-dev commented 7 years ago

Unfortunately I didn't quite understand what is your issue other than continuity in the package import versioning. Check if you have more than one bundle providing the package org.osgi.framework installed and resolved in your osgi container.

dfelski commented 7 years ago

I would say, just ignore it for now, I have to recheck my configuration and collect more information to understand my issue. Thank you for your help.