Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3242

OSGi Import-Package directive is missing the Apache HTTP packages

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.2
    • 0.9.3
    • Java - Library
    • None
    • Patch Available

    Description

      While invoking a Thrift-based servlet from an OSGi application, we ran into InvocationTargetExceptions saying that the org.apache.http.HttpEntity class could not be found from the libthrift-0.9.2.jar OSGi bundle.

      The problem was that the Import-Package directive included in the build.xml file of the Java library did not include the Apache HttpClient packages, and therefore these classes were not accessible to the classloader provided by OSGi to Thrift.

      Attachments

        Issue Links

        Activity

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

          People

            Unassigned Unassigned
            agarcia Antonio Garcia-Dominguez
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment