You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by "A.H. Oberthur" <a....@erasmusmc.nl> on 2010/01/17 16:05:38 UTC

Newbie: Tutorials not working

Hello,

I have just begun evaluating Felix and have set up everything as described
in 'getting started'. I have also set up my own Eclipse environment as
described and now have a Felix project with:

Felix
- src
- bin: here lies felix.jar
- bundles: org.apache felix bundles
- conf: felix config
- classes: compiled classes from Eclipse (instead of bin)
- aloys: my own jars added (for now tutorial jars)

I start Felix via running org.apache.felix.main.Main.
When I add the jar created from tutorial 01 (activator class) and start it
I get the following output from the ps command:

START LEVEL 1
   ID   State         Level  Name
[   0] [Active     ] [    0] System Bundle (2.0.1)
[   1] [Active     ] [    1] Apache Felix Bundle Repository (1.4.2)
[   2] [Active     ] [    1] Apache Felix Shell Service (1.4.1)
[   3] [Active     ] [    1] Apache Felix Shell TUI (1.4.1)
[  13] [Active     ] [    1] file:aloys/felix.tutorial.01.jar


When I add the jar created from tutorial 02 and start it (class that
implements a simple bundle that uses the bundle context to register an
English language dictionary service) I get:

START LEVEL 1
   ID   State         Level  Name
[   0] [Active     ] [    0] System Bundle (2.0.1)
[   1] [Active     ] [    1] Apache Felix Bundle Repository (1.4.2)
[   2] [Active     ] [    1] Apache Felix Shell Service (1.4.1)
[   3] [Active     ] [    1] Apache Felix Shell TUI (1.4.1)
[  13] [Active     ] [    1] file:aloys/felix.tutorial.01.jar
[  15] [Active     ] [    1] file:aloys/felix.tutorial.02.jar


Only do I not get any output from the activator class from tutorial 01 as
I should get from what I understood. Neither do I get any output from a
System.err statement added to start method of the Activator class in
tutorial 02 bundle or can I reach breakpoints. I am using the lastest
version of Felix and have already tried setting up everything outside of
Eclipse. What am I missing?

Many regards,
Aloys


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Newbie: Tutorials not working

Posted by "A.H. Oberthur" <a....@erasmusmc.nl>.
>
>
> On 1/17/10 3:30 PM, A.H. Oberthur wrote:
>>> 2010/1/17 A.H. Oberthur<a....@erasmusmc.nl>
>>>
>>>
>>>> Hello,
>>>>
>>>> I have just begun evaluating Felix and have set up everything as
>>>> described
>>>> in 'getting started'. I have also set up my own Eclipse environment as
>>>> described and now have a Felix project with:
>>>>
>>>> Felix
>>>> - src
>>>> - bin: here lies felix.jar
>>>> - bundles: org.apache felix bundles
>>>> - conf: felix config
>>>> - classes: compiled classes from Eclipse (instead of bin)
>>>> - aloys: my own jars added (for now tutorial jars)
>>>>
>>>> I start Felix via running org.apache.felix.main.Main.
>>>> When I add the jar created from tutorial 01 (activator class) and
>>>> start
>>>> it
>>>> I get the following output from the ps command:
>>>>
>>>> START LEVEL 1
>>>>    ID   State         Level  Name
>>>> [   0] [Active     ] [    0] System Bundle (2.0.1)
>>>> [   1] [Active     ] [    1] Apache Felix Bundle Repository (1.4.2)
>>>> [   2] [Active     ] [    1] Apache Felix Shell Service (1.4.1)
>>>> [   3] [Active     ] [    1] Apache Felix Shell TUI (1.4.1)
>>>> [  13] [Active     ] [    1] file:aloys/felix.tutorial.01.jar
>>>>
>>>>
>>>> When I add the jar created from tutorial 02 and start it (class that
>>>> implements a simple bundle that uses the bundle context to register an
>>>> English language dictionary service) I get:
>>>>
>>>> START LEVEL 1
>>>>    ID   State         Level  Name
>>>> [   0] [Active     ] [    0] System Bundle (2.0.1)
>>>> [   1] [Active     ] [    1] Apache Felix Bundle Repository (1.4.2)
>>>> [   2] [Active     ] [    1] Apache Felix Shell Service (1.4.1)
>>>> [   3] [Active     ] [    1] Apache Felix Shell TUI (1.4.1)
>>>> [  13] [Active     ] [    1] file:aloys/felix.tutorial.01.jar
>>>> [  15] [Active     ] [    1] file:aloys/felix.tutorial.02.jar
>>>>
>>>>
>>> what do you see when you type:
>>>
>>>     headers 13
>>>
>>> into the Felix console? is there a line that starts with
>>> Bundle-Activator?
>>>
>>> similarly does the output from "headers 15" list any Bundle-Activator?
>>>
>> This is the output.
>>
>> Command     : headers
>> Usage       : headers [<id>  ...]
>> Description : display bundle header properties.
>> ->  headers 13
>>
>> Bundle 13
>> ---------
>> ->  headers 15
>>
>> Bundle 15
>> ---------
>>
>> I presume I need to add something the manifest.mf?
>>
>
> Yeah, it looks like you didn't correctly add the manifests to the bundle.
>
> -> richard

That fixed it. I somehow got the Manifest files wrong (Actually they were
empty). Did not know where to look.

Thanks Stuart and Richard!


>
>> Thanks for your prompt response.
>>
>> Many regards,
>> Aloys
>>
>>
>>> Cheers, Stuart
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Newbie: Tutorials not working

Posted by "Richard S. Hall" <he...@ungoverned.org>.

On 1/17/10 3:30 PM, A.H. Oberthur wrote:
>> 2010/1/17 A.H. Oberthur<a....@erasmusmc.nl>
>>
>>      
>>> Hello,
>>>
>>> I have just begun evaluating Felix and have set up everything as
>>> described
>>> in 'getting started'. I have also set up my own Eclipse environment as
>>> described and now have a Felix project with:
>>>
>>> Felix
>>> - src
>>> - bin: here lies felix.jar
>>> - bundles: org.apache felix bundles
>>> - conf: felix config
>>> - classes: compiled classes from Eclipse (instead of bin)
>>> - aloys: my own jars added (for now tutorial jars)
>>>
>>> I start Felix via running org.apache.felix.main.Main.
>>> When I add the jar created from tutorial 01 (activator class) and start
>>> it
>>> I get the following output from the ps command:
>>>
>>> START LEVEL 1
>>>    ID   State         Level  Name
>>> [   0] [Active     ] [    0] System Bundle (2.0.1)
>>> [   1] [Active     ] [    1] Apache Felix Bundle Repository (1.4.2)
>>> [   2] [Active     ] [    1] Apache Felix Shell Service (1.4.1)
>>> [   3] [Active     ] [    1] Apache Felix Shell TUI (1.4.1)
>>> [  13] [Active     ] [    1] file:aloys/felix.tutorial.01.jar
>>>
>>>
>>> When I add the jar created from tutorial 02 and start it (class that
>>> implements a simple bundle that uses the bundle context to register an
>>> English language dictionary service) I get:
>>>
>>> START LEVEL 1
>>>    ID   State         Level  Name
>>> [   0] [Active     ] [    0] System Bundle (2.0.1)
>>> [   1] [Active     ] [    1] Apache Felix Bundle Repository (1.4.2)
>>> [   2] [Active     ] [    1] Apache Felix Shell Service (1.4.1)
>>> [   3] [Active     ] [    1] Apache Felix Shell TUI (1.4.1)
>>> [  13] [Active     ] [    1] file:aloys/felix.tutorial.01.jar
>>> [  15] [Active     ] [    1] file:aloys/felix.tutorial.02.jar
>>>
>>>        
>> what do you see when you type:
>>
>>     headers 13
>>
>> into the Felix console? is there a line that starts with Bundle-Activator?
>>
>> similarly does the output from "headers 15" list any Bundle-Activator?
>>      
> This is the output.
>
> Command     : headers
> Usage       : headers [<id>  ...]
> Description : display bundle header properties.
> ->  headers 13
>
> Bundle 13
> ---------
> ->  headers 15
>
> Bundle 15
> ---------
>
> I presume I need to add something the manifest.mf?
>    

Yeah, it looks like you didn't correctly add the manifests to the bundle.

-> richard

> Thanks for your prompt response.
>
> Many regards,
> Aloys
>
>    
>> Cheers, Stuart
>>
>>      
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>    

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Newbie: Tutorials not working

Posted by "A.H. Oberthur" <a....@erasmusmc.nl>.
> 2010/1/17 A.H. Oberthur <a....@erasmusmc.nl>
>
>> Hello,
>>
>> I have just begun evaluating Felix and have set up everything as
>> described
>> in 'getting started'. I have also set up my own Eclipse environment as
>> described and now have a Felix project with:
>>
>> Felix
>> - src
>> - bin: here lies felix.jar
>> - bundles: org.apache felix bundles
>> - conf: felix config
>> - classes: compiled classes from Eclipse (instead of bin)
>> - aloys: my own jars added (for now tutorial jars)
>>
>> I start Felix via running org.apache.felix.main.Main.
>> When I add the jar created from tutorial 01 (activator class) and start
>> it
>> I get the following output from the ps command:
>>
>> START LEVEL 1
>>   ID   State         Level  Name
>> [   0] [Active     ] [    0] System Bundle (2.0.1)
>> [   1] [Active     ] [    1] Apache Felix Bundle Repository (1.4.2)
>> [   2] [Active     ] [    1] Apache Felix Shell Service (1.4.1)
>> [   3] [Active     ] [    1] Apache Felix Shell TUI (1.4.1)
>> [  13] [Active     ] [    1] file:aloys/felix.tutorial.01.jar
>>
>>
>> When I add the jar created from tutorial 02 and start it (class that
>> implements a simple bundle that uses the bundle context to register an
>> English language dictionary service) I get:
>>
>> START LEVEL 1
>>   ID   State         Level  Name
>> [   0] [Active     ] [    0] System Bundle (2.0.1)
>> [   1] [Active     ] [    1] Apache Felix Bundle Repository (1.4.2)
>> [   2] [Active     ] [    1] Apache Felix Shell Service (1.4.1)
>> [   3] [Active     ] [    1] Apache Felix Shell TUI (1.4.1)
>> [  13] [Active     ] [    1] file:aloys/felix.tutorial.01.jar
>> [  15] [Active     ] [    1] file:aloys/felix.tutorial.02.jar
>>
>
> what do you see when you type:
>
>    headers 13
>
> into the Felix console? is there a line that starts with Bundle-Activator?
>
> similarly does the output from "headers 15" list any Bundle-Activator?

This is the output.

Command     : headers
Usage       : headers [<id> ...]
Description : display bundle header properties.
-> headers 13

Bundle 13
---------
-> headers 15

Bundle 15
---------

I presume I need to add something the manifest.mf?
Thanks for your prompt response.

Many regards,
Aloys

> Cheers, Stuart
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Newbie: Tutorials not working

Posted by Stuart McCulloch <mc...@gmail.com>.
2010/1/17 A.H. Oberthur <a....@erasmusmc.nl>

> Hello,
>
> I have just begun evaluating Felix and have set up everything as described
> in 'getting started'. I have also set up my own Eclipse environment as
> described and now have a Felix project with:
>
> Felix
> - src
> - bin: here lies felix.jar
> - bundles: org.apache felix bundles
> - conf: felix config
> - classes: compiled classes from Eclipse (instead of bin)
> - aloys: my own jars added (for now tutorial jars)
>
> I start Felix via running org.apache.felix.main.Main.
> When I add the jar created from tutorial 01 (activator class) and start it
> I get the following output from the ps command:
>
> START LEVEL 1
>   ID   State         Level  Name
> [   0] [Active     ] [    0] System Bundle (2.0.1)
> [   1] [Active     ] [    1] Apache Felix Bundle Repository (1.4.2)
> [   2] [Active     ] [    1] Apache Felix Shell Service (1.4.1)
> [   3] [Active     ] [    1] Apache Felix Shell TUI (1.4.1)
> [  13] [Active     ] [    1] file:aloys/felix.tutorial.01.jar
>
>
> When I add the jar created from tutorial 02 and start it (class that
> implements a simple bundle that uses the bundle context to register an
> English language dictionary service) I get:
>
> START LEVEL 1
>   ID   State         Level  Name
> [   0] [Active     ] [    0] System Bundle (2.0.1)
> [   1] [Active     ] [    1] Apache Felix Bundle Repository (1.4.2)
> [   2] [Active     ] [    1] Apache Felix Shell Service (1.4.1)
> [   3] [Active     ] [    1] Apache Felix Shell TUI (1.4.1)
> [  13] [Active     ] [    1] file:aloys/felix.tutorial.01.jar
> [  15] [Active     ] [    1] file:aloys/felix.tutorial.02.jar
>

what do you see when you type:

   headers 13

into the Felix console? is there a line that starts with Bundle-Activator?

similarly does the output from "headers 15" list any Bundle-Activator?


> Only do I not get any output from the activator class from tutorial 01 as
> I should get from what I understood. Neither do I get any output from a
> System.err statement added to start method of the Activator class in
> tutorial 02 bundle or can I reach breakpoints. I am using the lastest
> version of Felix and have already tried setting up everything outside of
> Eclipse. What am I missing?
>
> Many regards,
> Aloys
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>


-- 
Cheers, Stuart