You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James E. King, III (JIRA)" <ji...@apache.org> on 2017/01/19 16:26:26 UTC
[jira] [Commented] (THRIFT-3242) OSGi Import-Package directive is
missing the Apache HTTP packages
[ https://issues.apache.org/jira/browse/THRIFT-3242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15830203#comment-15830203 ]
James E. King, III commented on THRIFT-3242:
--------------------------------------------
Could someone take a look at SM-3224 and make sure the dependency list we are using in our build has everything I uncovered?
Also, do we even need a ServiceMix bundle for thrift 0.10.0 if the jar produced by a thrift build is OSGI compatible?
Thanks.
> OSGi Import-Package directive is missing the Apache HTTP packages
> -----------------------------------------------------------------
>
> Key: THRIFT-3242
> URL: https://issues.apache.org/jira/browse/THRIFT-3242
> Project: Thrift
> Issue Type: Bug
> Components: Java - Library
> Affects Versions: 0.9.2
> Reporter: Antonio Garcia-Dominguez
> Fix For: 0.9.3
>
> Attachments: 0001-Java-MANIFEST.MF-add-Apache-HTTP-packages-as-optiona.patch
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)