Opened KARAF-4158 https://issues.apache.org/jira/browse/KARAF-4158
Regards, JP [@@ OPEN @@] -----Message d'origine----- De : Jean-Baptiste Onofré [mailto:[email protected]] Envoyé : mardi 1 décembre 2015 18:08 À : [email protected] Objet : Re: Karaf 4.0.3: unexpected behavior on first startup Yes, please at least for the tracking. I forgot to investigate. Regards JB On 12/01/2015 05:07 PM, CLEMENT Jean-Philippe wrote: > May I open a new Jira? > > JP > > [@@ OPEN @@] > > > -----Message d'origine----- > De : CLEMENT Jean-Philippe > [mailto:[email protected]] > Envoyé : jeudi 26 novembre 2015 15:37 > À : [email protected] > Objet : RE: Karaf 4.0.3: unexpected behavior on first startup > > The "$(PARAM)" first-time-issue also happens with property-placeholder which > uses the default update-strategy (none). > > I suspect the user bundles to be started before the .cfg files are populated > in the /etc directory. > > Regards, > JP > > [@@ OPEN @@] > > > -----Message d'origine----- > De : CLEMENT Jean-Philippe > [mailto:[email protected]] > Envoyé : jeudi 26 novembre 2015 14:45 > À : [email protected] > Objet : RE: Karaf 4.0.3: unexpected behavior on first startup > > The default one (eager). > > This behavior may happen only during the very first Karaf execution when the > user config files are not yet in the /etc directory but still in the /system > one with the .jar bundles. > > During other executions, when the /etc directory is already filled with .cfg > files, no issue. > > Regards, > JP > > [@@ OPEN @@] > > > -----Message d'origine----- > De : Jean-Baptiste Onofré [mailto:[email protected]] Envoyé : jeudi 26 > novembre 2015 14:40 À : [email protected] Objet : Re: Karaf 4.0.3: > unexpected behavior on first startup > > No, we mean that the "restart" (actually update() on the ManagedService) is > normal. > > Now, regarding the substitution, it's more related to blueprint. Do you use > lazy or eager for the activation ? > > Let me check the behavior. > > Regards > JB > > On 11/26/2015 02:23 PM, CLEMENT Jean-Philippe wrote: >> Do you mean it is really expected to get “$(PARAM)” instead of the >> value coming from the configuration file? >> >> JP >> >> [@@ OPEN @@] >> >> *De :*Achim Nierbeck [mailto:[email protected]] *Envoyé :* >> jeudi >> 26 novembre 2015 14:22 *À :* [email protected] *Objet :* Re: >> Karaf >> 4.0.3: unexpected behavior on first startup >> >> Hi, >> >> yes I would even go further and say it's an expected behavior. >> >> so nothing to worry about. >> >> regards, Achim >> >> 2015-11-26 14:10 GMT+01:00 Jean-Baptiste Onofré <[email protected] >> <mailto:[email protected]>>: >> >> Hi JP, >> >> I don't think it's related to blueprint. >> >> It's more the way a ManagedService works. >> >> First the activator starts, and then it will react to the >> ManagedService via the update() method. >> >> I guess it's what you see there. >> >> Regards >> JB >> >> >> >> On 11/26/2015 02:04 PM, CLEMENT Jean-Philippe wrote: >> >> Dear Karaf Team, >> >> I have a strange behavior with Karaf (*) when started for the first >> time. A bean is started then stopped then re-started. This behavior >> is not 100% reproducible but happens maybe one-half of the time. >> >> That bean is instantiated via Blueprint and uses a >> property-placeholder with update-strategy=”reload”. The “Karaf >> distribution” is made by a custom assembly which includes both bundles and >> configuration files. >> >> During the first bundle start the only configuration variable (a >> String) is not substituted which is a first issue (1). Then the >> bundle is stopped and restarted with the substituted string. This is >> a second issue (2) as I expected the bundle to start only one time as >> the configuration file did not really change. >> >> Is this problem already known? Is there a workaround? >> >> Kind regards, >> >> JP >> >> [@@ OPEN @@] >> >> -- >> Jean-Baptiste Onofré >> [email protected] <mailto:[email protected]> >> http://blog.nanthrax.net Talend - http://www.talend.com >> >> >> >> -- >> >> >> Apache Member >> >> Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web >> <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project >> Lead blog <http://notizblog.nierbeck.de/> >> >> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS> >> >> Software Architect / Project Manager / Scrum Master >> > > -- > Jean-Baptiste Onofré > [email protected] > http://blog.nanthrax.net > Talend - http://www.talend.com > -- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
