You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by "Cornelius, Martin (DWBI)" <Ma...@smiths-heimann.com> on 2009/09/02 16:20:58 UTC

Question: Howto auto install bundles that depend on fragments

Hi all, another dumb newbie question

I'd like to auto-install a bundle (namely, slf4j-api-1.5.6.jar), which
depends on a fragment-bundle (namely, slf4j-jdk14-1.5.6.jar).

For auto-installing I use felix.auto.start.xxx entries in the felix
config,properties file.

If I omit the fragment-bundle in the felix config file, I get resolver
errors when the fragment-host bundle is started.

If I add the fragment to felix.aouto.start.xxx before the fragment host,
I get an exception telling that a fragment cannot be started on felix
startup. Is there a way to prevent this ?

Tanks for any hints, Martin 




 
************************************************
The information contained in, or attached to, this e-mail, may contain confidential information and is intended solely for the use of the individual or entity to whom they are addressed and may be subject to legal privilege.  If you have received this e-mail in error you should notify the sender immediately by reply e-mail, delete the message from your system and notify your system manager.  Please do not copy it for any purpose, or disclose its contents to any other person.  The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company.  The recipient should check this e-mail and any attachments for the presence of viruses.  The company accepts no liability for any damage caused, directly or indirectly, by any virus transmitted in this email.
************************************************

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


RE: Question: Howto auto install bundles that depend on fragments

Posted by "Cornelius, Martin (DWBI)" <Ma...@smiths-heimann.com>.

Hi Filippo, Stuart

> Not 100% sure, but if you add
> felix.auto.install.<bundle-level>=<your-bundle> it should work.

Of course it works,  a typical case of RTFM ;-)


 
************************************************
The information contained in, or attached to, this e-mail, may contain confidential information and is intended solely for the use of the individual or entity to whom they are addressed and may be subject to legal privilege.  If you have received this e-mail in error you should notify the sender immediately by reply e-mail, delete the message from your system and notify your system manager.  Please do not copy it for any purpose, or disclose its contents to any other person.  The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company.  The recipient should check this e-mail and any attachments for the presence of viruses.  The company accepts no liability for any damage caused, directly or indirectly, by any virus transmitted in this email.
************************************************

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


Re: Question: Howto auto install bundles that depend on fragments

Posted by Filippo Diotalevi <fi...@gmail.com>.
On Wed, Sep 2, 2009 at 4:20 PM, Cornelius, Martin
(DWBI)<Ma...@smiths-heimann.com> wrote:
>
> Hi all, another dumb newbie question
>
> I'd like to auto-install a bundle (namely, slf4j-api-1.5.6.jar), which
> depends on a fragment-bundle (namely, slf4j-jdk14-1.5.6.jar).
>
> For auto-installing I use felix.auto.start.xxx entries in the felix
> config,properties file.
>
> If I omit the fragment-bundle in the felix config file, I get resolver
> errors when the fragment-host bundle is started.
>
> If I add the fragment to felix.aouto.start.xxx before the fragment host,
> I get an exception telling that a fragment cannot be started on felix
> startup. Is there a way to prevent this ?
>
> Tanks for any hints, Martin

Not 100% sure, but if you add

felix.auto.install.<bundle-level>=<your-bundle>

it should work.

-- 
Filippo Diotalevi

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


Re: Question: Howto auto install bundles that depend on fragments

Posted by Stuart McCulloch <mc...@gmail.com>.
2009/9/2 Cornelius, Martin (DWBI) <Ma...@smiths-heimann.com>

>
> Hi all, another dumb newbie question
>
> I'd like to auto-install a bundle (namely, slf4j-api-1.5.6.jar), which
> depends on a fragment-bundle (namely, slf4j-jdk14-1.5.6.jar).
>
> For auto-installing I use felix.auto.start.xxx entries in the felix
> config,properties file.
>

have you tried using "felix.auto.install.xxx" instead for your fragments?

this will install them, but not start them:
http://felix.apache.org/site/apache-felix-framework-usage-documentation.html


> If I omit the fragment-bundle in the felix config file, I get resolver
> errors when the fragment-host bundle is started.
>
> If I add the fragment to felix.aouto.start.xxx before the fragment host,
> I get an exception telling that a fragment cannot be started on felix
> startup. Is there a way to prevent this ?
>
> Tanks for any hints, Martin
>
>
>
>
>
> ************************************************
> The information contained in, or attached to, this e-mail, may contain
> confidential information and is intended solely for the use of the
> individual or entity to whom they are addressed and may be subject to legal
> privilege.  If you have received this e-mail in error you should notify the
> sender immediately by reply e-mail, delete the message from your system and
> notify your system manager.  Please do not copy it for any purpose, or
> disclose its contents to any other person.  The views or opinions presented
> in this e-mail are solely those of the author and do not necessarily
> represent those of the company.  The recipient should check this e-mail and
> any attachments for the presence of viruses.  The company accepts no
> liability for any damage caused, directly or indirectly, by any virus
> transmitted in this email.
> ************************************************
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
-- 
Cheers, Stuart