[
https://issues.apache.org/jira/browse/SMX4-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13501192#comment-13501192
]
Freeman Fang commented on SMX4-1284:
------------------------------------
Hi Sergey,
As I mentioned, export package version like
javax.ws.rs.ext;version=2.0.0.m10,
does not mean export the package version exactly as 2.0.0.m10, it actually
means export package version range [0, 2.0.0.m10], so if a bundle import
package version range [1.1,2), it can meet the requirement.
the export package version like
javax.ws.rs.ext;version=[2.0.0.m10, 2.0.0.m10] means exact export the version
2.0.0.m10.
and the customer error from CXF-4571 like
{code}
karaf@root> start 105
Error executing command: Error starting bundles:
Unable to start bundle 105: Uses constraint violation. Unable to
resolve bundle revision com.hendyirawan.cxf4571bug.app [105.0] because it is
exposed to package 'javax.ws.rs' from bundle revisions
org.apache.servicemix.specs.jsr339-api-m10 [62.0] and
org.apache.servicemix.specs.jsr311-api-1.1.1 [133.0] via two dependency chains.
Chain 1:
com.hendyirawan.cxf4571bug.app [105.0]
import:
(&(osgi.wiring.package=javax.ws.rs)(version>=2.0.0)(!(version>=3.0.0)))
|
export: osgi.wiring.package=javax.ws.rs
org.apache.servicemix.specs.jsr339-api-m10 [62.0]
Chain 2:
com.hendyirawan.cxf4571bug.app [105.0]
import: (osgi.wiring.package=org.soluvas.jaxrs)
|
export: osgi.wiring.package=org.soluvas.jaxrs; uses:=javax.ws.rs
soluvas-jaxrs [132.0]
import:
(&(osgi.wiring.package=javax.ws.rs)(version>=1.1.0)(!(version>=2.0.0)))
|
export: osgi.wiring.package=javax.ws.rs
org.apache.servicemix.specs.jsr311-api-1.1.1 [133.0]
{code}
comes from that customer bundle OSGi metadata isn't correct, generally the
"uses" directive isn't correct which pull in different package version, we've
discussed similar issue in Karaf mailinglist[1] before.
In a summary, it's more like a customer bundle issue, but not a issue from smx
spec bundles.
[1]http://karaf.922171.n3.nabble.com/FW-Package-uses-conflict-Import-Package-org-osgi-service-blueprint-td3532737.html
Freeman
> Create a spec bundle for javax.ws.rs-api 2.0-m13
> ------------------------------------------------
>
> Key: SMX4-1284
> URL: https://issues.apache.org/jira/browse/SMX4-1284
> Project: ServiceMix 4
> Issue Type: Task
> Components: specs
> Reporter: Sergey Beryozkin
> Assignee: Freeman Fang
> Fix For: specs-2.2.0
>
>
> Please release jsr339-m13 spec bundle, which is the superset of jsr339-m10
> spec bundle
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira