Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Invalid
-
None
-
None
-
None
-
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.
-
Unknown
Description
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.