You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2012/11/20 11:15:01 UTC

[jira] [Created] (SMX4-1284) Create a spec bundle for javax.ws.rs-api 2.0-m13

Sergey Beryozkin created SMX4-1284:
--------------------------------------

             Summary: 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
             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

[jira] [Commented] (SMX4-1284) Create a spec bundle for javax.ws.rs-api 2.0-m13

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SMX4-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13501605#comment-13501605 ] 

Freeman Fang commented on SMX4-1284:
------------------------------------

Ah, sorry guys, my memory need a refresh.
                
> 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

[jira] [Commented] (SMX4-1284) Create a spec bundle for javax.ws.rs-api 2.0-m13

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SMX4-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13501164#comment-13501164 ] 

Sergey Beryozkin commented on SMX4-1284:
----------------------------------------

Hi Freeman - it won't work with application bundles compiled against jsr311-api (I confirmed yesterday with jsr339-m10 before Dan did the change in 2.2-SNAPSHOT), see

https://issues.apache.org/jira/browse/CXF-4571.

The application bundle complied against jsr311-api will have Import-Package for JAX-RS packages with version range [1.1,2). Thus when such application bundles work with CXF 2.7.x and jsr339-api which exports 2.0.0.m10 or 2.0.0.m13 or 2.0.0 (for the future final jsr339-api), the application does not work.

Therefore, this spec bundle need to export those packages which are known to exist in both jsr311 & jsr339 with both 2.0.0.m13 & 1.1.

Of course the alternative option is to get the application bundle compiled against jsr311-api to explicitly allow to import 2.0.0 with [1.1, 3) bbut that may not be possible.

Agreed ?
  


                
> 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

[jira] [Commented] (SMX4-1284) Create a spec bundle for javax.ws.rs-api 2.0-m13

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SMX4-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13501202#comment-13501202 ] 

Sergey Beryozkin commented on SMX4-1284:
----------------------------------------

That code fragment is not relevant. Can you confirm yourself that if you have a custom bundle compiled against jsr311-api, then it work against CXF 2.7.x & jsr339-api ? As I said I did confirm it yesterday.

One thing I'm sure m10 & m13 spec bundles should have the same Export-Package (as far as 1.1 is concerned) - either have it or not have it at all. At the moment I believe they should export 2.0.0.x and 1.1 for certain packages.  
                
> 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

[jira] [Commented] (SMX4-1284) Create a spec bundle for javax.ws.rs-api 2.0-m13

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SMX4-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13501251#comment-13501251 ] 

Daniel Kulp commented on SMX4-1284:
-----------------------------------


Freeman,

I think you are confusing things.   If a package is exported as 2.0.0.m13, it is ONLY exported as that version.   An import can have a range, but an export cannot.   (verified this with  Guillaume)

