Have tail the error.log and see if some package is unresolved during
activation of the bundle.  It might be an indirect dependency of something
in the libs folder. You can put
Import-Package: *;resolution:=optional
and see if that helps as well.

Sarwar



On Tue, May 31, 2011 at 10:25 PM, JCR <[email protected]> wrote:

> Hi Sarwar,
> Upgraded CRXDE to 1.0.1, and created a libs directory at bundles/src/
> my.bundle.name/libs .  Is this the correct place?
>
> Problems within CRXDE got really resolved (i.e. imports are found), but the
> bundle won't activate in Felix because the HTTP libs cannot be found, though
> the http libs are in the bundle jar.
> FYI, I had to remove the Bundle-classpath line from the bnd file, it
> produced errors during the build, as e.g. libs/httpcore-4.1jar could not be
> found. Still no idea where the root actually is within the bundle.
>
> Thanks,
> Juerg
>
>
>
> On 31.05.2011 00:30, Sarwar Bhuiyan wrote:
>
>> Try creating a lib folder in the bundle and running the bnd build.  The
>> new
>> CRXDE should embed the jar in the bundle's root.
>>
>> Sarwar
>>
>> On Mon, May 30, 2011 at 11:24 PM, JCR<[email protected]>  wrote:
>>
>>  Hi all,
>>>
>>> I need to bind the httpComponents library into an Felix OSGi bundle
>>> (implements a repo-Listener).
>>>
>>> So, I added the libs from httpcomponents-client-4.1.1-bin.zip to the
>>> /resources directory of the bundle (plus codec-lib).
>>>
>>> In CRXDE, I added the following line to the bundle's bnd file:
>>>
>>> Bundle-ClassPath: ., httpclient-4.1.1.jar, httpclient-cache-4.1.1.jar,
>>> httpcore-4.1.jar, httpmime-4.1.1.jar, commons-logging-1.1.1.jar,
>>> commons-codec-1.4.jar
>>>
>>> Chosen with the right mouse on the bnd file, build->refresh class path.
>>>
>>> At this point, CRXDE pointed in the src java file of the bundle to
>>> various
>>> import errors. Ignoring that I tried building the bundle, but this also
>>> resulted in various bound errors in the console, and no artifact.
>>>
>>> Googled for hours, but really cannot figure out what's wrong here. Thanks
>>> for any help.
>>>
>>> -- Juerg
>>>
>>>
>

Reply via email to