You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Igal @ getRailo.org" <ig...@getrailo.org> on 2014/08/26 17:05:53 UTC
Specifying Path to Config
is it possible to specify the path to the /conf folder? if yes, how?
if no, why?
I like upgrading Tomcat when a new update is available, and it would be
much easier if I could keep all of my config files in one place, without
having to move files with each upgrade. (actually, I overwrite the /bin
and /lib folders when upgrading a minor version, but that's beside the
point).
thanks,
Igal
--
Igal Sapir
Railo Core Developer
http://getRailo.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Specifying Path to Config
Posted by "Igal @ getRailo.org" <ig...@getrailo.org>.
great! thank you very much for your insight!
On 8/26/2014 10:08 AM, Christopher Schultz wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Igal,
>
> On 8/26/14, 11:35 AM, Igal @ getRailo.org wrote:
>> hi Chris, thank you for your prompt response.
>>
>> I should have clarified in my original email that:
>>
>> 1) I am running Tomcat as a Windows service
> You can use CATALINA_HOME and CATALINA_BASE as environment variables
> before running service.bat to install the service. You can also set
> catalina.home and catalina.base properties using tomcatXw.exe (where X
> is your Tomcat version).
>
>> 2) my goal is to have something like this:
>>
>> C:\Programs\Tomcat-conf <== /conf folder goes here, unchanged with
>> an upgrade
>>
>> C:\Programs\Tomcat-bin <== /bin and /lib go here, updated when
>> there is a new point-release
> Change this to:
>
> C:\Tomcats\Tomcat-conf\conf
> C:\Tomcats\Apache Tomcat 7.0.50
> C:\Tomcats\Apache Tomcat 7.0.51
>
> C:\> SET CATALINA_HOME=C:\Tomcats\Apache Tomcat 7.0.50
> C:\> SET CATALINA_HOME=C:\Tomcats\Tomcat-conf
> C:\> %CATALINA_HOME%\bin\service.bat [your options]
>
> Now you can start your webapps deployed into
> C:\Tomcats\Tomcat-conf\webapps using Tomcat 7.0.50. To switch to
> Tomcat 7.0.51:
>
> Step 0: Stop the existing Tomcat service
>
> Then,
> C:\> SET CATALINA_HOME=C:\Tomcats\Apache Tomcat 7.0.51
> C:\> SET CATALINA_HOME=C:\Tomcats\Tomcat-conf
> C:\> %CATALINA_HOME%\bin\service.bat [your options]
>
> Now, restart the service.
>
> you can even define different services to start the same webapps under
> different Tomcat versions. (Don't try to start them at the same time,
> though, unless you have changed all the port numbers to avoid conflicts).
>
>> from the README.txt/advanced that you cited I see that I can use
>> CATALINA_BASE for the Tomcat-conf folder above, and CATALINA_HOME
>> for the Tomcat-bin, and specifying the env values when installing
>> the service, as documented at
>> http://tomcat.apache.org/tomcat-8.0-doc/windows-service-howto.html#Multiple_Instances
>>
>> do you think that this would work for a Windows service setup?
> Absolutely, though must admit that I haven't actually done it myself.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBCAAGBQJT/L71AAoJEBzwKT+lPKRY0lAP/0FvOYfypBQeJfHK7NjMh5Ni
> q62sL/pNXPh5qA9tGjys1LtFiBNtIHPlu2KMJ+0PbXFLIy5/gOFJRQEeQDSmaLMy
> DTv5JIGmrQcpKn5HUOwAbH94dSPxsgWBCUtgPoNlOo8BI76c2OUw+crCCxTfjFhE
> lorQ7EXSp5r+lbA98EQehx9fRh84+CSwWN41fCQQsFf+Ne8ka6/Uara7Q7M72L9c
> 4jFJ0ZZeVbJ5tbAVa6RqiWUcx3JpUI94hO6lCootjr53ueoDUm41/1ufD25HGdDX
> 4imGecKMcLtMGuo+l7zW0rxXImA9muRpxMZp2er04/phLdhf+faCfqn4gdMvyV3I
> Ld/PqZUJYLcnMwdtKN/VMQpVqKrA3o3HfPn6cfLr+WATEnAnLLtt53PM+SMoEydC
> 21BvdvGG8UJ0F4J6SkBk7+OUFlVE+7BpNb2LI0sDTrBoEmsbO/Cqua50cxy09ELq
> xoXKImsL2UV9JbVi3oXMndoYiE0TH1dLSKR1nsiIpAoBJf1Wwtrlq4nDUeTBepUp
> wwhs5Sq9PQFsCAzpAz1jzb0QURcAr3OpldjWe9p+npUFTevttRPsDfa8vn/Iw5NO
> Vuep66WBSULFaFC8/G104xLVNN6Dx8fBIeKKF4294ScXH02MPSgemLzm4NlHzBTr
> YzadOPLTpPxAXK/DaSx8
> =qKao
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
--
Igal Sapir
Railo Core Developer
http://getRailo.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Specifying Path to Config
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Igal,
On 8/26/14, 11:35 AM, Igal @ getRailo.org wrote:
> hi Chris, thank you for your prompt response.
>
> I should have clarified in my original email that:
>
> 1) I am running Tomcat as a Windows service
You can use CATALINA_HOME and CATALINA_BASE as environment variables
before running service.bat to install the service. You can also set
catalina.home and catalina.base properties using tomcatXw.exe (where X
is your Tomcat version).
> 2) my goal is to have something like this:
>
> C:\Programs\Tomcat-conf <== /conf folder goes here, unchanged with
> an upgrade
>
> C:\Programs\Tomcat-bin <== /bin and /lib go here, updated when
> there is a new point-release
Change this to:
C:\Tomcats\Tomcat-conf\conf
C:\Tomcats\Apache Tomcat 7.0.50
C:\Tomcats\Apache Tomcat 7.0.51
C:\> SET CATALINA_HOME=C:\Tomcats\Apache Tomcat 7.0.50
C:\> SET CATALINA_HOME=C:\Tomcats\Tomcat-conf
C:\> %CATALINA_HOME%\bin\service.bat [your options]
Now you can start your webapps deployed into
C:\Tomcats\Tomcat-conf\webapps using Tomcat 7.0.50. To switch to
Tomcat 7.0.51:
Step 0: Stop the existing Tomcat service
Then,
C:\> SET CATALINA_HOME=C:\Tomcats\Apache Tomcat 7.0.51
C:\> SET CATALINA_HOME=C:\Tomcats\Tomcat-conf
C:\> %CATALINA_HOME%\bin\service.bat [your options]
Now, restart the service.
you can even define different services to start the same webapps under
different Tomcat versions. (Don't try to start them at the same time,
though, unless you have changed all the port numbers to avoid conflicts).
> from the README.txt/advanced that you cited I see that I can use
> CATALINA_BASE for the Tomcat-conf folder above, and CATALINA_HOME
> for the Tomcat-bin, and specifying the env values when installing
> the service, as documented at
> http://tomcat.apache.org/tomcat-8.0-doc/windows-service-howto.html#Multiple_Instances
>
> do you think that this would work for a Windows service setup?
Absolutely, though must admit that I haven't actually done it myself.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
iQIcBAEBCAAGBQJT/L71AAoJEBzwKT+lPKRY0lAP/0FvOYfypBQeJfHK7NjMh5Ni
q62sL/pNXPh5qA9tGjys1LtFiBNtIHPlu2KMJ+0PbXFLIy5/gOFJRQEeQDSmaLMy
DTv5JIGmrQcpKn5HUOwAbH94dSPxsgWBCUtgPoNlOo8BI76c2OUw+crCCxTfjFhE
lorQ7EXSp5r+lbA98EQehx9fRh84+CSwWN41fCQQsFf+Ne8ka6/Uara7Q7M72L9c
4jFJ0ZZeVbJ5tbAVa6RqiWUcx3JpUI94hO6lCootjr53ueoDUm41/1ufD25HGdDX
4imGecKMcLtMGuo+l7zW0rxXImA9muRpxMZp2er04/phLdhf+faCfqn4gdMvyV3I
Ld/PqZUJYLcnMwdtKN/VMQpVqKrA3o3HfPn6cfLr+WATEnAnLLtt53PM+SMoEydC
21BvdvGG8UJ0F4J6SkBk7+OUFlVE+7BpNb2LI0sDTrBoEmsbO/Cqua50cxy09ELq
xoXKImsL2UV9JbVi3oXMndoYiE0TH1dLSKR1nsiIpAoBJf1Wwtrlq4nDUeTBepUp
wwhs5Sq9PQFsCAzpAz1jzb0QURcAr3OpldjWe9p+npUFTevttRPsDfa8vn/Iw5NO
Vuep66WBSULFaFC8/G104xLVNN6Dx8fBIeKKF4294ScXH02MPSgemLzm4NlHzBTr
YzadOPLTpPxAXK/DaSx8
=qKao
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Specifying Path to Config
Posted by "Igal @ getRailo.org" <ig...@getrailo.org>.
hi Chris, thank you for your prompt response.
I should have clarified in my original email that:
1) I am running Tomcat as a Windows service
2) my goal is to have something like this:
C:\Programs\Tomcat-conf <== /conf folder goes here, unchanged
with an upgrade
C:\Programs\Tomcat-bin <== /bin and /lib go here, updated when
there is a new point-release
from the README.txt/advanced that you cited I see that I can use
CATALINA_BASE for the Tomcat-conf folder above, and CATALINA_HOME for
the Tomcat-bin, and specifying the env values when installing the
service, as documented at
http://tomcat.apache.org/tomcat-8.0-doc/windows-service-howto.html#Multiple_Instances
do you think that this would work for a Windows service setup?
thanks again,
Igal
On 8/26/2014 8:16 AM, Christopher Schultz wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Igal,
>
> On 8/26/14, 11:05 AM, Igal @ getRailo.org wrote:
>> is it possible to specify the path to the /conf folder? if yes,
>> how? if no, why?
>>
>> I like upgrading Tomcat when a new update is available, and it
>> would be much easier if I could keep all of my config files in one
>> place, without having to move files with each upgrade. (actually,
>> I overwrite the /bin and /lib folders when upgrading a minor
>> version, but that's beside the point).
> Take a look at the "Advanced" section of RUNNING.txt in any Tomcat
> distribution's root. It will explain how you can use CATALINA_BASE and
> CATALINA_HOME environment variables to have a single deployment
> directory that doesn't (usually) have to change between point-releases
> (e.g. 7.0.50 -> 7.0.51). It also allows you to install multiple Tomcat
> versions side-by-side and choose which one to use at launch.
>
> This will allow you to install a new version of Tomcat, launch with
> it, and then easily roll-back to the prior version if you decide that
> the upgrade is not working for you for some reason.
>
> Hope that helps,
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBCAAGBQJT/KTVAAoJEBzwKT+lPKRYx/IP/3+IJyjg/lgqAwv1fIvyz8MT
> uFKPkmOSkq8nsxgnQb12oYRMgOW3bvDOWywdkNV5cfzGm+vbFbPkoqks0C0o/62I
> I5gXwPoKDye+Jun8p21U2pP2sOAwTxTOJtFeNbX5wZ88uGShvjyLeJnsCaWEQVf7
> P2lwZJjxilRB+ElgBzk7tyX0/YM80PINKIi+CZuyoKNGtqZa/jT5tJzQ6p1kFCuv
> 2/6in1tVZOPJ4bkVqhI0vSErrFrMQhCpFiKIVOw+FXMD0WJTNEs+bEPBG7TTr+7Z
> SOH/x47tPrA+fco6IKfZcWAMTy26raqS1helA3vb0Shepi0Oa7eIKWG4FCRd5cqv
> F5cjXAYdf7uL7ue9sFhXCplDoATamkv9fBAGzS7jbl9xKYLsDEXf7dvVuSDa2mk7
> KbgUsqy8qWn8sZFKr449wtyJTIoRqYioki+5ZnypujQG/5WF0mdSgORrvVHqBK0b
> G358Vc0Wtcs5R1JpGCN/SBMPNtfprt3wJITXpNdZSaE8g/qbQxMZnVfjSDAnmb1p
> BA8n0a0DXcceeZvp6LjrEtchzqVNVxs2vHUJqrTiQKaeqze9ZM8zlQxiFMEcw4x3
> OtO6A5Xrfm/+thwX7db8fJIrdMVcJkQiBV1GftkAc5riW6D8utcoZTrx9UA+gSSf
> 0cIOW4rqrr/OIIpiMXP1
> =/13l
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
--
Igal Sapir
Railo Core Developer
http://getRailo.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Specifying Path to Config
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Igal,
On 8/26/14, 11:05 AM, Igal @ getRailo.org wrote:
> is it possible to specify the path to the /conf folder? if yes,
> how? if no, why?
>
> I like upgrading Tomcat when a new update is available, and it
> would be much easier if I could keep all of my config files in one
> place, without having to move files with each upgrade. (actually,
> I overwrite the /bin and /lib folders when upgrading a minor
> version, but that's beside the point).
Take a look at the "Advanced" section of RUNNING.txt in any Tomcat
distribution's root. It will explain how you can use CATALINA_BASE and
CATALINA_HOME environment variables to have a single deployment
directory that doesn't (usually) have to change between point-releases
(e.g. 7.0.50 -> 7.0.51). It also allows you to install multiple Tomcat
versions side-by-side and choose which one to use at launch.
This will allow you to install a new version of Tomcat, launch with
it, and then easily roll-back to the prior version if you decide that
the upgrade is not working for you for some reason.
Hope that helps,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
iQIcBAEBCAAGBQJT/KTVAAoJEBzwKT+lPKRYx/IP/3+IJyjg/lgqAwv1fIvyz8MT
uFKPkmOSkq8nsxgnQb12oYRMgOW3bvDOWywdkNV5cfzGm+vbFbPkoqks0C0o/62I
I5gXwPoKDye+Jun8p21U2pP2sOAwTxTOJtFeNbX5wZ88uGShvjyLeJnsCaWEQVf7
P2lwZJjxilRB+ElgBzk7tyX0/YM80PINKIi+CZuyoKNGtqZa/jT5tJzQ6p1kFCuv
2/6in1tVZOPJ4bkVqhI0vSErrFrMQhCpFiKIVOw+FXMD0WJTNEs+bEPBG7TTr+7Z
SOH/x47tPrA+fco6IKfZcWAMTy26raqS1helA3vb0Shepi0Oa7eIKWG4FCRd5cqv
F5cjXAYdf7uL7ue9sFhXCplDoATamkv9fBAGzS7jbl9xKYLsDEXf7dvVuSDa2mk7
KbgUsqy8qWn8sZFKr449wtyJTIoRqYioki+5ZnypujQG/5WF0mdSgORrvVHqBK0b
G358Vc0Wtcs5R1JpGCN/SBMPNtfprt3wJITXpNdZSaE8g/qbQxMZnVfjSDAnmb1p
BA8n0a0DXcceeZvp6LjrEtchzqVNVxs2vHUJqrTiQKaeqze9ZM8zlQxiFMEcw4x3
OtO6A5Xrfm/+thwX7db8fJIrdMVcJkQiBV1GftkAc5riW6D8utcoZTrx9UA+gSSf
0cIOW4rqrr/OIIpiMXP1
=/13l
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org