Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8640

Missing OSGi import javax.xml.ws in cxf bundles

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • None
    • None
    • OSGi
    • 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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ffang Freeman Yue Fang
            globalbus Jan Filipski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment