You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Freeman Yue Fang (Jira)" <ji...@apache.org> on 2022/01/18 13:03:00 UTC

[jira] [Assigned] (CXF-8640) Missing OSGi import javax.xml.ws in cxf bundles

     [ https://issues.apache.org/jira/browse/CXF-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Yue Fang reassigned CXF-8640:
-------------------------------------

    Assignee: Freeman Yue Fang

> Missing OSGi import javax.xml.ws in cxf bundles
> -----------------------------------------------
>
>                 Key: CXF-8640
>                 URL: https://issues.apache.org/jira/browse/CXF-8640
>             Project: CXF
>          Issue Type: Bug
>          Components: OSGi
>         Environment: Issue is only visible on JDK9 or higher (where javax.xml.ws package is not present in JDK directly).
> Can be easily reproduced on Karaf container if you try to install cxf-logging-feature.
>            Reporter: Jan Filipski
>            Assignee: Freeman Yue Fang
>            Priority: Minor
>
> cxf-rt-features-logging bundle has missing import to javax.xml.ws package. This affects probably all versions.
> LoggingFeature class has indirect dependency to javax.xml.ws.WebServiceFeature, by extending AbstractFeature.
> Issue is directly visible, because OSGi Activator calls constructor in start method. That's blocking bundle activation. Probably all bundles with classes extending AbstractFeature has the same issue.
> Not-so-elegant solution is to add javax.xml.ws package to classpath, imitating JDK8 and lower behavior (as I do for years). Target resolution should be provided by importing required package by cxf bundles.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)