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

missing osgi import of javax.jws

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.14
    • Fix Version/s: 3.0.4, 2.7.15
    • Component/s: Aegis Databinding
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      In the org.apache.cxf.aegis.type.java5.AnnotationReader class, the two lines

          private static final Class<? extends Annotation> WEB_PARAM = load("javax.jws.WebParam");
          private static final Class<? extends Annotation> WEB_RESULT = load("javax.jws.WebResult");
      

      attempt to load classes from the javax.jws package reflectively. However, the javax.jws package is not imported in the osgi bundle (jar) headers, which means they will always fail in an osgi environment.

      Please add this package to the bundle's imported packages header (possibly with resolution:=optional, if it should be optional) so that it will behave the same in an osgi environment as it does outside of it.

        Attachments

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              amichai Amichai Rothman
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: