[ https://issues.apache.org/jira/browse/DOSGI-78?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Beryozkin resolved DOSGI-78. ----------------------------------- Resolution: Cannot Reproduce 1.3-SNAPSHOT works with java 1.6; please reopen if you can reproduce with the trunk > 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. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira