Re: Karaf 4.3.1 issue when KARAF_BASE is set
Hi Jakub, Yes, we will fix that on wrapper as well. Thanks, Regards JB > Le 8 avr. 2021 à 09:35, Jakub Herkel a écrit : > > Today I found out that there is also similar problem with > chronos-wraper. Could you also please check this? > > Jakub > > On Thu, Apr 8, 2021 at 7:12 AM Jean-Baptiste Onofre wrote: >> >> Hi Jakub, >> >> Good catch. FYI, this "issue" is there for a while on main branch. >> >> Freeman already did a fix, it will be included in Karaf 4.3.2. >> >> Thanks ! >> Regards >> JB >> >>> Le 7 avr. 2021 à 20:07, Jakub Herkel a écrit : >>> >>> Hi, >>> >>> During migration from servicemix 7.0.1 to karaf 4.3.1 I can see these >>> lines before karaf start: >>> karaf: Ignoring predefined value for KARAF_HOME >>> WARNING: package org.apache.karaf.specs.locator not in java.base >>> Error starting karaf activator >>> org.apache.karaf.specs.activator.Activator: >>> org/apache/karaf/specs/locator/OsgiLocator >>> >>> After some testing I found out that problem appears when KARAF_BASE is >>> set and it is not the same directory as KARAF_HOME. I think that >>> problem is in karaf.sh where I can see : >>> cd "${KARAF_BASE}" >>> ant later there is a line: >>> --patch-module >>> java.base=lib/endorsed/org.apache.karaf.specs.locator-4.3.1.jar >>> >>> So org.apache.karaf.specs.locator-4.3.1.jar has to be located under >>> KARAF_BASE/lib. Due to this reason wouldn't it be better when the >>> line is prefixed with KARAF_HOME? >>> i.e. --patch-module >>> java.base=$KARAF_HOME/lib/endorsed/org.apache.karaf.specs.locator-4.3.1.jar >>> >>> with best regards >>> >>> jakub >>
Re: Karaf 4.3.1 issue when KARAF_BASE is set
chronos-wrapper.conf -> karaf-wrapper.conf On Thu, Apr 8, 2021 at 9:35 AM Jakub Herkel wrote: > > Today I found out that there is also similar problem with > chronos-wraper. Could you also please check this? > > Jakub > > On Thu, Apr 8, 2021 at 7:12 AM Jean-Baptiste Onofre wrote: > > > > Hi Jakub, > > > > Good catch. FYI, this "issue" is there for a while on main branch. > > > > Freeman already did a fix, it will be included in Karaf 4.3.2. > > > > Thanks ! > > Regards > > JB > > > > > Le 7 avr. 2021 à 20:07, Jakub Herkel a écrit : > > > > > > Hi, > > > > > > During migration from servicemix 7.0.1 to karaf 4.3.1 I can see these > > > lines before karaf start: > > > karaf: Ignoring predefined value for KARAF_HOME > > > WARNING: package org.apache.karaf.specs.locator not in java.base > > > Error starting karaf activator > > > org.apache.karaf.specs.activator.Activator: > > > org/apache/karaf/specs/locator/OsgiLocator > > > > > > After some testing I found out that problem appears when KARAF_BASE is > > > set and it is not the same directory as KARAF_HOME. I think that > > > problem is in karaf.sh where I can see : > > > cd "${KARAF_BASE}" > > > ant later there is a line: > > > --patch-module > > > java.base=lib/endorsed/org.apache.karaf.specs.locator-4.3.1.jar > > > > > > So org.apache.karaf.specs.locator-4.3.1.jar has to be located under > > > KARAF_BASE/lib. Due to this reason wouldn't it be better when the > > > line is prefixed with KARAF_HOME? > > > i.e. --patch-module > > > java.base=$KARAF_HOME/lib/endorsed/org.apache.karaf.specs.locator-4.3.1.jar > > > > > > with best regards > > > > > > jakub > >
Re: Karaf 4.3.1 issue when KARAF_BASE is set
Today I found out that there is also similar problem with chronos-wraper. Could you also please check this? Jakub On Thu, Apr 8, 2021 at 7:12 AM Jean-Baptiste Onofre wrote: > > Hi Jakub, > > Good catch. FYI, this "issue" is there for a while on main branch. > > Freeman already did a fix, it will be included in Karaf 4.3.2. > > Thanks ! > Regards > JB > > > Le 7 avr. 2021 à 20:07, Jakub Herkel a écrit : > > > > Hi, > > > > During migration from servicemix 7.0.1 to karaf 4.3.1 I can see these > > lines before karaf start: > > karaf: Ignoring predefined value for KARAF_HOME > > WARNING: package org.apache.karaf.specs.locator not in java.base > > Error starting karaf activator > > org.apache.karaf.specs.activator.Activator: > > org/apache/karaf/specs/locator/OsgiLocator > > > > After some testing I found out that problem appears when KARAF_BASE is > > set and it is not the same directory as KARAF_HOME. I think that > > problem is in karaf.sh where I can see : > > cd "${KARAF_BASE}" > > ant later there is a line: > > --patch-module > > java.base=lib/endorsed/org.apache.karaf.specs.locator-4.3.1.jar > > > > So org.apache.karaf.specs.locator-4.3.1.jar has to be located under > > KARAF_BASE/lib. Due to this reason wouldn't it be better when the > > line is prefixed with KARAF_HOME? > > i.e. --patch-module > > java.base=$KARAF_HOME/lib/endorsed/org.apache.karaf.specs.locator-4.3.1.jar > > > > with best regards > > > > jakub >
Re: Karaf 4.3.1 issue when KARAF_BASE is set
Hi Jakub, Good catch. FYI, this "issue" is there for a while on main branch. Freeman already did a fix, it will be included in Karaf 4.3.2. Thanks ! Regards JB > Le 7 avr. 2021 à 20:07, Jakub Herkel a écrit : > > Hi, > > During migration from servicemix 7.0.1 to karaf 4.3.1 I can see these > lines before karaf start: > karaf: Ignoring predefined value for KARAF_HOME > WARNING: package org.apache.karaf.specs.locator not in java.base > Error starting karaf activator > org.apache.karaf.specs.activator.Activator: > org/apache/karaf/specs/locator/OsgiLocator > > After some testing I found out that problem appears when KARAF_BASE is > set and it is not the same directory as KARAF_HOME. I think that > problem is in karaf.sh where I can see : > cd "${KARAF_BASE}" > ant later there is a line: > --patch-module java.base=lib/endorsed/org.apache.karaf.specs.locator-4.3.1.jar > > So org.apache.karaf.specs.locator-4.3.1.jar has to be located under > KARAF_BASE/lib. Due to this reason wouldn't it be better when the > line is prefixed with KARAF_HOME? > i.e. --patch-module > java.base=$KARAF_HOME/lib/endorsed/org.apache.karaf.specs.locator-4.3.1.jar > > with best regards > > jakub
Re: Karaf 4.3.1 issue when KARAF_BASE is set
Hi Jakub, Thanks for reporting this and this is a good catch! Yes, we need to fix it up this way. I created https://issues.apache.org/jira/browse/KARAF-7095 to track it. Best Regards Freeman On Wed, Apr 7, 2021 at 2:08 PM Jakub Herkel wrote: > Hi, > > During migration from servicemix 7.0.1 to karaf 4.3.1 I can see these > lines before karaf start: > karaf: Ignoring predefined value for KARAF_HOME > WARNING: package org.apache.karaf.specs.locator not in java.base > Error starting karaf activator > org.apache.karaf.specs.activator.Activator: > org/apache/karaf/specs/locator/OsgiLocator > > After some testing I found out that problem appears when KARAF_BASE is > set and it is not the same directory as KARAF_HOME. I think that > problem is in karaf.sh where I can see : > cd "${KARAF_BASE}" > ant later there is a line: > --patch-module > java.base=lib/endorsed/org.apache.karaf.specs.locator-4.3.1.jar > > So org.apache.karaf.specs.locator-4.3.1.jar has to be located under > KARAF_BASE/lib. Due to this reason wouldn't it be better when the > line is prefixed with KARAF_HOME? > i.e. --patch-module > java.base=$KARAF_HOME/lib/endorsed/org.apache.karaf.specs.locator-4.3.1.jar > > with best regards > > jakub >