Hi.

On 28.06.2018 18:02, Jim Weill wrote:
I'm on 8.5.6, and just downloaded 8.5.32 yesterday.  On my test machine I 
stopped the
service, copied in the core files, copied over my server.xml, web.xml, and the 
hosted
application and it seems to work just fine, and thinks it's running 8.5.32 when 
I look at
the logs.  Is this correct for updating tomcat?  I feel like I'm missing 
something.....


This question (or similar ones), comes up reularly on this list, and has been answered many times before. But it's true that the on-line documentation does not seem to have an easily-found, easily accessible answer for that.
So I'll tell you what I know.

Tomcat does not really "do updates" (or "patches")

In other words, you are supposed to just re-install it, using the latest 
available version.
The procedure for this varies somewhat between Windows and Linux, and for Windows it als depends on which install method you chose to install it initially.

The "canonical, approved" procedure goes along these lines :
- read the latest Release Notes (such as https://tomcat.apache.org/tomcat-8.5-doc/RELEASE-NOTES.txt) for any important tips
- shut down the old tomcat
- save a copy of your webapps
- save a copy of the old tomcat configuration files (or all of tomcat, if you 
have the room)
- de-install the old version
- install the new version as a fresh install, make sure it runs, then shut it 
down
- then carefully edit the new configuration files, bringing in the applicable old configuration sections which you previously changed from the old version (in conf/server.xml for example) (some attributes may have changed with the new version, some things may now be deprecated, some new things may be needed etc.)
- start up tomcat, make sure it runs (without your applications), then shut it 
down again
- then carefully bring in your applications, start up tomcat, test

In the practice, between two "minor" versions within the same major version, it is relatively unfrequent that major strucural things will happen, so what you did above will probably work 90% of the time. (I would NOT do it between major versions, such as between 8.0.x and 8.5.x, or 8.5.x and 9.0.x) But there is always a chance that some jar would have been renamed, or split, or removed, or added, or moved to another directory for example, so you may miss something if you do this file by file.

In the specific case of the Windows "service installer", there are also settings related to the Service, which the installer puts in the Windows Registry, and which may have changed between versions. This, you would not catch with the file-by-file approach.
See here for more information : https://wiki.apache.org/tomcat/FAQ/Windows#Q11
(a bit outdated with respect to the listed versions, but still fundamentally 
valid)



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to