Jan Filipski created CXF-8640:
---------------------------------
Summary: 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
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)