In this case, those packages are compatible with 1.1 (the expert group has specifically worked to make sure it's compatible) and thus they can and should be exported with a 1.1 version in addition to the 2.0.x version.


                
> 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

[jira] [Commented] (SMX4-1284) Create a spec bundle for javax.ws.rs-api 2.0-m13

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SMX4-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13501151#comment-13501151 ] 

Freeman Fang commented on SMX4-1284:
------------------------------------

Hi Sergey,

Just commit a bundle for 2.0-m13, it's a little different with Dan's chanage on m10.
As Export-Package version as 2.0.0.m10 means version range [0, 2.0.0.m10], it already include [0, 1.1.1]
So the second javax.ws.rs.ext;version=1.1.1 is kind of duplicated and unnecessary IMO.

Anyway, please let me know if the new bundle works for you.

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

[jira] [Resolved] (SMX4-1284) Create a spec bundle for javax.ws.rs-api 2.0-m13

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SMX4-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved SMX4-1284.
--------------------------------

    Resolution: Fixed
    
> 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

[jira] [Comment Edited] (SMX4-1284) Create a spec bundle for javax.ws.rs-api 2.0-m13

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SMX4-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13501202#comment-13501202 ] 

Sergey Beryozkin edited comment on SMX4-1284 at 11/20/12 2:19 PM:
------------------------------------------------------------------

That code fragment is not relevant. Can you confirm yourself that if you have a custom bundle compiled against jsr311-api, then it work against CXF 2.7.x & jsr339-api ? As I said I did confirm it will not work just yesterday.

One thing I'm sure m10 & m13 spec bundles should have the same Export-Package (as far as 1.1 is concerned) - either have it or not have it at all. At the moment I believe they should export 2.0.0.x and 1.1 for certain packages.  
                
      was (Author: sergey_beryozkin):
    That code fragment is not relevant. Can you confirm yourself that if you have a custom bundle compiled against jsr311-api, then it work against CXF 2.7.x & jsr339-api ? As I said I did confirm it yesterday.

One thing I'm sure m10 & m13 spec bundles should have the same Export-Package (as far as 1.1 is concerned) - either have it or not have it at all. At the moment I believe they should export 2.0.0.x and 1.1 for certain packages.  
                  
> 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

[jira] [Comment Edited] (SMX4-1284) Create a spec bundle for javax.ws.rs-api 2.0-m13

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SMX4-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13501898#comment-13501898 ] 

Sergey Beryozkin edited comment on SMX4-1284 at 11/21/12 12:04 PM:
-------------------------------------------------------------------

Hi Freeman, thanks...FYI, we may have m14 or even m15 jsr339-api released before specs 2.2.0 are released, so I might ask you to update this spec bundle to whatever the latest jsr339 milestone will be publicly available at a time.
                
      was (Author: sergey_beryozkin):
    Hi Freeman, thanks...FYI, we may have m14 or even m15 jsr339-api released before specs 2.2.0 are leased, so I might ask you to update this spec bundle to whatever the latest jsr339 milestone will be publicly available at a time.
                  
> 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

[jira] [Commented] (SMX4-1284) Create a spec bundle for javax.ws.rs-api 2.0-m13

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SMX4-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13501898#comment-13501898 ] 

Sergey Beryozkin commented on SMX4-1284:
----------------------------------------

Hi Freeman, thanks...FYI, we may have m14 or even m15 jsr339-api released before specs 2.2.0 are leased, so I might ask you to update this spec bundle to whatever the latest jsr339 milestone will be publicly available at a time.
                
> 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

[jira] [Assigned] (SMX4-1284) Create a spec bundle for javax.ws.rs-api 2.0-m13

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SMX4-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang reassigned SMX4-1284:
----------------------------------

    Assignee: Freeman Fang
    
> 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

[jira] [Commented] (SMX4-1284) Create a spec bundle for javax.ws.rs-api 2.0-m13

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ 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

[jira] [Commented] (SMX4-1284) Create a spec bundle for javax.ws.rs-api 2.0-m13

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SMX4-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13501905#comment-13501905 ] 

Freeman Fang commented on SMX4-1284:
------------------------------------

No problem Sergey.
                
> 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

[jira] [Commented] (SMX4-1284) Create a spec bundle for javax.ws.rs-api 2.0-m13

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SMX4-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13500973#comment-13500973 ] 

Sergey Beryozkin commented on SMX4-1284:
----------------------------------------

Hi Freeman, thanks for taking on this issue. Please make sure the pom for this spec has the same Export-Package as 2.2.0-SNAPSHOT m10 pom, Dan did few fexes yestereday
                
> 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

[jira] [Comment Edited] (SMX4-1284) Create a spec bundle for javax.ws.rs-api 2.0-m13

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SMX4-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13500973#comment-13500973 ] 

Sergey Beryozkin edited comment on SMX4-1284 at 11/20/12 10:31 AM:
-------------------------------------------------------------------

Hi Freeman, thanks for taking on this issue. Please make sure the pom for this spec has the same Export-Package as 2.2.0-SNAPSHOT m10 pom, Dan did few fixes yesterday
                
      was (Author: sergey_beryozkin):
    Hi Freeman, thanks for taking on this issue. Please make sure the pom for this spec has the same Export-Package as 2.2.0-SNAPSHOT m10 pom, Dan did few fexes yestereday
                  
> 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