You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mark Thomas <ma...@apache.org> on 2020/08/02 16:00:22 UTC
Re: Upgrade: tomcat8w.exe //ES//example - dump Java Options and other information to tomcat9
On July 27, 2020 4:03:04 PM UTC, Christopher Schultz <ch...@christopherschultz.net> wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA256
>
>All,
>
>On 7/27/20 10:43, Bill Stewart wrote:
>> On Mon, Jul 27, 2020 at 12:22 AM Hans Schou wrote:
>>
>> Yes I can add and change information, but how can I get the
>> information out
>>> so I can use that for an upgrade to a new major version?
>>>
>>
>> From an elevated command line, run:
>>
>> tomcat8w.exe "//ES//servicename"
>>
>> This displays the GUI configuration dialog. From there you can
>> manually document your settings.
>
>Seems like it would be kind of awesome to have a feature like //PS//
>which would dump-out the service as a .BAT file, like:
>
>C:> tomcat9w.exe //PS//my-service-name
>
>REM ******************************************************
>REM * Exported Configuration for Service my-service-name *
>REM * Export date: 2020-07-27 11:57:00 EDT *
>REM ******************************************************
>REM
>REM This script will install the service named my-service-name
>REM including all configured settings at the time of export.
>REM Edit this script and run it to update the service description
>REM for my-service-name.
>
>SET CATALINA_HOME=\path\to\tomcat_home
>SET CATALINA_BASE=\path\to\tomcat_base
>SET TOMCAT_SERVICE_NAME=my-service-name
>
>%CATALINA_HOME%\bin\tomcat9w.exe "//IS//%TOMCAT_SERVICE_NAME%" ^
> --Jvm [jvm] ^
> --JvmOptions [blah]
> ...
>
>I have absolutely no idea how to do that, since I know absolutely
>nothing about the tomcatXw.exe program. But I'll bet someone who DOES
>understand it would be able to write that up in a few hours.
>
>- -chris
>-----BEGIN PGP SIGNATURE-----
>Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
>
>iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl8e+rgACgkQHPApP6U8
>pFiqKRAAprSehcfxrw+WEqT9wD25dDOixRrBQ1yjsV53hTnthblTsd1v3hLzI0PA
>aeXeMDofQKK7D+mv5fAkL7+PXTBwx+z4/jgZrFfsrffArcZWr2MnTcTrU79+7Orm
>u9dWJbXHbcw3zxHxkDe7jNGcI1q/N2tg3cIDVqdC96oaCxEJQJCqvc4/CrV/CpLy
>OK2sQsRaZBOtNX17vFTLUhfLRj5YqxAOKVhLntPA76JYYbIdWS/0tUzaZasi0Hi9
>5RqsLGG4hab2s1MudODp5lTdFjzztW+XncPTOCRnTM9Ya7X0ENbMPNO48ll4htOv
>Y/HWjecR8zlbBIaXEq04glUn3j2xdppedQS+VqiZ56kPKEdb/Xi02wwyVBiFNfOB
>OqcVgd7P5E4aKk/ydm9fq2OFiR1zBoE6ARj5ONyzz8SNOu6KVIo8X5OuqGbHI3Hf
>DWiXPmB68jCnpObqnom+ksMYq81/KjmjIyaXXtrW6pyrBn63a+GbcPovvFlbz0J/
>tLPYngN5OTWEB0h6q5k789rpTY9C1l7F7OgeJqXLR1PBRdYi6ZYlMPrPXrFeeBIB
>Hzqsm/y2nNwarglaRDzsSflPah7yy7vArInJI1tAs9lzYTnzUgtRSb64A8auRJoh
>+FHTlr7+8TadaYwBN9VERhkYp9zJ4BnwICfJLyHb6cknMv9duGY=
>=+kY+
>-----END PGP SIGNATURE-----
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
Enhancement requests for this should go to Commons Daemon. Should be simple enough just to dump current config.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Upgrade: tomcat8w.exe //ES//example - dump Java Options and other
information to tomcat9
Posted by Bill Stewart <bs...@iname.com>.
On Tue, Aug 25, 2020 at 8:29 AM Mark Thomas wrote:
>> Enhancement requests for this should go to Commons Daemon. Should
> >> be simple enough just to dump current config.
> >
> > Done.
> >
> > https://issues.apache.org/jira/browse/DAEMON-422
>
> Done.
>
> It outputs the command to (re-)create the current config to stderr (in a
> similar manner to version and usage). Users are free to pipe that to a
> file or whatever else they want to do with it.
>
Thanks Mark!
Bill
Re: Upgrade: tomcat8w.exe //ES//example - dump Java Options and other
information to tomcat9
Posted by Mark Thomas <ma...@apache.org>.
On 04/08/2020 14:47, Christopher Schultz wrote:
<snip/>
>> Enhancement requests for this should go to Commons Daemon. Should
>> be simple enough just to dump current config.
>
> Done.
>
> https://issues.apache.org/jira/browse/DAEMON-422
Done.
It outputs the command to (re-)create the current config to stderr (in a
similar manner to version and usage). Users are free to pipe that to a
file or whatever else they want to do with it.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
SV: Upgrade: tomcat8w.exe //ES//example - dump Java Options and
other information to tomcat9
Posted by Hans Schou <Mi...@vd.dk>.
Fra: Christopher Schultz <ch...@christopherschultz.net>
Sendt: 4. august 2020 15:47
Til: users@tomcat.apache.org
Emne: Re: Upgrade: tomcat8w.exe //ES//example - dump Java Options and other information to tomcat9
>> Enhancement requests for this should go to Commons Daemon. Should be
>> simple enough just to dump current config.
> Done.
> https://issues.apache.org/jira/browse/DAEMON-422
I was in a hurry and have made a PowerShell script (it is only relevant for Windows) which can do the dump.
I call it: tomcats.ps1
https://github.com/hanschou/tomcatPS
(I'll add more descriptions later)
Maybe it can be used as inspiration for:
Tomcat9.exe //PS//foo
My job was to do major upgrade say from 8.0 to 9.0 for 120 Tomcat instances. The script helped to have minimum down time so we could do it within work hours.
./hans
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: [OT] Upgrade: tomcat8w.exe //ES//example - dump Java Options and
other information to tomcat9
Posted by Bill Stewart <bs...@iname.com>.
On Thu, Aug 6, 2020 at 10:18 AM Christopher Schultz wrote:
The problem is that if you don't have your old command-line saved and
> handy, you have to figure out how to re-generate it. Thus, the
> feature-request for procrun to dump the current configuration to a
> script which can re-create itself.
>
> I'm just suggesting that if your installer can dump that kind of thing
> out it might also be handy.
>
I agree that this would be useful. Once it exists in procrun, perhaps the
installer could be extended to take advantage of it.
Bill
Re: [OT] Upgrade: tomcat8w.exe //ES//example - dump Java Options and
other information to tomcat9
Posted by Bill Stewart <bs...@iname.com>.
On Thu, Aug 6, 2020 at 10:18 AM Christopher Schultz wrote:
The problem is that if you don't have your old command-line saved and
> handy, you have to figure out how to re-generate it. Thus, the
> feature-request for procrun to dump the current configuration to a
> script which can re-create itself.
>
I just thought I would also mention that this problem (needing to reproduce
a service configuration) doesn't arise when using my alternative installer
to upgrade a Tomcat instance: An upgrade installs on top of, and replaces,
an older version in-place without modifying the service configuration
details.
Bill
Re: [OT] Upgrade: tomcat8w.exe //ES//example - dump Java Options and
other information to tomcat9
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Bill,
On 8/6/20 11:56, Bill Stewart wrote:
> On Thu, Aug 6, 2020 at 9:09 AM Christopher Schultz wrote:
>
> I don't know if you are interested in such things, but being table
> to
>> export a configuration from one machine to another might be
>> useful for your installer, too. Something like "deploy to server
>> A, manually-configure, tweak, test, prove" and then "copy
>> deployment configuration to servers B - Z".
>>
>
> The alternative installer doesn't export a configuration, but it
> does let you repeat an installation using command-line options to
> get a similar effect; e.g.:
>
> apache-tomcat-a.b.c-setup.exe /type=core
> /serviceusername="domain\account"
> /jvmoptions="-Djavax.net.ssl.trustStoreType=WINDOWS-ROOT"
> /jvmms=2048 /jvmmx=2048 /silent
> /log="c:\windows\temp\tomcatinstall.log"
>
> (all on one line of course)
Right, this is what Tomcat's service installer allows (not the actual
installer, but service.bat for example).
The problem is that if you don't have your old command-line saved and
handy, you have to figure out how to re-generate it. Thus, the
feature-request for procrun to dump the current configuration to a
script which can re-create itself.
I'm just suggesting that if your installer can dump that kind of thing
out it might also be handy.
- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl8sLUAACgkQHPApP6U8
pFgv9BAAiCiThLhKhb+Yq5iOQ5Qw1sJan6M0PsguEDpd1ogIwvkAcxmS1HnyzU8/
F/uM72BzKk8SaX0e6IeNC4c6kq065EA+yxC7UDk9N2FkWIv9vBxn4IT1Y7eFIzXX
UPwLKYvjDohhy8zwUwbr0/yBcN5sW+5Wu1YC7yY8epWUhmOz8eDXROEapfjDMHQ+
axe8qGBfBHM6ILZX8SJW941QIwCutB6JEJ/uUSgQGFXQ8JgvL3WEXEXK/losEQBi
4XX1q5Afam8P164X9krBuiNKBBtehWkwCEb6TNGPB2elkNGDCRTlG466Qn5ghyye
9UmXrP5Zvm4IGv9OiWEvgabA3XZfuNNJB7iVGx95HcguLTmwev18LiC/5KaehV6Q
gUUlhooMJF4eTYn26MFAUw9RSGDq9pd7/W1Kkq3QDiw6OloQxSLLcwy0XUyeXd9O
17N/Ez9DaW+ENSLdTXVpbi0E8fdE5U6/hYs0sR/1x7N9GOmj5Lxi1V0CQTHoCsYj
Yy/KRs3LUIZqVyzE7FtxkbW5Tw/HKlTiJgX4Sza+OHBeCXcVjlSnZ668IhbNxuFR
wOWgSdzrgUBggCJ9OqY7yF4C5qNgJw12I2rrxxot5v3SsROTw97OO0qhtK5BlVBY
3+Bbb2SeKKbxo9O7UuGGwjQsdHgH2mDNAO3xF6zkEtZGKdG9A7c=
=C9jk
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: [OT Upgrade: tomcat8w.exe //ES//example - dump Java Options and
other information to tomcat9
Posted by Bill Stewart <bs...@iname.com>.
On Thu, Aug 6, 2020 at 10:01 AM wrote:
I like what you are showing here, but are you implying a shared
> CATALINA_HOME and CATALINA_BASE?
>
Sorry; I don't understand the question. The alternate installer doesn't set
or use the CATALINA_HOME or CATALINA_BASE environment variables; it uses
procrun (tomcat.exe) with a very long command line to install Tomcat as a
service.
Bill
RE: [OT Upgrade: tomcat8w.exe //ES//example - dump Java Options and
other information to tomcat9
Posted by jo...@wellsfargo.com.INVALID.
Sorry for the top posting, outlook and all that.
I like what you are showing here, but are you implying a shared CATALINA_HOME and CATALINA_BASE? I find this to be the least desirable configuration, in my opinion.
Dream * Excel * Explore * Inspire
Jon McAlexander
Asst Vice President
Middleware Product Engineering
Enterprise CIO | Platform Services | Middleware | Infrastructure Solutions
8080 Cobblestone Rd | Urbandale, IA 50322
MAC: F4469-010
Tel 515-988-2508 | Cell 515-988-2508
jonmcalexander@wellsfargo.com
This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation.
-----Original Message-----
From: Bill Stewart <bs...@iname.com>
Sent: Thursday, August 6, 2020 10:57 AM
To: Tomcat Users List <us...@tomcat.apache.org>
Subject: Re: [OT Upgrade: tomcat8w.exe //ES//example - dump Java Options and other information to tomcat9
On Thu, Aug 6, 2020 at 9:09 AM Christopher Schultz wrote:
I don't know if you are interested in such things, but being table to
> export a configuration from one machine to another might be useful for
> your installer, too. Something like "deploy to server A,
> manually-configure, tweak, test, prove" and then "copy deployment
> configuration to servers B - Z".
>
The alternative installer doesn't export a configuration, but it does let you repeat an installation using command-line options to get a similar effect; e.g.:
apache-tomcat-a.b.c-setup.exe /type=core /serviceusername="domain\account"
/jvmoptions="-Djavax.net.ssl.trustStoreType=WINDOWS-ROOT" /jvmms=2048
/jvmmx=2048 /silent /log="c:\windows\temp\tomcatinstall.log"
(all on one line of course)
For reference:
/type="core" - installs only the core components (no docs, Manager, Host Manager, or examples web apps)
/serviceusername="domain\account" - runs the service using the specified account (and also, by default permissions are set on the install directories to allow this account to write to the logs, temp, and work
directories)
/jvmoptions="-Djavax.net.ssl.trustStoreType=WINDOWS-ROOT" - tells the Java instance running Tomcat to trust the Windows certificate store
/jvmms=2048 /jvmmx=2048 - sets the Java memory pool sizes for the service
/silent - hands-free installation
/log="c:\windows\temp\tomcatinstall.log" - logs to the specified file
See the documentation - https://github.com/Bill-Stewart/ApacheTomcatSetup - for further information.
Bill
Re: [OT Upgrade: tomcat8w.exe //ES//example - dump Java Options and
other information to tomcat9
Posted by Bill Stewart <bs...@iname.com>.
On Thu, Aug 6, 2020 at 9:09 AM Christopher Schultz wrote:
I don't know if you are interested in such things, but being table to
> export a configuration from one machine to another might be useful for
> your installer, too. Something like "deploy to server A,
> manually-configure, tweak, test, prove" and then "copy deployment
> configuration to servers B - Z".
>
The alternative installer doesn't export a configuration, but it does let
you repeat an installation using command-line options to get a similar
effect; e.g.:
apache-tomcat-a.b.c-setup.exe /type=core /serviceusername="domain\account"
/jvmoptions="-Djavax.net.ssl.trustStoreType=WINDOWS-ROOT" /jvmms=2048
/jvmmx=2048 /silent /log="c:\windows\temp\tomcatinstall.log"
(all on one line of course)
For reference:
/type="core" - installs only the core components (no docs, Manager, Host
Manager, or examples web apps)
/serviceusername="domain\account" - runs the service using the specified
account (and also, by default permissions are set on the install
directories to allow this account to write to the logs, temp, and work
directories)
/jvmoptions="-Djavax.net.ssl.trustStoreType=WINDOWS-ROOT" - tells the Java
instance running Tomcat to trust the Windows certificate store
/jvmms=2048 /jvmmx=2048 - sets the Java memory pool sizes for the service
/silent - hands-free installation
/log="c:\windows\temp\tomcatinstall.log" - logs to the specified file
See the documentation - https://github.com/Bill-Stewart/ApacheTomcatSetup -
for further information.
Bill
Re: [OT Upgrade: tomcat8w.exe //ES//example - dump Java Options and
other information to tomcat9
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Bill,
On 8/4/20 18:59, Bill Stewart wrote:
> On Tue, Aug 4, 2020 at 4:01 PM Christopher Schultz wrote:
>
> I have a client who runs our product on Windows (we usually run it
> on
>> Linux) and there are 2-4 separate Tomcat-based services on each
>> node, so they have "Tomcat 8.5.x for FOO", "Tomcat 8.5.x for
>> BAR", etc. in their service descriptions. Can they use your
>> installer to upgrade just one of those with a new Tomcat
>> version?
>>
>
> The alternative installer can only upgrade Tomcat instances it
> installs. (It can't upgrade instances installed using Apache's
> installer or manual installations; it doesn't know about those.)
>
> The process in your case would be something like this:
>
> 1. Document the Tomcat service installation details for the
> instance you want to replace and back up its config files.
>
> 2. Remove it (reverse whatever process you used to install, whether
> Apache installer, manual, etc.).
Oh, I wasn't expecting to be able to upgrade the official Tomcat
installer's services. But this is good information for anyone to have.
> 3. Install using alternate installer; e.g.:
>
> apache-tomcat-a.b.c-setup.exe /instance="FOO"
>
> 4. Update the config files, copy application server files, etc.
>
> See the documentation -
> https://github.com/Bill-Stewart/ApacheTomcatSetup - for details.
> (Without /instance it installs a default instance - i.e., default
> directory of "\Program Files\Apache Tomcat", "Apache Tomcat" as
> the service name, etc.)
>
> To upgrade (in general):
>
> 1. Touch (update timestamps of) config files you don't want the
> installer to overwrite.
>
> 2. Run the above install commands with the new version of the
> installer. Don't forget the /instance parameter if you used it to
> install initially (otherwise, the installer will install or upgrade
> the default instance).
>
> Note that each instance installed using the alternate installer
> (default or otherwise) installs to a separate directory and appears
> as a separate entry in the Windows "installed application" list.
> (This is typically the expected behavior for application
> installations on Windows machines.)
Yes, this is exactly what I'd expect.
> I certainly don't claim that the alternative installer is suitable
> for all applications and configurations, but for fairly common use
> cases on Windows machines, the two-step upgrade process noted above
> (I think) is pretty simple.
Definitely. I remember having to upgrade these for my client once and
it was a PITA. We really only do it each time we upgrade Tomcat to a
new major version (when we went from 8.0 -> 8.5). It was a pain
because of all the copy/pasting which would definitely be solved
either with your installer or with a new "dump config to script"
feature on Tomcat's installer.
I don't know if you are interested in such things, but being table to
export a configuration from one machine to another might be useful for
your installer, too. Something like "deploy to server A,
manually-configure, tweak, test, prove" and then "copy deployment
configuration to servers B - Z".
- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl8sHQ8ACgkQHPApP6U8
pFiEOQ//a4q36Z4zt61C3rgmrXrPTTHfPKi+z+4s5EKvnHGx76kOCM8BugetuDA9
AAsOdU28uOqdsi2t2oLbnEluu3Xy7StS7vakIksH38Vanuhwu1vkTK6hwweeU+fW
JHbG7tIt3AllX8PDqFwE0LXgDOeJ8pRAI6Y2fJUDaPXM7KgmxpifeP0cFxt0N9Qx
/ZH7/VWLs/PbkB/mCZSd8OgFpal7fcDocQfvisOnu/6wGQrYU1z9p56xjaOBLDpc
jSMRCRQUtsSbsWOKmm+SVx15RU5QK0z7S5bzjcPI/Kce6mdOM3hqQUuqM2xcoKwg
lP3M+SvDt1kjtLFp/FEgr1hm6kPDOf2Jb0mV1Zq+2LNaCX1cowAYA2NFdDb7fX/o
XW8zEztINlj9RJZpas15lxameUdjSf5GUWqOqtm9vwj6BIEq55FDBbGMKrSRbP2Q
7GiYI4amHzZgr36hF87UnW65fW+p1eMq03b7dI5mrydcYYGGPUPLzfPv/Ho/EZuR
I1nwYWRzZ9RaiP4QPOthewSiFlDlE21l1zZBqQxNUxWh50BvItzJ1NhGlVQPHoKh
H9AV0+k+BrRLAejHGoG8b04pFI7XHo12LIj6joA+6MUBmioIzy43rKerx1zbojA/
gTN0UD5QR8CqhhelDpOIfpaBnGhzoE93agRMcRFeD2wSrh7OxoM=
=WvXy
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: [OT Upgrade: tomcat8w.exe //ES//example - dump Java Options and
other information to tomcat9
Posted by Bill Stewart <bs...@iname.com>.
On Tue, Aug 4, 2020 at 4:01 PM Christopher Schultz wrote:
I have a client who runs our product on Windows (we usually run it on
> Linux) and there are 2-4 separate Tomcat-based services on each node,
> so they have "Tomcat 8.5.x for FOO", "Tomcat 8.5.x for BAR", etc. in
> their service descriptions. Can they use your installer to upgrade
> just one of those with a new Tomcat version?
>
The alternative installer can only upgrade Tomcat instances it installs.
(It can't upgrade instances installed using Apache's installer or manual
installations; it doesn't know about those.)
The process in your case would be something like this:
1. Document the Tomcat service installation details for the instance you
want to replace and back up its config files.
2. Remove it (reverse whatever process you used to install, whether Apache
installer, manual, etc.).
3. Install using alternate installer; e.g.:
apache-tomcat-a.b.c-setup.exe /instance="FOO"
4. Update the config files, copy application server files, etc.
See the documentation - https://github.com/Bill-Stewart/ApacheTomcatSetup -
for details. (Without /instance it installs a default instance - i.e.,
default directory of "\Program Files\Apache Tomcat", "Apache Tomcat" as the
service name, etc.)
To upgrade (in general):
1. Touch (update timestamps of) config files you don't want the installer
to overwrite.
2. Run the above install commands with the new version of the installer.
Don't forget the /instance parameter if you used it to install initially
(otherwise, the installer will install or upgrade the default instance).
Note that each instance installed using the alternate installer (default or
otherwise) installs to a separate directory and appears as a separate entry
in the Windows "installed application" list. (This is typically the
expected behavior for application installations on Windows machines.)
I certainly don't claim that the alternative installer is suitable for all
applications and configurations, but for fairly common use cases on Windows
machines, the two-step upgrade process noted above (I think) is pretty
simple.
Bill
Re: SV: [OT Upgrade: tomcat8w.exe //ES//example - dump Java Options
and other information to tomcat9
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hans,
On 9/4/20 07:08, Hans Schou wrote:
>
>> On Tue, Aug 4, 2020 at 2:18 PM Christopher Schultz wrote:
>>
>> So how do you switch Java versions?
>
> In case anyone care to know...
>
> I have a directory called C:\Java Here we have <DIR>
> jdk1.8.0_25 <SYMLINKD> jdk1.8 [jdk1.8.0_25] And
> JAVA_HOME=C:\Java\jdk1.8
>
> And upgrade is then performed with: Unzip jdk1.8.0_211.zip Rmdir
> jdk1.8 Mklink /D jdk1.8 jdk1.8.0_211 And then all tomcat instances
> has to be restartet.
>
> A Tomcat minor upgrade is done in a similar way. We have a symlink
> like C:\Apache\tomcat-9.0 which point to
> C:\Apache\apache-tomcat-9.0.36 and we unzip a new version and
> change the symlink.
This obviously works, but requires that you have set things up this
way in advance. The discussion here was about upgrading your
Tomcat-based service if you had only used the standard installer in
the past without any "tricks" like you show, here.
For those interested, I'm presenting "Split your Tomcat Installation
for Easier Upgrades" at this year's ApacheCon @Home conference.
Registration/attendance is 100% free free for all. You can find the
Tomcat track schedule here:
https://www.apachecon.com/acah2020/tracks/tomcat.html
And there are a whole bunch of other tracks for those interested in
other Apache-related topics.
I could mention this kind of technique as well as the new tomcatXw.exe
feature of being able to dump the configuration to a
service-re-creation script as a part of this work. (Since it doesn't
really take 30 minutes to explain the difference between CATALINA_HOME
and CATALINA_BASE). :)
I was already expecting to talk about Windows Service installation,
anyway.
- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl9SZ2wACgkQHPApP6U8
pFjBRQ/8DUor+8sQ7DTLoCDNsD67/G0kzMpn1DWgAxy61PzYZh21v4ycIB5O8dP2
64Xm9dw6hnYo5AfLuiLahZHBIH8KVdRramKIeIejWFZuKwrUGu0r2TtIfCIE9ZKy
5ZUquMFsLdR91OcWlieIGjMLaUMIau6ONSuQDpILs/6BprGHxZiG/WoUtNNigd7o
Q7Oa/oZSk4U32MIqjWiYXKYWQgH72Wz4LVZufRJx6BJA7CXYwqUeAPz3oF8FI5oa
EupKkvunh16SP8DhdRXTuWTfTH68j++9cttavJ2fBned3LIAKUhZJro1FF35ZoPS
X+h2JNYDbI7Mg1cyttYZNjqsLeJUfU1p842xUCkyfebdNx9w9El1v1xuXr6JAMWz
HqyYoF8gmS7ONBWv+wg+H6dBwnlYU0Knd9n5UGxWUEWH3jOMPLsj0MT19itPubje
6D/1VelnRoXXNlUvTNcA5MfKE/PU0SyctgJcYy+idliL1dnpubgOrc3AnM6nI+7O
L116cZ61MM7AFeC/dIOLyIVC613kdmDCHcL1/Nu5MXt806SK1TDnsFK+hw0PgPvx
SEWgocRNazXQQaTMxoTlQTQPLkaxwPWfdM5B/AMUmdiR/2lKbS3vgTgJcKCuzQpA
zKG2kPznrwlEEXTZmu3cLtHrJycabZu7/qOh0QkgcDO5Yx4as8Q=
=0+7/
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
SV: [OT Upgrade: tomcat8w.exe //ES//example - dump Java Options and
other information to tomcat9
Posted by Hans Schou <Mi...@vd.dk>.
> On Tue, Aug 4, 2020 at 2:18 PM Christopher Schultz wrote:
>
> So how do you switch Java versions?
In case anyone care to know...
I have a directory called C:\Java
Here we have
<DIR> jdk1.8.0_25
<SYMLINKD> jdk1.8 [jdk1.8.0_25]
And JAVA_HOME=C:\Java\jdk1.8
And upgrade is then performed with:
Unzip jdk1.8.0_211.zip
Rmdir jdk1.8
Mklink /D jdk1.8 jdk1.8.0_211
And then all tomcat instances has to be restartet.
A Tomcat minor upgrade is done in a similar way.
We have a symlink like C:\Apache\tomcat-9.0 which point to C:\Apache\apache-tomcat-9.0.36 and we unzip a new version and change the symlink.
./hans
Re: [OT Upgrade: tomcat8w.exe //ES//example - dump Java Options and
other information to tomcat9
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Bill,
On 8/4/20 17:06, Bill Stewart wrote:
> On Tue, Aug 4, 2020 at 2:18 PM Christopher Schultz wrote:
>
> So how do you switch Java versions?
>>
>
> What do you mean? 1. Point an existing Tomcat instance to a
> different Java runtime, or 2. Upgrade an existing instance of
> Java?
>
> For 1:
>
> Use the procrun GUI and change the path to the jvm.dll file.
> Naturally you would need to restart Tomcat instance.
>
> For 2:
>
> My alternative installer is for upgrading Tomcat, not the Java
> instance. To do that, you would need to:
>
> a. Stop the Tomcat instance b. Upgrade/install the Java you want c.
> (If path to jvm.dll changed) Use the procrun GUI to change the path
> to the jvm.dll file d. Start the Tomcat instance
Okay, so you edit the service directly; same as with Tomcat's provided
tools.
> [My alternative installer] automatically stops the service,
> updates the files, and restarts the service (preserving all
> configuration details).
Does this support multiple side-by-side Tomcat-based services?
I have a client who runs our product on Windows (we usually run it on
Linux) and there are 2-4 separate Tomcat-based services on each node,
so they have "Tomcat 8.5.x for FOO", "Tomcat 8.5.x for BAR", etc. in
their service descriptions. Can they use your installer to upgrade
just one of those with a new Tomcat version?
- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl8p2qwACgkQHPApP6U8
pFizrBAAxlI/lvrLg97BolT1t15kn3tCs2UCYnK1grl1tCrh+6ufhpMHmOVleggr
VBAZrXIV3b9i96GrB7Gi+XHgJ9iSS0I2/AAnghe6Qb9aHEiAnNKjWv+WhFzTTp67
I9v2sS50QEjX3AEUqN/3fH3+AG+ZMFhkChKalWW22Lm/TJUBqXyeNsApbzaKRAwG
cx30a/t6NPgVXzh4xRx3Bk1JIPA23kjXG40gdLnQg3Lchd2Nx3Hjqlk2C2ZGtNlq
ejrnYyj5Kz2715MAWQBJRo/UxEx2SfpEI/KWuwgh5KFCURFyM4gfYCGGaEqIlErx
dMpeZ2e2krLg7kTz3mbly7BwBa1WG2XqeHGPCV4XjDKqy2MkMgQjbbjZHal1PyBE
FpkX4VKnfEWwbSO/89mgsVwxwrVLnKvZrLI57QI0DvtT6ssB5dyVlTGP7XY4bHCo
s6beEsgnSmtJxm8j9j/vrH1zkD1fCUzjH8bOxNB098XhsDK/DZKs0q5IDycaTI0v
z6FauOTVoVk0Z8SB0j6FK9VMGKoquI9/JInFh2NozBX0M9fSL9hOYrulhQpAEMw9
HbMfno2cPAnwXYraA/N/G1xEITV2jX7xtNP0UlZNgQGBMHku27xe+eHT4uEGZVrP
1T0EoPlmm++y3tLRwLTIZ13r/6fMnvNZCNpjNvF8apuCkJfj5aQ=
=dw1h
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: [OT Upgrade: tomcat8w.exe //ES//example - dump Java Options and
other information to tomcat9
Posted by Bill Stewart <bs...@iname.com>.
On Tue, Aug 4, 2020 at 2:18 PM Christopher Schultz wrote:
So how do you switch Java versions?
>
What do you mean? 1. Point an existing Tomcat instance to a different Java
runtime, or 2. Upgrade an existing instance of Java?
For 1:
Use the procrun GUI and change the path to the jvm.dll file. Naturally you
would need to restart Tomcat instance.
For 2:
My alternative installer is for upgrading Tomcat, not the Java instance. To
do that, you would need to:
a. Stop the Tomcat instance
b. Upgrade/install the Java you want
c. (If path to jvm.dll changed) Use the procrun GUI to change the path to
the jvm.dll file
d. Start the Tomcat instance
Bill
Re: [OT Upgrade: tomcat8w.exe //ES//example - dump Java Options and
other information to tomcat9
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Bill,
(Marking OT because this isn't about tomcatXw.exe anymore)
On 8/4/20 10:48, Bill Stewart wrote:
> On Tue, Aug 4, 2020 at 7:47 AM Christopher Schultz wrote:
>
> Done.
>>
>> https://issues.apache.org/jira/browse/DAEMON-422
>>
>
> I like this idea as an enhancement to procrun.
>
> I would also point out, for anyone interested, that my alternate
> installer supports upgrading without needing to document the
> settings: It automatically stops the service, updates the files,
> and restarts the service (preserving all configuration details).
So how do you switch Java versions?
- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl8pwnoACgkQHPApP6U8
pFghwg//Q3BKxB+8OeWCwwEfevRYNgbuI8OzgU6uYWmbysux8DpNZscrMHY4dbOk
fOCxJFXsPvqMEldlqChcOJObUESCtUnvgdwKlLeGzEgDWNT7RXXsCMt414UGNqCn
pp6EgYwdwj4jqQ+yUcsUFCdrBfHG2HXonI+jsgNhImdvHQcpEYmpFY6Li6atFXzT
yA4vE1mxBy+h18ShSi6Z4k5XfOQgISqEeMA3GSZz/sME8i7vWFtBtUpxrTQq0LA/
9OxEQaLTn+rGXB+nngBIkJkTqebeEpiyvL6sziUzX2saByFYpU5u/u+5gfUxHp7B
TieU+DDJSb8kIcqG4cXsqMoVzsdjCuc2NWak6zEC+lYQHgk8mLkmSLS2DNyu81uh
H3PKLyKq9Ibxf/dJVlev5kqKrjivTaX79BzcnvYlfxt3U0SM7LyCWANj6ezzYnMY
Uv2mmmCHCZL1vnawXJH3fQI8l5M0PjtubKH00sIhhhNVZIvQNGAcJlD6TT34m/5K
L3qzzHRmir/NAcb11JD+qribkEoBXExbsjAzieNPyBH2XDBWuWrpCl7O0pZYWLjN
IsOvo4WlU8yl7e2MrIUyG/btwzPVOA+gRKnz329oo7bqHtRzppkbe7N8kI/F/xM+
GYsMtBFj5ZoqQxgJ4vJYiGmEY7Lbd8KIuAadGPMAEB76XADa1e8=
=w+Y0
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Upgrade: tomcat8w.exe //ES//example - dump Java Options and other
information to tomcat9
Posted by Bill Stewart <bs...@iname.com>.
On Tue, Aug 4, 2020 at 7:47 AM Christopher Schultz wrote:
Done.
>
> https://issues.apache.org/jira/browse/DAEMON-422
>
I like this idea as an enhancement to procrun.
I would also point out, for anyone interested, that my alternate installer
supports upgrading without needing to document the settings: It
automatically stops the service, updates the files, and restarts the
service (preserving all configuration details).
https://github.com/Bill-Stewart/ApacheTomcatSetup
Bill
Re: Upgrade: tomcat8w.exe //ES//example - dump Java Options and other
information to tomcat9
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
All,
On 8/2/20 12:00, Mark Thomas wrote:
> On July 27, 2020 4:03:04 PM UTC, Christopher Schultz
<ch...@christopherschultz.net> wrote:
> All,
>
> On 7/27/20 10:43, Bill Stewart wrote:
>>>> On Mon, Jul 27, 2020 at 12:22 AM Hans Schou wrote:
>>>>
>>>> Yes I can add and change information, but how can I get the
>>>> information out
>>>>> so I can use that for an upgrade to a new major version?
>>>>>
>>>>
>>>> From an elevated command line, run:
>>>>
>>>> tomcat8w.exe "//ES//servicename"
>>>>
>>>> This displays the GUI configuration dialog. From there you
>>>> can manually document your settings.
>
> Seems like it would be kind of awesome to have a feature like
> //PS// which would dump-out the service as a .BAT file, like:
>
> C:> tomcat9w.exe //PS//my-service-name
>
> REM ****************************************************** REM *
> Exported Configuration for Service my-service-name * REM * Export
> date: 2020-07-27 11:57:00 EDT * REM
> ****************************************************** REM REM This
> script will install the service named my-service-name REM including
> all configured settings at the time of export. REM Edit this script
> and run it to update the service description REM for
> my-service-name.
>
> SET CATALINA_HOME=\path\to\tomcat_home SET
> CATALINA_BASE=\path\to\tomcat_base SET
> TOMCAT_SERVICE_NAME=my-service-name
>
> %CATALINA_HOME%\bin\tomcat9w.exe "//IS//%TOMCAT_SERVICE_NAME%" ^
> --Jvm [jvm] ^ --JvmOptions [blah] ...
>
> I have absolutely no idea how to do that, since I know absolutely
> nothing about the tomcatXw.exe program. But I'll bet someone who
> DOES understand it would be able to write that up in a few hours.
>
> -chris
>>
>> ---------------------------------------------------------------------
>>
>>
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>
> Enhancement requests for this should go to Commons Daemon. Should
> be simple enough just to dump current config.
Done.
https://issues.apache.org/jira/browse/DAEMON-422
Thanks,
- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl8pZuAACgkQHPApP6U8
pFhGrw/7BrR3Ot4DytZ3meJcjjM4Q0YEm9M8FX2SwMtBgtvXFHwWE2x8LIE275TF
wmWmGo5AXJO49NU68AdEolmZKSWiifH7QQvi4vnDHY+DwjeoF54ibkZLL0HwzvJ5
fGP6vr9Ayh+wz6nnKc/F388jaFy3FJ8N4StWGLxbPtJJMVPdF4MjKxukAIfiO1e3
njrLNa8MuUGTy/uPNcaWYsG6vBp4S8F+SE6LmJbYKebXzK5kj3Jk+FWPtGXYMI/O
w+vFKuZggr/zPNhNRKT9DWt8a9x2fBOQdH+eTRH0gIE380XeAivbeUbRCBq7MyxH
HbELHS8W9mf1V+xkvqHLAxjtkvWso9moBTa6CGiGhjx+ej/XRqlE0GBZD1K8cv0z
5GaW6icjmwkOSEnjZDEMkzHLJsXMFNheN1/DqyY2dp2ZY4QOjmvWFsh+ql2xhNyh
+cVujHUhc5u9lP/8l//0JZkB5lAm49yQsXoj7WjxcgYbBb/2/TkT9Gh3kaJaBVQ/
X4dgtPXWjB/IXbdLrdU+tnfzzxx7TXOaZeG2w5Z6nBlqwz0mt9XhjLsFi+tDQgbS
RYrXL7+I/XcDPDk3T0OF+7FzPbJ4uYPYju9vE2InAsC08XfzOtQZbThSKPwxcbjZ
ykW3WBE3RzaAjUfojOnNBWFdwLWinsY+VyH5oY7YVHDPDcQ0PW4=
=1no6
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org