You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by cbiava <ch...@gmail.com> on 2014/01/22 12:10:45 UTC
using KARAF_HOME, BASE vars
Hello,
I have a question about KARAF_HOME and KARAF_BASE vars. Indeed, I though
that KARAF_HOME was the main lib rep and KARAF_BASE the working dir.
But I noticed that external librairies are imported from
${KARAF_HOME}/lib/ext.
In the case there are external jars I'd like to import in the working
instance, I would have prefered them to be in ${KARAF_BASE}/lib/ext.
Do I made a mistake ?
Christophe
--
View this message in context: http://karaf.922171.n3.nabble.com/using-KARAF-HOME-BASE-vars-tp4031255.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: using KARAF_HOME, BASE vars
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
By the way, Karaf 3.0.0 and 2.4.0 introduce KARAF_ETC (for the location
of the configuration files). I introduced it for the deb, rpm, and
Ubuntu Juju charms that I'm preparing.
Regards
JB
On 01/22/2014 12:15 PM, Jean-Baptiste Onofré wrote:
> Hi,
>
> the main difference is about root and other instances.
>
> KARAF_HOME is shared between the instances whereas KARAF_BASE is local
> to an instance.
> As the lib should be shared by the instances, the right should be
> ${KARAF_HOME}/lib/ext. For the root instance, it doesn't matter.
>
> Regards
> JB
>
> On 01/22/2014 12:10 PM, cbiava wrote:
>> Hello,
>>
>> I have a question about KARAF_HOME and KARAF_BASE vars. Indeed, I though
>> that KARAF_HOME was the main lib rep and KARAF_BASE the working dir.
>> But I noticed that external librairies are imported from
>> ${KARAF_HOME}/lib/ext.
>> In the case there are external jars I'd like to import in the working
>> instance, I would have prefered them to be in ${KARAF_BASE}/lib/ext.
>> Do I made a mistake ?
>>
>> Christophe
>>
>>
>>
>> --
>> View this message in context:
>> http://karaf.922171.n3.nabble.com/using-KARAF-HOME-BASE-vars-tp4031255.html
>>
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: using KARAF_HOME, BASE vars
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
KARAF_HOME doesn't mean the Karaf home to users. It's the main folder
hosting different Karaf instances.
By default KARAF_BASE == KARAF_HOME.
Regards
JB
On 01/22/2014 12:31 PM, cbiava wrote:
> More over I noticed in bin/karaf the following lines :
> locateHome() {
> if [ "x$KARAF_HOME" != "x" ]; then
> warn "Ignoring predefined value for KARAF_HOME"
> fi
>
> # In POSIX shells, CDPATH may cause cd to write to stdout
> (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
>
> KARAF_HOME=`cd "$DIRNAME/.."; pwd`
> if [ ! -d "$KARAF_HOME" ]; then
> die "KARAF_HOME is not valid: $KARAF_HOME"
> fi
> }
>
> thus, I can't use an other KARAF_HOME dir.
>
> Christophe
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/using-KARAF-HOME-BASE-vars-tp4031255p4031259.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: using KARAF_HOME, BASE vars
Posted by cbiava <ch...@gmail.com>.
More over I noticed in bin/karaf the following lines :
locateHome() {
if [ "x$KARAF_HOME" != "x" ]; then
warn "Ignoring predefined value for KARAF_HOME"
fi
# In POSIX shells, CDPATH may cause cd to write to stdout
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
KARAF_HOME=`cd "$DIRNAME/.."; pwd`
if [ ! -d "$KARAF_HOME" ]; then
die "KARAF_HOME is not valid: $KARAF_HOME"
fi
}
thus, I can't use an other KARAF_HOME dir.
Christophe
--
View this message in context: http://karaf.922171.n3.nabble.com/using-KARAF-HOME-BASE-vars-tp4031255p4031259.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: using KARAF_HOME, BASE vars
Posted by cbiava <ch...@gmail.com>.
Hi Jean Baptiste,
thanks for your answser. Actually i'm used to tomcat where tomcat_home is
the binaries dir and tomcat_base the local instance.
Is this different with karaf. I think I'll have only root instances on
differents users and I wanted to make them share the same binaries directory
Christophe
--
View this message in context: http://karaf.922171.n3.nabble.com/using-KARAF-HOME-BASE-vars-tp4031255p4031258.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: using KARAF_HOME, BASE vars
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
the main difference is about root and other instances.
KARAF_HOME is shared between the instances whereas KARAF_BASE is local
to an instance.
As the lib should be shared by the instances, the right should be
${KARAF_HOME}/lib/ext. For the root instance, it doesn't matter.
Regards
JB
On 01/22/2014 12:10 PM, cbiava wrote:
> Hello,
>
> I have a question about KARAF_HOME and KARAF_BASE vars. Indeed, I though
> that KARAF_HOME was the main lib rep and KARAF_BASE the working dir.
> But I noticed that external librairies are imported from
> ${KARAF_HOME}/lib/ext.
> In the case there are external jars I'd like to import in the working
> instance, I would have prefered them to be in ${KARAF_BASE}/lib/ext.
> Do I made a mistake ?
>
> Christophe
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/using-KARAF-HOME-BASE-vars-tp4031255.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com