AFAIK the Import-Service header is deprecated and not used for anything by
anyone.
david jencks
On Jun 27, 2012, at 8:14 AM, ramesh chandra wrote:
> On 06/25/2012 05:33 PM, ramesh chandra wrote:
>> On 06/25/2012 05:11 PM, David Jencks wrote:
>>>
>>> On Jun 25, 2012, at 5:16 PM, ramesh chandra wrote:
>>>
>>>> I am getting this error
>>>>
>>>> Caused by: java.lang.NoClassDefFoundError:
>>>> org/apache/thrift/transport/TTransportException
>>>> ........
>>>>
>>>> Caused by: java.lang.ClassNotFoundException:
>>>> org.apache.thrift.transport.TTransportException not found by
>>>> me.prettyprint.hector [193]
>>>>
>>>> I have provided all the required dependencies, but for some reason , there
>>>> is one 'libthrift' that can not be found by the server during runtime.
>>>>
>>>> I am not sure if what I attempted below is right and please correct me if
>>>> there is a right way.
>>>>
>>>> in the config.properties file , I added
>>>> org.osgi.framework.system.packages.extra=libthrift-0.6.1; version="0.6.1"
>>>>
>>>> also I copied the jar in apache-karaf-2.2.7/lib folder
>>>>
>>>> this did not help, but I am not sure what is the right way to make karaf
>>>> aware of libthrift.
>>>>
>>>> I also tried to install it as a bundle, but it did not help.
>>>>
>>>> What I am trying to accomplish is to add org.apache.thrift / libthrift
>>>>
>>>> to this list on System.getProperty("java.class.path")
>>>>
>>>
>>> um, why?
>>>
>>> does hector code do some bizarre classloading ritual rather than new
>>> TTransportException(...)?
>>>
>>> Since you are having so much trouble, I'd advise you to construct a bundle
>>> that includes both the hector code and the thrift code. There are lots of
>>> examples of repackaging-to-bundles maven projects in geronimo/bundles and
>>> servicemix. You can also study bnd documentation and examples to see how
>>> to use Private-Package and/or Include-Resource headers to get bnd to
>>> include packages from the thrift bundle.
>>>
>>> You might also show us the manifests from your attempts to wrap these
>>> bundles.
>>>
>>> thanks
>>> david jencks
>>>
>>>>
>>>> /home/ramesh/Documents/osgiFramework/apache-karaf-2.2.7/lib/karaf-jaas-boot.jar:/home/ramesh/Documents/osgiFramework/apache-karaf-2.2.7/lib/karaf.jar
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Any help would be appreciated
>>>>
>>>> regards,
>>>> Ramesh
>>>>
>>>>
>>>
>> Thanks David
>> You are right. For now, I am trying to wrap and install as bundle all the
>> dependencies in Hector as it is the only way to not see that error I guess :)
>> But soon I will try to create a common bundle will all dependencies resolved.
>>
>> regards,
>> Ramesh
>>
> On the bundle importing service
> I see
> Import-Service =
> com.tableters.alpha.invite.dao.ReqDAO;multiple:=false
>
> what could be the reason for multiple:=false ?
>