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 <jher...@gmail.com> 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

Reply via email to