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

META-INF/services/org.apache.cxf.bus.factory contains extra data on a second line

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.4
    • Fix Version/s: 2.6.9, 2.7.6, 3.0.0-milestone1
    • Component/s: Bus
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      In the change http://svn.apache.org/viewvc?view=revision&revision=1091006, BusFactory loads META-INF/services/org.apache.cxf.bus.factory and loads additional data "busFactoryCondition" from the second line.

      http://docs.oracle.com/javase/7/docs/api/java/util/ServiceLoader.html says (amongst other details) "The file contains a list of fully-qualified binary names of concrete provider classes, one per line."

      JBoss AS7 currently emits a warning when CXF is packaged into applications because the second line of the file is not a valid class name. I'm not sure where is best, but the service file is probably not the best place for that extra information since it doesn't match what the ServiceLoader documentation says should be in the file.

      I've seen the problem on 2.6.4, but the code is still the same in the latest release.

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              njiang Willem Jiang
              Reporter:
              jameslivingston James Livingston

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment