You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Aaron Zeckoski <aa...@vt.edu> on 2009/04/16 14:12:45 UTC

Setting start level in config?

I am having trouble setting the start level via the felix config file
(conf/config.properties).
Here is the bit I have changed (plus the log level is set to 4):
# Sets the initial start level of the framework upon startup.
org.osgi.framework.startlevel=5

# Sets the start level of newly installed bundles.
felix.startlevel.bundle=1

When I startup I get this:
dhcp-97:felix-1.6.0 azeckoski$ emacs conf/config.properties
dhcp-97:felix-1.6.0 azeckoski$ java -jar bin/felix.jar

Welcome to Felix.
=================

DEBUG: WIRE: 1.0 -> org.osgi.service.packageadmin -> 0
DEBUG: WIRE: 1.0 -> org.osgi.service.startlevel -> 0
DEBUG: WIRE: 1.0 -> org.osgi.framework -> 0
DEBUG: WIRE: 2.0 -> org.osgi.framework -> 0
DEBUG: WIRE: 2.0 -> org.apache.felix.shell -> 1.0
-> DEBUG: WIRE: 3.0 -> org.osgi.service.log -> 7.0
DEBUG: WIRE: 3.0 -> org.osgi.framework -> 0
DEBUG: WIRE: 7.0 -> org.osgi.framework -> 0
DEBUG: DYNAMIC WIRE: 3.0 -> org.apache.felix.shell -> 1.0
DEBUG: WIRE: 9.0 -> org.osgi.service.packageadmin -> 0
DEBUG: WIRE: 9.0 -> org.osgi.service.url -> 0
DEBUG: WIRE: 9.0 -> org.osgi.service.startlevel -> 0
DEBUG: WIRE: 9.0 -> org.osgi.framework -> 0

-> ps -s
START LEVEL 1
   ID   State         Level  Symbolic name
[   0] [Active     ] [    0] org.apache.felix.framework (1.6.0)
[   1] [Active     ] [    1] org.apache.felix.shell (1.2.0)
[   2] [Active     ] [    1] org.apache.felix.shell.tui (1.2.0)
[   3] [Active     ] [    1] org.apache.felix.bundlerepository (1.4.0)
[   7] [Active     ] [    1] org.apache.felix.log (1.0.0)
[   8] [Installed  ] [    2] org.ops4j.pax.web.pax-web-service (0.6.0)
[   9] [Active     ] [    1] org.osgi.core (4.1)
[  10] [Active     ] [    1] org.osgi.compendium (4.1.0)
[  11] [Installed  ] [    1] org.ops4j.pax.web.service.jetty-config (1.0)
-> version
1.6.0

Shouldn't the start level be 5 or do I misunderstand the setting?
-AZ

-- 
Aaron Zeckoski (aaronz@vt.edu)
Senior Research Engineer - CARET - Cambridge University
[http://bugs.sakaiproject.org/confluence/display/~aaronz/]
Sakai Fellow - [http://aaronz-sakai.blogspot.com/]

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


Re: Setting start level in config?

Posted by Stuart McCulloch <mc...@gmail.com>.
2009/4/16 Aaron Zeckoski <aa...@vt.edu>

> Thanks! That works. Should I file a JIRA to correct this in the
> distribution?


the online doc already has the correct name:

   http://felix.apache.org/site/apache-felix-usage-documentation.html

this should get picked up in the next release

http://apache.mirror.infiniteconflict.com/felix/felix-1.6.0.tar.gz
> -AZ<http://apache.mirror.infiniteconflict.com/felix/felix-1.6.0.tar.gz%0A-AZ>
>
>
> On Thu, Apr 16, 2009 at 1:21 PM, Stuart McCulloch <mc...@gmail.com>
> wrote:
> > 2009/4/16 Aaron Zeckoski <aa...@vt.edu>
> >
> >> I am having trouble setting the start level via the felix config file
> >> (conf/config.properties).
> >> Here is the bit I have changed (plus the log level is set to 4):
> >> # Sets the initial start level of the framework upon startup.
> >> org.osgi.framework.startlevel=5
> >>
> >
> > ^ that should be "org.osgi.framework.startlevel.beginning" for Felix
> 1.6.0
> >
> > ( this is a new property in OSGi 4.2 and the name changed while the spec
> was
> > being drafted )
> >
> >
> >> # Sets the start level of newly installed bundles.
> >> felix.startlevel.bundle=1
> >>
> >> When I startup I get this:
> >> dhcp-97:felix-1.6.0 azeckoski$ emacs conf/config.properties
> >> dhcp-97:felix-1.6.0 azeckoski$ java -jar bin/felix.jar
> >>
> >> Welcome to Felix.
> >> =================
> >>
> >> DEBUG: WIRE: 1.0 -> org.osgi.service.packageadmin -> 0
> >> DEBUG: WIRE: 1.0 -> org.osgi.service.startlevel -> 0
> >> DEBUG: WIRE: 1.0 -> org.osgi.framework -> 0
> >> DEBUG: WIRE: 2.0 -> org.osgi.framework -> 0
> >> DEBUG: WIRE: 2.0 -> org.apache.felix.shell -> 1.0
> >> -> DEBUG: WIRE: 3.0 -> org.osgi.service.log -> 7.0
> >> DEBUG: WIRE: 3.0 -> org.osgi.framework -> 0
> >> DEBUG: WIRE: 7.0 -> org.osgi.framework -> 0
> >> DEBUG: DYNAMIC WIRE: 3.0 -> org.apache.felix.shell -> 1.0
> >> DEBUG: WIRE: 9.0 -> org.osgi.service.packageadmin -> 0
> >> DEBUG: WIRE: 9.0 -> org.osgi.service.url -> 0
> >> DEBUG: WIRE: 9.0 -> org.osgi.service.startlevel -> 0
> >> DEBUG: WIRE: 9.0 -> org.osgi.framework -> 0
> >>
> >> -> ps -s
> >> START LEVEL 1
> >>   ID   State         Level  Symbolic name
> >> [   0] [Active     ] [    0] org.apache.felix.framework (1.6.0)
> >> [   1] [Active     ] [    1] org.apache.felix.shell (1.2.0)
> >> [   2] [Active     ] [    1] org.apache.felix.shell.tui (1.2.0)
> >> [   3] [Active     ] [    1] org.apache.felix.bundlerepository (1.4.0)
> >> [   7] [Active     ] [    1] org.apache.felix.log (1.0.0)
> >> [   8] [Installed  ] [    2] org.ops4j.pax.web.pax-web-service (0.6.0)
> >> [   9] [Active     ] [    1] org.osgi.core (4.1)
> >> [  10] [Active     ] [    1] org.osgi.compendium (4.1.0)
> >> [  11] [Installed  ] [    1] org.ops4j.pax.web.service.jetty-config
> (1.0)
> >> -> version
> >> 1.6.0
> >>
> >> Shouldn't the start level be 5 or do I misunderstand the setting?
> >> -AZ
> >>
> >> --
> >> Aaron Zeckoski (aaronz@vt.edu)
> >> Senior Research Engineer - CARET - Cambridge University
> >> [http://bugs.sakaiproject.org/confluence/display/~aaronz/<http://bugs.sakaiproject.org/confluence/display/%7Eaaronz/>
> <http://bugs.sakaiproject.org/confluence/display/%7Eaaronz/>
> >> ]
> >> Sakai Fellow - [http://aaronz-sakai.blogspot.com/]
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> >> For additional commands, e-mail: users-help@felix.apache.org
> >>
> >>
> >
> >
> > --
> > Cheers, Stuart
> >
>
>
>
> --
> Aaron Zeckoski (aaronz@vt.edu)
> Senior Research Engineer - CARET - Cambridge University
> [http://bugs.sakaiproject.org/confluence/display/~aaronz/<http://bugs.sakaiproject.org/confluence/display/%7Eaaronz/>
> ]
> Sakai Fellow - [http://aaronz-sakai.blogspot.com/]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>


-- 
Cheers, Stuart

Re: Setting start level in config?

Posted by Aaron Zeckoski <aa...@vt.edu>.
Thanks! That works. Should I file a JIRA to correct this in the distribution?
http://apache.mirror.infiniteconflict.com/felix/felix-1.6.0.tar.gz
-AZ


On Thu, Apr 16, 2009 at 1:21 PM, Stuart McCulloch <mc...@gmail.com> wrote:
> 2009/4/16 Aaron Zeckoski <aa...@vt.edu>
>
>> I am having trouble setting the start level via the felix config file
>> (conf/config.properties).
>> Here is the bit I have changed (plus the log level is set to 4):
>> # Sets the initial start level of the framework upon startup.
>> org.osgi.framework.startlevel=5
>>
>
> ^ that should be "org.osgi.framework.startlevel.beginning" for Felix 1.6.0
>
> ( this is a new property in OSGi 4.2 and the name changed while the spec was
> being drafted )
>
>
>> # Sets the start level of newly installed bundles.
>> felix.startlevel.bundle=1
>>
>> When I startup I get this:
>> dhcp-97:felix-1.6.0 azeckoski$ emacs conf/config.properties
>> dhcp-97:felix-1.6.0 azeckoski$ java -jar bin/felix.jar
>>
>> Welcome to Felix.
>> =================
>>
>> DEBUG: WIRE: 1.0 -> org.osgi.service.packageadmin -> 0
>> DEBUG: WIRE: 1.0 -> org.osgi.service.startlevel -> 0
>> DEBUG: WIRE: 1.0 -> org.osgi.framework -> 0
>> DEBUG: WIRE: 2.0 -> org.osgi.framework -> 0
>> DEBUG: WIRE: 2.0 -> org.apache.felix.shell -> 1.0
>> -> DEBUG: WIRE: 3.0 -> org.osgi.service.log -> 7.0
>> DEBUG: WIRE: 3.0 -> org.osgi.framework -> 0
>> DEBUG: WIRE: 7.0 -> org.osgi.framework -> 0
>> DEBUG: DYNAMIC WIRE: 3.0 -> org.apache.felix.shell -> 1.0
>> DEBUG: WIRE: 9.0 -> org.osgi.service.packageadmin -> 0
>> DEBUG: WIRE: 9.0 -> org.osgi.service.url -> 0
>> DEBUG: WIRE: 9.0 -> org.osgi.service.startlevel -> 0
>> DEBUG: WIRE: 9.0 -> org.osgi.framework -> 0
>>
>> -> ps -s
>> START LEVEL 1
>>   ID   State         Level  Symbolic name
>> [   0] [Active     ] [    0] org.apache.felix.framework (1.6.0)
>> [   1] [Active     ] [    1] org.apache.felix.shell (1.2.0)
>> [   2] [Active     ] [    1] org.apache.felix.shell.tui (1.2.0)
>> [   3] [Active     ] [    1] org.apache.felix.bundlerepository (1.4.0)
>> [   7] [Active     ] [    1] org.apache.felix.log (1.0.0)
>> [   8] [Installed  ] [    2] org.ops4j.pax.web.pax-web-service (0.6.0)
>> [   9] [Active     ] [    1] org.osgi.core (4.1)
>> [  10] [Active     ] [    1] org.osgi.compendium (4.1.0)
>> [  11] [Installed  ] [    1] org.ops4j.pax.web.service.jetty-config (1.0)
>> -> version
>> 1.6.0
>>
>> Shouldn't the start level be 5 or do I misunderstand the setting?
>> -AZ
>>
>> --
>> Aaron Zeckoski (aaronz@vt.edu)
>> Senior Research Engineer - CARET - Cambridge University
>> [http://bugs.sakaiproject.org/confluence/display/~aaronz/<http://bugs.sakaiproject.org/confluence/display/%7Eaaronz/>
>> ]
>> Sakai Fellow - [http://aaronz-sakai.blogspot.com/]
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>>
>
>
> --
> Cheers, Stuart
>



-- 
Aaron Zeckoski (aaronz@vt.edu)
Senior Research Engineer - CARET - Cambridge University
[http://bugs.sakaiproject.org/confluence/display/~aaronz/]
Sakai Fellow - [http://aaronz-sakai.blogspot.com/]

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


Re: Setting start level in config?

Posted by Stuart McCulloch <mc...@gmail.com>.
2009/4/16 Aaron Zeckoski <aa...@vt.edu>

> I am having trouble setting the start level via the felix config file
> (conf/config.properties).
> Here is the bit I have changed (plus the log level is set to 4):
> # Sets the initial start level of the framework upon startup.
> org.osgi.framework.startlevel=5
>

^ that should be "org.osgi.framework.startlevel.beginning" for Felix 1.6.0

( this is a new property in OSGi 4.2 and the name changed while the spec was
being drafted )


> # Sets the start level of newly installed bundles.
> felix.startlevel.bundle=1
>
> When I startup I get this:
> dhcp-97:felix-1.6.0 azeckoski$ emacs conf/config.properties
> dhcp-97:felix-1.6.0 azeckoski$ java -jar bin/felix.jar
>
> Welcome to Felix.
> =================
>
> DEBUG: WIRE: 1.0 -> org.osgi.service.packageadmin -> 0
> DEBUG: WIRE: 1.0 -> org.osgi.service.startlevel -> 0
> DEBUG: WIRE: 1.0 -> org.osgi.framework -> 0
> DEBUG: WIRE: 2.0 -> org.osgi.framework -> 0
> DEBUG: WIRE: 2.0 -> org.apache.felix.shell -> 1.0
> -> DEBUG: WIRE: 3.0 -> org.osgi.service.log -> 7.0
> DEBUG: WIRE: 3.0 -> org.osgi.framework -> 0
> DEBUG: WIRE: 7.0 -> org.osgi.framework -> 0
> DEBUG: DYNAMIC WIRE: 3.0 -> org.apache.felix.shell -> 1.0
> DEBUG: WIRE: 9.0 -> org.osgi.service.packageadmin -> 0
> DEBUG: WIRE: 9.0 -> org.osgi.service.url -> 0
> DEBUG: WIRE: 9.0 -> org.osgi.service.startlevel -> 0
> DEBUG: WIRE: 9.0 -> org.osgi.framework -> 0
>
> -> ps -s
> START LEVEL 1
>   ID   State         Level  Symbolic name
> [   0] [Active     ] [    0] org.apache.felix.framework (1.6.0)
> [   1] [Active     ] [    1] org.apache.felix.shell (1.2.0)
> [   2] [Active     ] [    1] org.apache.felix.shell.tui (1.2.0)
> [   3] [Active     ] [    1] org.apache.felix.bundlerepository (1.4.0)
> [   7] [Active     ] [    1] org.apache.felix.log (1.0.0)
> [   8] [Installed  ] [    2] org.ops4j.pax.web.pax-web-service (0.6.0)
> [   9] [Active     ] [    1] org.osgi.core (4.1)
> [  10] [Active     ] [    1] org.osgi.compendium (4.1.0)
> [  11] [Installed  ] [    1] org.ops4j.pax.web.service.jetty-config (1.0)
> -> version
> 1.6.0
>
> Shouldn't the start level be 5 or do I misunderstand the setting?
> -AZ
>
> --
> Aaron Zeckoski (aaronz@vt.edu)
> Senior Research Engineer - CARET - Cambridge University
> [http://bugs.sakaiproject.org/confluence/display/~aaronz/<http://bugs.sakaiproject.org/confluence/display/%7Eaaronz/>
> ]
> Sakai Fellow - [http://aaronz-sakai.blogspot.com/]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>


-- 
Cheers, Stuart