[ https://issues.apache.org/jira/browse/CXF-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17477901#comment-17477901 ]
Freeman Yue Fang commented on CXF-8640: --------------------------------------- Hi [~globalbus], This is expected behaviour per OSGi classloader delegation mechanism. cxf-rt-features-logging bundle imports package org.apache.cxf.feature, and org.apache.cxf.feature.AbstractFeature class which extends javax.xml.ws.WebServiceFeature is in cxf-core bundle, and cxf-core bundle imports javax.xml.ws package. And this works by my test with Karaf+JDK11. If this doesn't work for you, please elaborate the Karaf/CXF version you use, as well as the detailed step to reproduce it. Thanks! Freeman > 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)