You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by Cristiano Costantini <cr...@gmail.com> on 2016/03/09 08:57:16 UTC

Parenthesis in featuresBoot

Hello all,

In ServiceMix 7.0.0.M1 I have a deadlock at startup when I add the features
of my applications to the featuresBoot in etc/org.apache.karaf.features.cfg
(the data/log/servicemix.log stops after "org.apache.karaf.features.core -
4.0.4 | Adding features", you can see the full log the following Gist:
https://gist.github.com/cristcost/8ffe3a10cee140d07af3)

I've accidentally solved the problem by grouping the original ServiceMix
distribution features in parenthesis, and then adding mine after:

featuresBoot = (wrap,aries-blueprint, ...
,camel-xstream,war),webconsole,cristcost-test

But the documentation says nothing about the use of parenthesis:

http://karaf.apache.org/manual/latest/users-guide/provisioning.html#Bootfeatures

(I've seen parenthesis used in ServiceMix 6.1.0 and I tried)

1) Can someone please explain how does the parenthesis works in Karaf
3.x/4.x and how this has changed from Karaf 2.x (I was having no problem
like this in ServiceMix 5.3.x)?

2) If the features I add are the cause of a Dead Lock, do you have
suggestion of how to debug the feature bootstrap and find the main issue?
(I fear that using parenthesis does not solve the problem but only make it
more rare to happen, and I fear to have the deadlock in production)


Thank you very much
Cristiano

P.S. I'm slowly progressing in upgrading from SMX 5

Re: Parenthesis in featuresBoot

Posted by Cristiano Costantini <cr...@gmail.com>.
Thanks to you both,

apparently I do need to group the main ServiceMix distribution features
before loading mines.

I'll make use of this feature.

Regards,
Cristiano


Il giorno mer 9 mar 2016 alle ore 09:16 Jean-Baptiste Onofré <
jb@nanthrax.net> ha scritto:

