[ 
https://issues.apache.org/jira/browse/DOSGI-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12916512#action_12916512
 ] 

Daniel Kulp commented on DOSGI-78:
----------------------------------


No, the solution is to get cxf-dosgi-ri-dsw-cxf to match the same as 
org.apache.cxf.bundle-minimal. 

The main reason is so that CXF can work with java6 stuff WITHOUT requiring the 
SMX bundles.    Alternatively, make sure the startup order is set so the smx 
specs bundles get loaded long before anything else.







> Package-uses constraint in multi-bundle distribution on Java SE 6 (with 
> solution)
> ---------------------------------------------------------------------------------
>
>                 Key: DOSGI-78
>                 URL: https://issues.apache.org/jira/browse/DOSGI-78
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>          Components: Product
>    Affects Versions: 1.2
>         Environment: Java SE 6
>            Reporter: Neil Bartlett
>
> When using the multi-bundle distribution on Java SE 6, a package-uses 
> constraint violation occurs for the following reasons:
> * Bundle "org.apache.cxf.bundle-minimal" imports package "javax.xml.ws" with 
> range [0.0, 3). On Java SE 6 this import is satisfied by the system bundle, 
> which exports it as version 0.
> * Bundle "cxf-dosgi-ri-dsw-cxf" imports the same package with range [2.1, 
> infinity). This can be satisfied by bundle 
> "org.apache.servicemix.specs.jaxws-api-2.1", which exports the package as 
> version 2.1. However the dsw bundle also imports package "org.apache.cxf" 
> from the CXF minimal bundle, and therefore cannot resolve due to the uses 
> constraints.
> Note that the problem does not occur on Java SE 1.5 or earlier as those 
> versions do not include the javax.xml.ws package.
> WORKAROUND:
> The OSGi framework can be configured to not export package javax.xml.ws (and 
> javax.xml.ws.hander etc), for example using the 
> "org.osgi.framework.system.packages" property. Then both bundles will import 
> from the jaxws-api-2.1 bundle.
> SUGGESTED FIX:
> The import range on the CXF minimal bundle for this package is too wide. I 
> suggest changing it to [2.0,3).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to