You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Guillaume Sauthier (JIRA)" <ji...@apache.org> on 2009/02/26 14:15:04 UTC
[jira] Created: (CXF-2071) Missing import on 'com.sun.xml.bind.api'
for cxf-bundle
Missing import on 'com.sun.xml.bind.api' for cxf-bundle
-------------------------------------------------------
Key: CXF-2071
URL: https://issues.apache.org/jira/browse/CXF-2071
Project: CXF
Issue Type: Bug
Components: OSGi
Affects Versions: 2.1.4
Environment: OW2 JOnAS 5.1.0.M4-SNAPSHOT (Apache Felix 1.4.1)
Reporter: Guillaume Sauthier
As you can see in the JAXBUtils[1] class CXF is loading a class from the 'com.sun.xml.bind.api' package.
But this import is missing from the Bnd generated manifest.
It would be great to add this package in the DynamicImport-Package list (just like what was done for the woodstox package).
BTW, if you use the 2.1.4 version of CXF, it's also missing an import on 'com.sun.xml.bind.v2' (Where the RI JAXBContext implementation lives). The only way to be able to use it untouched is to install the JAXB 2.0/2.1 API provided by ServiceMix (that is more OSGi friendly). This is what we have done so we can live with this, so this missing package ('com.sun.xml.bind.v2') is not a blocker for us.
[1] http://fisheye6.atlassian.com/browse/cxf/tags/cxf-2.1.4/common/common/src/main/java/org/apache/cxf/jaxb/JAXBUtils.java?r=708410#l541
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CXF-2071) Missing import on
'com.sun.xml.bind.api' for cxf-bundle
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp reassigned CXF-2071:
--------------------------------
Assignee: Daniel Kulp
> Missing import on 'com.sun.xml.bind.api' for cxf-bundle
> -------------------------------------------------------
>
> Key: CXF-2071
> URL: https://issues.apache.org/jira/browse/CXF-2071
> Project: CXF
> Issue Type: Bug
> Components: OSGi
> Affects Versions: 2.1.4
> Environment: OW2 JOnAS 5.1.0.M4-SNAPSHOT (Apache Felix 1.4.1)
> Reporter: Guillaume Sauthier
> Assignee: Daniel Kulp
>
> As you can see in the JAXBUtils[1] class CXF is loading a class from the 'com.sun.xml.bind.api' package.
> But this import is missing from the Bnd generated manifest.
> It would be great to add this package in the DynamicImport-Package list (just like what was done for the woodstox package).
> BTW, if you use the 2.1.4 version of CXF, it's also missing an import on 'com.sun.xml.bind.v2' (Where the RI JAXBContext implementation lives). The only way to be able to use it untouched is to install the JAXB 2.0/2.1 API provided by ServiceMix (that is more OSGi friendly). This is what we have done so we can live with this, so this missing package ('com.sun.xml.bind.v2') is not a blocker for us.
> [1] http://fisheye6.atlassian.com/browse/cxf/tags/cxf-2.1.4/common/common/src/main/java/org/apache/cxf/jaxb/JAXBUtils.java?r=708410#l541
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CXF-2071) Missing import on
'com.sun.xml.bind.api' for cxf-bundle
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-2071.
------------------------------
Resolution: Fixed
Fix Version/s: 2.1.5
I've added the dynamic import.
However, there doesn't seem to be a way to add an import for com.sun.xml.bind.v2 since we don't actually use it anywhere at all. We already have:
com.sun*;resolution:=optional
for all the sun stuff and the felix plugin doesn't find that package since we don't actually reference it at all. Thus, the smx bundle will probably need to be used.
> Missing import on 'com.sun.xml.bind.api' for cxf-bundle
> -------------------------------------------------------
>
> Key: CXF-2071
> URL: https://issues.apache.org/jira/browse/CXF-2071
> Project: CXF
> Issue Type: Bug
> Components: OSGi
> Affects Versions: 2.1.4
> Environment: OW2 JOnAS 5.1.0.M4-SNAPSHOT (Apache Felix 1.4.1)
> Reporter: Guillaume Sauthier
> Assignee: Daniel Kulp
> Fix For: 2.1.5
>
>
> As you can see in the JAXBUtils[1] class CXF is loading a class from the 'com.sun.xml.bind.api' package.
> But this import is missing from the Bnd generated manifest.
> It would be great to add this package in the DynamicImport-Package list (just like what was done for the woodstox package).
> BTW, if you use the 2.1.4 version of CXF, it's also missing an import on 'com.sun.xml.bind.v2' (Where the RI JAXBContext implementation lives). The only way to be able to use it untouched is to install the JAXB 2.0/2.1 API provided by ServiceMix (that is more OSGi friendly). This is what we have done so we can live with this, so this missing package ('com.sun.xml.bind.v2') is not a blocker for us.
> [1] http://fisheye6.atlassian.com/browse/cxf/tags/cxf-2.1.4/common/common/src/main/java/org/apache/cxf/jaxb/JAXBUtils.java?r=708410#l541
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (CXF-2071) Missing import on 'com.sun.xml.bind.api'
for cxf-bundle
Posted by "Guillaume Sauthier (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Sauthier closed CXF-2071.
-----------------------------------
Thanks for the fix
Concerning the 'com.sun.xml.bind.v2' package that was more a general remark: CXF *requires* you to use these particular JAXB2 API in an OSGi environment.
That's something good to know for users of CXF/OSGi :)
> Missing import on 'com.sun.xml.bind.api' for cxf-bundle
> -------------------------------------------------------
>
> Key: CXF-2071
> URL: https://issues.apache.org/jira/browse/CXF-2071
> Project: CXF
> Issue Type: Bug
> Components: OSGi
> Affects Versions: 2.1.4
> Environment: OW2 JOnAS 5.1.0.M4-SNAPSHOT (Apache Felix 1.4.1)
> Reporter: Guillaume Sauthier
> Assignee: Daniel Kulp
> Fix For: 2.1.5
>
>
> As you can see in the JAXBUtils[1] class CXF is loading a class from the 'com.sun.xml.bind.api' package.
> But this import is missing from the Bnd generated manifest.
> It would be great to add this package in the DynamicImport-Package list (just like what was done for the woodstox package).
> BTW, if you use the 2.1.4 version of CXF, it's also missing an import on 'com.sun.xml.bind.v2' (Where the RI JAXBContext implementation lives). The only way to be able to use it untouched is to install the JAXB 2.0/2.1 API provided by ServiceMix (that is more OSGi friendly). This is what we have done so we can live with this, so this missing package ('com.sun.xml.bind.v2') is not a blocker for us.
> [1] http://fisheye6.atlassian.com/browse/cxf/tags/cxf-2.1.4/common/common/src/main/java/org/apache/cxf/jaxb/JAXBUtils.java?r=708410#l541
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.