> Sorry, I meant Karaf 3/4 (stage didn't exist in Karaf 2 AFAIR).
>
> Regards
> JB
>
> On 03/09/2016 09:02 AM, Jean-Baptiste Onofré wrote:
> > Hi Cristiano,
> >
> > it's what we name featuresBoot staging, allowing you to fully install a
> > group of features before moving to others.
> >
> > We don't change the way it works (about stage) between Karaf 2/3/4. The
> > main difference is in Karaf 4 with the new features resolver.
> >
> > Regards
> > JB
> >
> > On 03/09/2016 08:57 AM, Cristiano Costantini wrote:
> >> Hello all,
> >>
> >> In ServiceMix 7.0.0.M1 I have a deadlock at startup when I add the
> >> features
> >> of my applications to the featuresBoot in
> >> etc/org.apache.karaf.features.cfg
> >> (the data/log/servicemix.log stops after
> >> "org.apache.karaf.features.core -
> >> 4.0.4 | Adding features", you can see the full log the following Gist:
> >> https://gist.github.com/cristcost/8ffe3a10cee140d07af3)
> >>
> >> I've accidentally solved the problem by grouping the original ServiceMix
> >> distribution features in parenthesis, and then adding mine after:
> >>
> >> featuresBoot = (wrap,aries-blueprint, ...
> >> ,camel-xstream,war),webconsole,cristcost-test
> >>
> >> But the documentation says nothing about the use of parenthesis:
> >>
> >>
> http://karaf.apache.org/manual/latest/users-guide/provisioning.html#Bootfeatures
> >>
> >>
> >> (I've seen parenthesis used in ServiceMix 6.1.0 and I tried)
> >>
> >> 1) Can someone please explain how does the parenthesis works in Karaf
> >> 3.x/4.x and how this has changed from Karaf 2.x (I was having no problem
> >> like this in ServiceMix 5.3.x)?
> >>
> >> 2) If the features I add are the cause of a Dead Lock, do you have
> >> suggestion of how to debug the feature bootstrap and find the main
> issue?
> >> (I fear that using parenthesis does not solve the problem but only
> >> make it
> >> more rare to happen, and I fear to have the deadlock in production)
> >>
> >>
> >> Thank you very much
> >> Cristiano
> >>
> >> P.S. I'm slowly progressing in upgrading from SMX 5
> >>
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Re: Parenthesis in featuresBoot

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Sorry, I meant Karaf 3/4 (stage didn't exist in Karaf 2 AFAIR).

Regards
JB

On 03/09/2016 09:02 AM, Jean-Baptiste Onofré wrote:
> Hi Cristiano,
>
> it's what we name featuresBoot staging, allowing you to fully install a
> group of features before moving to others.
>
> We don't change the way it works (about stage) between Karaf 2/3/4. The
> main difference is in Karaf 4 with the new features resolver.
>
> Regards
> JB
>
> On 03/09/2016 08:57 AM, Cristiano Costantini wrote:
>> Hello all,
>>
>> In ServiceMix 7.0.0.M1 I have a deadlock at startup when I add the
>> features
>> of my applications to the featuresBoot in
>> etc/org.apache.karaf.features.cfg
>> (the data/log/servicemix.log stops after
>> "org.apache.karaf.features.core -
>> 4.0.4 | Adding features", you can see the full log the following Gist:
>> https://gist.github.com/cristcost/8ffe3a10cee140d07af3)
>>
>> I've accidentally solved the problem by grouping the original ServiceMix
>> distribution features in parenthesis, and then adding mine after:
>>
>> featuresBoot = (wrap,aries-blueprint, ...
>> ,camel-xstream,war),webconsole,cristcost-test
>>
>> But the documentation says nothing about the use of parenthesis:
>>
>> http://karaf.apache.org/manual/latest/users-guide/provisioning.html#Bootfeatures
>>
>>
>> (I've seen parenthesis used in ServiceMix 6.1.0 and I tried)
>>
>> 1) Can someone please explain how does the parenthesis works in Karaf
>> 3.x/4.x and how this has changed from Karaf 2.x (I was having no problem
>> like this in ServiceMix 5.3.x)?
>>
>> 2) If the features I add are the cause of a Dead Lock, do you have
>> suggestion of how to debug the feature bootstrap and find the main issue?
>> (I fear that using parenthesis does not solve the problem but only
>> make it
>> more rare to happen, and I fear to have the deadlock in production)
>>
>>
>> Thank you very much
>> Cristiano
>>
>> P.S. I'm slowly progressing in upgrading from SMX 5
>>
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Parenthesis in featuresBoot

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Cristiano,

it's what we name featuresBoot staging, allowing you to fully install a 
group of features before moving to others.

We don't change the way it works (about stage) between Karaf 2/3/4. The 
main difference is in Karaf 4 with the new features resolver.

Regards
JB

On 03/09/2016 08:57 AM, Cristiano Costantini wrote:
> Hello all,
>
> In ServiceMix 7.0.0.M1 I have a deadlock at startup when I add the features
> of my applications to the featuresBoot in etc/org.apache.karaf.features.cfg
> (the data/log/servicemix.log stops after "org.apache.karaf.features.core -
> 4.0.4 | Adding features", you can see the full log the following Gist:
> https://gist.github.com/cristcost/8ffe3a10cee140d07af3)
>
> I've accidentally solved the problem by grouping the original ServiceMix
> distribution features in parenthesis, and then adding mine after:
>
> featuresBoot = (wrap,aries-blueprint, ...
> ,camel-xstream,war),webconsole,cristcost-test
>
> But the documentation says nothing about the use of parenthesis:
>
> http://karaf.apache.org/manual/latest/users-guide/provisioning.html#Bootfeatures
>
> (I've seen parenthesis used in ServiceMix 6.1.0 and I tried)
>
> 1) Can someone please explain how does the parenthesis works in Karaf
> 3.x/4.x and how this has changed from Karaf 2.x (I was having no problem
> like this in ServiceMix 5.3.x)?
>
> 2) If the features I add are the cause of a Dead Lock, do you have
> suggestion of how to debug the feature bootstrap and find the main issue?
> (I fear that using parenthesis does not solve the problem but only make it
> more rare to happen, and I fear to have the deadlock in production)
>
>
> Thank you very much
> Cristiano
>
> P.S. I'm slowly progressing in upgrading from SMX 5
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Parenthesis in featuresBoot

Posted by Guillaume Nodet <gn...@apache.org>.
This is related to https://issues.apache.org/jira/browse/KARAF-608

2016-03-09 8:57 GMT+01:00 Cristiano Costantini <
cristiano.costantini@gmail.com>:

> Hello all,
>
> In ServiceMix 7.0.0.M1 I have a deadlock at startup when I add the features
> of my applications to the featuresBoot in etc/org.apache.karaf.features.cfg
> (the data/log/servicemix.log stops after "org.apache.karaf.features.core -
> 4.0.4 | Adding features", you can see the full log the following Gist:
> https://gist.github.com/cristcost/8ffe3a10cee140d07af3)
>
> I've accidentally solved the problem by grouping the original ServiceMix
> distribution features in parenthesis, and then adding mine after:
>
> featuresBoot = (wrap,aries-blueprint, ...
> ,camel-xstream,war),webconsole,cristcost-test
>
> But the documentation says nothing about the use of parenthesis:
>
>
> http://karaf.apache.org/manual/latest/users-guide/provisioning.html#Bootfeatures
>
> (I've seen parenthesis used in ServiceMix 6.1.0 and I tried)
>
> 1) Can someone please explain how does the parenthesis works in Karaf
> 3.x/4.x and how this has changed from Karaf 2.x (I was having no problem
> like this in ServiceMix 5.3.x)?
>
> 2) If the features I add are the cause of a Dead Lock, do you have
> suggestion of how to debug the feature bootstrap and find the main issue?
> (I fear that using parenthesis does not solve the problem but only make it
> more rare to happen, and I fear to have the deadlock in production)
>
>
> Thank you very much
> Cristiano
>
> P.S. I'm slowly progressing in upgrading from SMX 5
>



-- 
------------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration

Email: gnodet@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/