Uploaded image for project: 'HttpComponents HttpAsyncClient'
  1. HttpComponents HttpAsyncClient
  2. HTTPASYNC-65

HttpAsyncClient does not work in OSGi

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0 Final
    • 4.0.1
    • None

    Description

      We are using the http async client for CXF. In the current trunk we reference the 4.0 version.

      Unfortunately the bundle does not work for us. I spotted two problems:
      1. The Bundle-SymbolicName is the same as the one in httpclient
      In the pom there is:
      <Bundle-SymbolicName>${project.groupId}.httpclient</Bundle-SymbolicName>
      See http://search.maven.org/remotecontent?filepath=org/apache/httpcomponents/httpasyncclient-osgi/4.0/httpasyncclient-osgi-4.0.pom
      2. The bundle refers to commons logging api 1.1.3 but pax logging only provides 1.0.4. I will also try to fix this for pax logging.
      I think it should be possible to open up the import range for pax logging so you also accept the 1.0.x version.

      I checked out the current trunk and was able to make it work by doing some changes in the poms.

      I found that httpasyncclient has separate projects for the normal jar and the OSGi jar. Is this really necessary? I was able to switch the normal jar to packaging bundle and configure it there. This has the advantage that people only have to use one maven artifact for OSGi and non OSGi usage. This is espacially intersting for frameworks like cxf that live in both worlds.

      I will provide a patch with my changes. So you can review what I did.

      Attachments

        1. HTTPASYNC-65-3.patch
          7 kB
          Christian Schneider
        2. HTTPASYNC-65-2.patch
          1 kB
          Christian Schneider
        3. HTTPASYNC-65-1.patch
          9 kB
          Christian Schneider

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cschneider Christian Schneider
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: