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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.4
    • 2.6.9, 2.7.6, 3.0.0-milestone1
    • Bus
    • None
    • 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

              njiang Willem Jiang
              jameslivingston James Livingston
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: