Re: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74

2023-05-18 Thread Meltron Kendrick
Mark,

Points noted.  Thank you good sir.

I will try the weird path -- just to see if it solves the problem.  I am
investigating how it became like this.  I inherited this task.

Overall I absolutely concur with going with the an Official Tomcat release.

I want to bring over any / all customized configuration files.

Great share!




On Thu, May 18, 2023 at 4:55 AM Mark Thomas  wrote:

>
> 18 May 2023 06:06:04 Meltron Kendrick :
>
> > I created a "jar" file using WinRAR -- but no go ---
> >
> > Got the following error message...
> >
> > "Error: Could not find or load main class
> > org.apache.catalina.util.ServerInfo"
> >
> > Any ideas on HOW TO properly do this?
>
> Start with an official Tomcat release that doesn't have this problem. If
> the version numbers are broken, what else is?
>
> If you really want to continue down this path, then don't try editing the
> JAR. Rather, override the resource.
>
> Under $CATALINA_HOME/lib create the directory structure
> org/apache/catalina/util and then extract ServerInfo.properties to that
> directory. Edit the file. Start Tomcat. Tomcat will use the extracted
> file in preference to the one in the JAR.
>
> Mark
>
> >
> >
> >
> >
> > On Wed, May 17, 2023 at 9:58 PM Meltron Kendrick
> > 
> > wrote:
> >
> >> I was able to DECOMPRESS the .jar file -- using 7-zip -- and edited
> >> the
> >> org/apache/catalina/util/ServerInfo.properties file to the proper
> >> version
> >> and date info...
> >>
> >> Now I need to COMPRESS everything with the updated
> >> org/apache/catalina/util/ServerInfo.properties file added back into
> >> the
> >> .jar file...
> >>
> >>
> >> On Wed, May 17, 2023 at 1:43 AM Meltron Kendrick <
> >> meltronkendr...@gmail.com> wrote:
> >>
> >>> Thank you Chuck!
> >>>
> >>> What is the best way to go about updating the 3 lines to accurately
> >>> reflect the proper version details?
> >>>
> >>>
> >>>
> >>> On Tue, May 16, 2023 at 9:08 PM Chuck Caldarale 
> >>> wrote:
> >>>
> 
> > On 2023-05-16, at 17:02, Meltron Kendrick
> > 
>  wrote:
> >
> > I am trying to get these fields to UPDATE properly...
> >
> > ESPECIALLY THESE 3 ---
> > (but all of them would be nice)
> >
> > Server version:  Secure Web Server
> > Server built: Jan 01 2000 00:00:00 UTC
> > Server number: 1.0.0.0
> 
>  This information comes from this file inside lib/catalina.jar:
>  org/apache/catalina/util/ServerInfo.properties
> 
>  Whoever built your Tomcat distribution changed the contents of that
>  file
>  when constructing the package. Using an unadulterated download from
>  tomcat.apache.org  results in something
>  similar to the following when running the version command:
> 
>  Server version: Apache Tomcat/11.0.0-M6
>  Server built:   May 3 2023 17:28:15 UTC
>  Server number:  11.0.0.0
>  OS Name:Mac OS X
>  OS Version: 13.3.1
>  Architecture:   aarch64
>  JVM Version:18.0.1.1+2-6
>  JVM Vendor: Oracle Corporation
> 
>    - Chuck
> 
>  --
> >>> ==
> >>> Blessed Regards,
> >>>
> >>> Meltron Kendrick
> >>> Sr. Systems Engineer
> >>> Linux * Windows * Cloud Computing * Security
> >>>
> >>> LinkedIn: http://www.linkedin.com/in/meltronkendrick
> >>>
> >>> Mobile: (512) 233-9176
> >>> Email: meltronkendr...@gmail.com
> >>>
> >> --
> >> ==
> >> Blessed Regards,
> >>
> >> Meltron Kendrick
> >> Sr. Systems Engineer
> >> Linux * Windows * Cloud Computing * Security
> >>
> >> LinkedIn: http://www.linkedin.com/in/meltronkendrick
> >>
> >> Mobile: (512) 233-9176
> >> Email: meltronkendr...@gmail.com
> >>
> > --
> > ==
> > Blessed Regards,
> >
> > Meltron Kendrick
> > Sr. Systems Engineer
> > Linux * Windows * Cloud Computing * Security
> >
> > LinkedIn: http://www.linkedin.com/in/meltronkendrick
> >
> > Mobile: (512) 233-9176> Email: meltronkendr...@gmail.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
> --
==
Blessed Regards,

Meltron Kendrick
Sr. Systems Engineer
Linux * Windows * Cloud Computing * Security

LinkedIn: http://www.linkedin.com/in/meltronkendrick

Mobile: (512) 233-9176
Email: meltronkendr...@gmail.com


Re: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74

2023-05-18 Thread Mark Thomas



18 May 2023 06:06:04 Meltron Kendrick :


I created a "jar" file using WinRAR -- but no go ---

Got the following error message...

"Error: Could not find or load main class
org.apache.catalina.util.ServerInfo"

Any ideas on HOW TO properly do this?


Start with an official Tomcat release that doesn't have this problem. If 
the version numbers are broken, what else is?


If you really want to continue down this path, then don't try editing the 
JAR. Rather, override the resource.


Under $CATALINA_HOME/lib create the directory structure 
org/apache/catalina/util and then extract ServerInfo.properties to that 
directory. Edit the file. Start Tomcat. Tomcat will use the extracted 
file in preference to the one in the JAR.


Mark






On Wed, May 17, 2023 at 9:58 PM Meltron Kendrick 


wrote:

I was able to DECOMPRESS the .jar file -- using 7-zip -- and edited 
the
org/apache/catalina/util/ServerInfo.properties file to the proper 
version

and date info...

Now I need to COMPRESS everything with the updated
org/apache/catalina/util/ServerInfo.properties file added back into 
the

.jar file...


On Wed, May 17, 2023 at 1:43 AM Meltron Kendrick <
meltronkendr...@gmail.com> wrote:


Thank you Chuck!

What is the best way to go about updating the 3 lines to accurately
reflect the proper version details?



On Tue, May 16, 2023 at 9:08 PM Chuck Caldarale  
wrote:




On 2023-05-16, at 17:02, Meltron Kendrick 


wrote:


I am trying to get these fields to UPDATE properly...

ESPECIALLY THESE 3 ---
(but all of them would be nice)

Server version:  Secure Web Server
Server built: Jan 01 2000 00:00:00 UTC
Server number: 1.0.0.0


This information comes from this file inside lib/catalina.jar:
    org/apache/catalina/util/ServerInfo.properties

Whoever built your Tomcat distribution changed the contents of that 
file

when constructing the package. Using an unadulterated download from
tomcat.apache.org  results in something
similar to the following when running the version command:

Server version: Apache Tomcat/11.0.0-M6
Server built:   May 3 2023 17:28:15 UTC
Server number:  11.0.0.0
OS Name:    Mac OS X
OS Version: 13.3.1
Architecture:   aarch64
JVM Version:    18.0.1.1+2-6
JVM Vendor: Oracle Corporation

  - Chuck

--

==
Blessed Regards,

Meltron Kendrick
Sr. Systems Engineer
Linux * Windows * Cloud Computing * Security

LinkedIn: http://www.linkedin.com/in/meltronkendrick

Mobile: (512) 233-9176
Email: meltronkendr...@gmail.com


--
==
Blessed Regards,

Meltron Kendrick
Sr. Systems Engineer
Linux * Windows * Cloud Computing * Security

LinkedIn: http://www.linkedin.com/in/meltronkendrick

Mobile: (512) 233-9176
Email: meltronkendr...@gmail.com


--
==
Blessed Regards,

Meltron Kendrick
Sr. Systems Engineer
Linux * Windows * Cloud Computing * Security

LinkedIn: http://www.linkedin.com/in/meltronkendrick

Mobile: (512) 233-9176> Email: meltronkendr...@gmail.com


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



Re: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74

2023-05-18 Thread Terence M. Bandoian

This might be helpful:

https://docs.oracle.com/en/java/javase/17/docs/specs/man/jar.html

-Terence Bandoian


On 5/17/2023 11:06 PM, Meltron Kendrick wrote:

I created a "jar" file using WinRAR -- but no go ---

Got the following error message...

"Error: Could not find or load main class
org.apache.catalina.util.ServerInfo"

Any ideas on HOW TO properly do this?




On Wed, May 17, 2023 at 9:58 PM Meltron Kendrick 
wrote:


I was able to DECOMPRESS the .jar file -- using 7-zip -- and edited the
org/apache/catalina/util/ServerInfo.properties file to the proper version
and date info...

Now I need to COMPRESS everything with the updated
org/apache/catalina/util/ServerInfo.properties file added back into the
.jar file...


On Wed, May 17, 2023 at 1:43 AM Meltron Kendrick <
meltronkendr...@gmail.com> wrote:


Thank you Chuck!

What is the best way to go about updating the 3 lines to accurately
reflect the proper version details?



On Tue, May 16, 2023 at 9:08 PM Chuck Caldarale  wrote:


On 2023-05-16, at 17:02, Meltron Kendrick 

wrote:

I am trying to get these fields to UPDATE properly...

ESPECIALLY THESE 3 ---
(but all of them would be nice)

Server version:  Secure Web Server
Server built: Jan 01 2000 00:00:00 UTC
Server number: 1.0.0.0

This information comes from this file inside lib/catalina.jar:
 org/apache/catalina/util/ServerInfo.properties

Whoever built your Tomcat distribution changed the contents of that file
when constructing the package. Using an unadulterated download from
tomcat.apache.org  results in something
similar to the following when running the version command:

Server version: Apache Tomcat/11.0.0-M6
Server built:   May 3 2023 17:28:15 UTC
Server number:  11.0.0.0
OS Name:Mac OS X
OS Version: 13.3.1
Architecture:   aarch64
JVM Version:18.0.1.1+2-6
JVM Vendor: Oracle Corporation

   - Chuck

--

==
Blessed Regards,

Meltron Kendrick
Sr. Systems Engineer
Linux * Windows * Cloud Computing * Security

LinkedIn: http://www.linkedin.com/in/meltronkendrick

Mobile: (512) 233-9176
Email: meltronkendr...@gmail.com


--
==
Blessed Regards,

Meltron Kendrick
Sr. Systems Engineer
Linux * Windows * Cloud Computing * Security

LinkedIn: http://www.linkedin.com/in/meltronkendrick

Mobile: (512) 233-9176
Email: meltronkendr...@gmail.com




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



Re: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74

2023-05-17 Thread Meltron Kendrick
I created a "jar" file using WinRAR -- but no go ---

Got the following error message...

"Error: Could not find or load main class
org.apache.catalina.util.ServerInfo"

Any ideas on HOW TO properly do this?




On Wed, May 17, 2023 at 9:58 PM Meltron Kendrick 
wrote:

> I was able to DECOMPRESS the .jar file -- using 7-zip -- and edited the
> org/apache/catalina/util/ServerInfo.properties file to the proper version
> and date info...
>
> Now I need to COMPRESS everything with the updated
> org/apache/catalina/util/ServerInfo.properties file added back into the
> .jar file...
>
>
> On Wed, May 17, 2023 at 1:43 AM Meltron Kendrick <
> meltronkendr...@gmail.com> wrote:
>
>> Thank you Chuck!
>>
>> What is the best way to go about updating the 3 lines to accurately
>> reflect the proper version details?
>>
>>
>>
>> On Tue, May 16, 2023 at 9:08 PM Chuck Caldarale  wrote:
>>
>>>
>>> > On 2023-05-16, at 17:02, Meltron Kendrick 
>>> wrote:
>>> >
>>> > I am trying to get these fields to UPDATE properly...
>>> >
>>> > ESPECIALLY THESE 3 ---
>>> > (but all of them would be nice)
>>> >
>>> > Server version:  Secure Web Server
>>> > Server built: Jan 01 2000 00:00:00 UTC
>>> > Server number: 1.0.0.0
>>>
>>> This information comes from this file inside lib/catalina.jar:
>>> org/apache/catalina/util/ServerInfo.properties
>>>
>>> Whoever built your Tomcat distribution changed the contents of that file
>>> when constructing the package. Using an unadulterated download from
>>> tomcat.apache.org  results in something
>>> similar to the following when running the version command:
>>>
>>> Server version: Apache Tomcat/11.0.0-M6
>>> Server built:   May 3 2023 17:28:15 UTC
>>> Server number:  11.0.0.0
>>> OS Name:Mac OS X
>>> OS Version: 13.3.1
>>> Architecture:   aarch64
>>> JVM Version:18.0.1.1+2-6
>>> JVM Vendor: Oracle Corporation
>>>
>>>   - Chuck
>>>
>>> --
>> ==
>> Blessed Regards,
>>
>> Meltron Kendrick
>> Sr. Systems Engineer
>> Linux * Windows * Cloud Computing * Security
>>
>> LinkedIn: http://www.linkedin.com/in/meltronkendrick
>>
>> Mobile: (512) 233-9176
>> Email: meltronkendr...@gmail.com
>>
> --
> ==
> Blessed Regards,
>
> Meltron Kendrick
> Sr. Systems Engineer
> Linux * Windows * Cloud Computing * Security
>
> LinkedIn: http://www.linkedin.com/in/meltronkendrick
>
> Mobile: (512) 233-9176
> Email: meltronkendr...@gmail.com
>
-- 
==
Blessed Regards,

Meltron Kendrick
Sr. Systems Engineer
Linux * Windows * Cloud Computing * Security

LinkedIn: http://www.linkedin.com/in/meltronkendrick

Mobile: (512) 233-9176
Email: meltronkendr...@gmail.com


Re: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74

2023-05-17 Thread Meltron Kendrick
I was able to DECOMPRESS the .jar file -- using 7-zip -- and edited the
org/apache/catalina/util/ServerInfo.properties file to the proper version
and date info...

Now I need to COMPRESS everything with the updated
org/apache/catalina/util/ServerInfo.properties
file added back into the .jar file...


On Wed, May 17, 2023 at 1:43 AM Meltron Kendrick 
wrote:

> Thank you Chuck!
>
> What is the best way to go about updating the 3 lines to accurately
> reflect the proper version details?
>
>
>
> On Tue, May 16, 2023 at 9:08 PM Chuck Caldarale  wrote:
>
>>
>> > On 2023-05-16, at 17:02, Meltron Kendrick 
>> wrote:
>> >
>> > I am trying to get these fields to UPDATE properly...
>> >
>> > ESPECIALLY THESE 3 ---
>> > (but all of them would be nice)
>> >
>> > Server version:  Secure Web Server
>> > Server built: Jan 01 2000 00:00:00 UTC
>> > Server number: 1.0.0.0
>>
>> This information comes from this file inside lib/catalina.jar:
>> org/apache/catalina/util/ServerInfo.properties
>>
>> Whoever built your Tomcat distribution changed the contents of that file
>> when constructing the package. Using an unadulterated download from
>> tomcat.apache.org  results in something
>> similar to the following when running the version command:
>>
>> Server version: Apache Tomcat/11.0.0-M6
>> Server built:   May 3 2023 17:28:15 UTC
>> Server number:  11.0.0.0
>> OS Name:Mac OS X
>> OS Version: 13.3.1
>> Architecture:   aarch64
>> JVM Version:18.0.1.1+2-6
>> JVM Vendor: Oracle Corporation
>>
>>   - Chuck
>>
>> --
> ==
> Blessed Regards,
>
> Meltron Kendrick
> Sr. Systems Engineer
> Linux * Windows * Cloud Computing * Security
>
> LinkedIn: http://www.linkedin.com/in/meltronkendrick
>
> Mobile: (512) 233-9176
> Email: meltronkendr...@gmail.com
>
-- 
==
Blessed Regards,

Meltron Kendrick
Sr. Systems Engineer
Linux * Windows * Cloud Computing * Security

LinkedIn: http://www.linkedin.com/in/meltronkendrick

Mobile: (512) 233-9176
Email: meltronkendr...@gmail.com


Re: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74

2023-05-17 Thread Meltron Kendrick
Thank you Chuck!

What is the best way to go about updating the 3 lines to accurately reflect
the proper version details?



On Tue, May 16, 2023 at 9:08 PM Chuck Caldarale  wrote:

>
> > On 2023-05-16, at 17:02, Meltron Kendrick 
> wrote:
> >
> > I am trying to get these fields to UPDATE properly...
> >
> > ESPECIALLY THESE 3 ---
> > (but all of them would be nice)
> >
> > Server version:  Secure Web Server
> > Server built: Jan 01 2000 00:00:00 UTC
> > Server number: 1.0.0.0
>
> This information comes from this file inside lib/catalina.jar:
> org/apache/catalina/util/ServerInfo.properties
>
> Whoever built your Tomcat distribution changed the contents of that file
> when constructing the package. Using an unadulterated download from
> tomcat.apache.org  results in something
> similar to the following when running the version command:
>
> Server version: Apache Tomcat/11.0.0-M6
> Server built:   May 3 2023 17:28:15 UTC
> Server number:  11.0.0.0
> OS Name:Mac OS X
> OS Version: 13.3.1
> Architecture:   aarch64
> JVM Version:18.0.1.1+2-6
> JVM Vendor: Oracle Corporation
>
>   - Chuck
>
> --
==
Blessed Regards,

Meltron Kendrick
Sr. Systems Engineer
Linux * Windows * Cloud Computing * Security

LinkedIn: http://www.linkedin.com/in/meltronkendrick

Mobile: (512) 233-9176
Email: meltronkendr...@gmail.com


Re: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74

2023-05-16 Thread Chuck Caldarale

> On 2023-05-16, at 17:02, Meltron Kendrick  wrote:
> 
> I am trying to get these fields to UPDATE properly...
> 
> ESPECIALLY THESE 3 ---
> (but all of them would be nice)
> 
> Server version:  Secure Web Server
> Server built: Jan 01 2000 00:00:00 UTC
> Server number: 1.0.0.0

This information comes from this file inside lib/catalina.jar:
org/apache/catalina/util/ServerInfo.properties

Whoever built your Tomcat distribution changed the contents of that file when 
constructing the package. Using an unadulterated download from 
tomcat.apache.org  results in something similar to 
the following when running the version command:

Server version: Apache Tomcat/11.0.0-M6
Server built:   May 3 2023 17:28:15 UTC
Server number:  11.0.0.0
OS Name:Mac OS X
OS Version: 13.3.1
Architecture:   aarch64
JVM Version:18.0.1.1+2-6
JVM Vendor: Oracle Corporation

  - Chuck



Re: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74

2023-05-16 Thread Meltron Kendrick
I am trying to get these fields to UPDATE properly...

ESPECIALLY THESE 3 ---
(but all of them would be nice)

Server version:  Secure Web Server
Server built: Jan 01 2000 00:00:00 UTC
Server number: 1.0.0.0

*sudo -u tomcat /opt/tomcat/bin/version.sh*

Using CATALINA_BASE:   /opt/tomcat
Using CATALINA_HOME:   /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME:/
Using CLASSPATH:
/opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar
Using CATALINA_PID:/opt/tomcat/tomcat.pid
Server version: Secure Web server
Server built:   Jan 01 2000 00:00:00 UTC
Server number:  1.0.0.0
OS Name:Linux
OS Version: 3.10.0-1160.88.1.el7.x86_64
Architecture:   amd64
JVM Version:1.8.0_371-b25
JVM Vendor: Oracle Corporation

**

THIS WAS MY METHOD PRIOR TO ME SENDING THIS QUERY TO SOLICIT HELP IN
UPGRADING OR MIGRATING ---

#1
clear
ls -Shaltr /tmp/patching
cat /opt/tomcat/RELEASE-NOTES | grep "Apache Tomcat Version"; java
-version; systemctl status tomcat -l; sudo -u tomcat
/opt/tomcat/bin/version.sh; w


#2
systemctl stop tomcat -l
systemctl status tomcat -l


#3
cd /tmp/patching/
ls -Shaltr
tar -zxvf apache-tomcat-9.0.74.tar.gz


#4
yes |mv apache-tomcat-*/* /opt/tomcat/


#5
chown -R tomcat:tomcat /opt/tomcat/
systemctl start tomcat -l
systemctl status tomcat -l


#6
clear
cat /opt/tomcat/RELEASE-NOTES | grep "Apache Tomcat Version"; java
-version; systemctl status tomcat -l; sudo -u tomcat
/opt/tomcat/bin/version.sh; w




On Thu, May 11, 2023 at 12:08 PM Meltron Kendrick 
wrote:

> I have NOT been able to locate clear HOW TO steps for this.
>
> I am currently focused on MINOR upgrades.
>
> I will commence a different thread when I raise the question for MAJOR
> upgrades --- say from 9.x to 10.x  -- or 9.x to 11.x
>
> IF someone can point me to a great resource...
> That would be tremendously helpful and truly appreciated.
>
> --- Meltron
> --
> ==
> Blessed Regards,
>
> Meltron Kendrick
> Sr. Systems Engineer
> Linux * Windows * Cloud Computing * Security
>
> LinkedIn: http://www.linkedin.com/in/meltronkendrick
>
> Mobile: (512) 233-9176
> Email: meltronkendr...@gmail.com
>
-- 
==
Blessed Regards,

Meltron Kendrick
Sr. Systems Engineer
Linux * Windows * Cloud Computing * Security

LinkedIn: http://www.linkedin.com/in/meltronkendrick

Mobile: (512) 233-9176
Email: meltronkendr...@gmail.com


Re: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74

2023-05-12 Thread Meltron Kendrick
I am grateful for everyone replying!

Thank you!

I will reply to each of your questions...
AND
I will look into the various answers.



On Fri, May 12, 2023 at 11:41 AM Christopher Schultz <
ch...@christopherschultz.net> wrote:

> André,
>
> On 5/11/23 14:49, Andr? van der Lugt wrote:
> > Hi Meltron,
> >
> >> -Original Message-
> >> From: Meltron Kendrick 
> >> Sent: 11 May, 2023 19:09
> >> To: users@tomcat.apache.org
> >> Subject: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74
> >>
> >> I have NOT been able to locate clear HOW TO steps for this.
> >>
> >> I am currently focused on MINOR upgrades.
> >>
> >> I will commence a different thread when I raise the question for MAJOR
> >> upgrades --- say from 9.x to 10.x  -- or 9.x to 11.x
> >>
> >> IF someone can point me to a great resource...
> >> That would be tremendously helpful and truly appreciated.
> >
> > Apache Tomcat home > Documentation has a Migration Guide (
> https://tomcat.apache.org/migration.html), see subsection "For upgrading
> between 9.0.x versions, ..."
> >
> > Generally speaking, if you prepare your deployment according to
> RUNNING.txt (see Tomcat distribution) sub-section "Advanced Configuration -
> Multiple Tomcat Instances", the patch update can be fairly painless - all
> it takes is replacing CATALINA_HOME/bin and CATALINA_HOME/lib with the
> contents of the Tomcat update.
>
> I wouldn't even do that. Instead, I would unpack the distro to a new
> directory and change CATALINA_HOME to point to the new one. Rolling-back
> is easy.
>
> https://tomcat.apache.org/presentations.html#latest-split-installation
>
> -chris
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
> --
==
Blessed Regards,

Meltron Kendrick
Sr. Systems Engineer
Linux * Windows * Cloud Computing * Security

LinkedIn: http://www.linkedin.com/in/meltronkendrick

Mobile: (512) 233-9176
Email: meltronkendr...@gmail.com


Re: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74

2023-05-12 Thread Christopher Schultz

André,

On 5/11/23 14:49, Andr? van der Lugt wrote:

Hi Meltron,


-Original Message-
From: Meltron Kendrick 
Sent: 11 May, 2023 19:09
To: users@tomcat.apache.org
Subject: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74

I have NOT been able to locate clear HOW TO steps for this.

I am currently focused on MINOR upgrades.

I will commence a different thread when I raise the question for MAJOR
upgrades --- say from 9.x to 10.x  -- or 9.x to 11.x

IF someone can point me to a great resource...
That would be tremendously helpful and truly appreciated.


Apache Tomcat home > Documentation has a Migration Guide 
(https://tomcat.apache.org/migration.html), see subsection "For upgrading between 9.0.x 
versions, ..."

Generally speaking, if you prepare your deployment according to RUNNING.txt (see Tomcat 
distribution) sub-section "Advanced Configuration - Multiple Tomcat Instances", 
the patch update can be fairly painless - all it takes is replacing CATALINA_HOME/bin and 
CATALINA_HOME/lib with the contents of the Tomcat update.


I wouldn't even do that. Instead, I would unpack the distro to a new 
directory and change CATALINA_HOME to point to the new one. Rolling-back 
is easy.


https://tomcat.apache.org/presentations.html#latest-split-installation

-chris

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



Re: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74

2023-05-12 Thread Evan Rempel
We make official install packages out of each release and then use the 
OS package management to do an "official" installation upgrade. This 
allows for rollback/downgrade in the event of an issue and allows us to 
easily repeat this on the 120+ tomcat servers that we run.


Evan.

On 2023-05-12 09:07, Darryl Baker wrote:

I also unpack the tarball in a parallel location. Copy over the configuration 
files and war file to the new tree. Stop the running Tomcat. Relink the 
symbolic link to the new tree and restart Tomcat.

Darryl Baker, GSEC, GCLD (he/him/his)
Sr. System Administrator
Distributed Application Platform Services
Northwestern University
4th Floor
2020 Ridge Avenue
Evanston, IL 60208-0801
darryl.ba...@northwestern.edu <mailto:darryl.ba...@northwestern.edu>
(847) 467-6674 




On 5/12/23, 11:01 AM, "jonmcalexan...@wellsfargo.com.inva 
<mailto:jonmcalexan...@wellsfargo.com.inva>LID" mailto:jonmcalexan...@wellsfargo.com.inva>LID> wrote:


That's how I do it also. :-)


Dream * Excel * Explore * Inspire
Jon McAlexander
Senior Infrastructure Engineer
Asst. Vice President
He/His


Middleware Product Engineering
Enterprise CIO | EAS | Middleware | Infrastructure Solutions


8080 Cobblestone Rd | Urbandale, IA 50322
MAC: F4469-010
Tel 515-988-2508 | Cell 515-988-2508


jonmcalexan...@wellsfargo.com <mailto:jonmcalexan...@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: kmhun...@gmail.com <mailto:kmhun...@gmail.com> mailto:kmhun...@gmail.com>>
Sent: Thursday, May 11, 2023 3:12 PM
To: 'Tomcat Users List' mailto:users@tomcat.apache.org>>
Subject: RE: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74

Not sure if anyone cares or not but this is how I handle...

Unpack Tomcat to /opt/Apache/tomcat/apache-tomcat-
Create a link for the instance: /opt/Apache/tomcat/current ->
/opt/Apache/tomcat/apache-tomcat-

This effectively does the same thing as described below except instead of
copying binary content you just need to copy over the relevant configuration
from the old to the new. Works for my purposes anyway.

-Original Message-
From: Andr? van der Lugt mailto:avdl...@outlook.com>>
Sent: Thursday, May 11, 2023 2:49 PM
To: Tomcat Users List mailto:users@tomcat.apache.org>>
Subject: RE: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74

Hi Meltron,


-Original Message-
From: Meltron Kendrick mailto:meltronkendr...@gmail.com>>
Sent: 11 May, 2023 19:09
To: users@tomcat.apache.org <mailto:users@tomcat.apache.org>
Subject: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74

I have NOT been able to locate clear HOW TO steps for this.

I am currently focused on MINOR upgrades.

I will commence a different thread when I raise the question for MAJOR
upgrades --- say from 9.x to 10.x -- or 9.x to 11.x

IF someone can point me to a great resource...
That would be tremendously helpful and truly appreciated.

Apache Tomcat home > Documentation has a Migration Guide
(https://urldefense.com/v3/__https://tomcat.apache.org/migration.html__ 
<https://urldefense.com/v3/__https://tomcat.apache.org/migration.html__>
;!!F9svGWnIaVPGSwU!purxrT4PhRPW_Lq5fZdShowqmdNRxSaHC6ZeLjoWK
MuE-YvZn1q6sjrlepczbgub1aIrGWIszV9NfrxXBp2GOdoX$ ), see subsection
"For upgrading between 9.0.x versions, ..."

Generally speaking, if you prepare your deployment according to
RUNNING.txt (see Tomcat distribution) sub-section "Advanced Configuration
- Multiple Tomcat Instances", the patch update can be fairly painless - all it
takes is replacing CATALINA_HOME/bin and CATALINA_HOME/lib with the
contents of the Tomcat update. And consulting the migration guide for
potential breaking changes. Works for me!

Good luck,
Andre





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



Re: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74

2023-05-12 Thread Darryl Baker
I also unpack the tarball in a parallel location. Copy over the configuration 
files and war file to the new tree. Stop the running Tomcat. Relink the 
symbolic link to the new tree and restart Tomcat.

Darryl Baker, GSEC, GCLD (he/him/his) 
Sr. System Administrator 
Distributed Application Platform Services 
Northwestern University 
4th Floor 
2020 Ridge Avenue 
Evanston, IL 60208-0801 
darryl.ba...@northwestern.edu <mailto:darryl.ba...@northwestern.edu> 
(847) 467-6674  




On 5/12/23, 11:01 AM, "jonmcalexan...@wellsfargo.com.inva 
<mailto:jonmcalexan...@wellsfargo.com.inva>LID" 
mailto:jonmcalexan...@wellsfargo.com.inva>LID> wrote:


That's how I do it also. :-)


Dream * Excel * Explore * Inspire
Jon McAlexander
Senior Infrastructure Engineer
Asst. Vice President
He/His


Middleware Product Engineering
Enterprise CIO | EAS | Middleware | Infrastructure Solutions


8080 Cobblestone Rd | Urbandale, IA 50322
MAC: F4469-010
Tel 515-988-2508 | Cell 515-988-2508


jonmcalexan...@wellsfargo.com <mailto:jonmcalexan...@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: kmhun...@gmail.com <mailto:kmhun...@gmail.com>  <mailto:kmhun...@gmail.com>>
> Sent: Thursday, May 11, 2023 3:12 PM
> To: 'Tomcat Users List'  <mailto:users@tomcat.apache.org>>
> Subject: RE: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74
> 
> Not sure if anyone cares or not but this is how I handle...
> 
> Unpack Tomcat to /opt/Apache/tomcat/apache-tomcat-
> Create a link for the instance: /opt/Apache/tomcat/current ->
> /opt/Apache/tomcat/apache-tomcat-
> 
> This effectively does the same thing as described below except instead of
> copying binary content you just need to copy over the relevant configuration
> from the old to the new. Works for my purposes anyway.
> 
> -Original Message-
> From: Andr? van der Lugt mailto:avdl...@outlook.com>>
> Sent: Thursday, May 11, 2023 2:49 PM
> To: Tomcat Users List  <mailto:users@tomcat.apache.org>>
> Subject: RE: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74
> 
> Hi Meltron,
> 
> > -Original Message-
> > From: Meltron Kendrick  > <mailto:meltronkendr...@gmail.com>>
> > Sent: 11 May, 2023 19:09
> > To: users@tomcat.apache.org <mailto:users@tomcat.apache.org>
> > Subject: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74
> >
> > I have NOT been able to locate clear HOW TO steps for this.
> >
> > I am currently focused on MINOR upgrades.
> >
> > I will commence a different thread when I raise the question for MAJOR
> > upgrades --- say from 9.x to 10.x -- or 9.x to 11.x
> >
> > IF someone can point me to a great resource...
> > That would be tremendously helpful and truly appreciated.
> 
> Apache Tomcat home > Documentation has a Migration Guide
> (https://urldefense.com/v3/__https://tomcat.apache.org/migration.html__ 
> <https://urldefense.com/v3/__https://tomcat.apache.org/migration.html__>
> ;!!F9svGWnIaVPGSwU!purxrT4PhRPW_Lq5fZdShowqmdNRxSaHC6ZeLjoWK
> MuE-YvZn1q6sjrlepczbgub1aIrGWIszV9NfrxXBp2GOdoX$ ), see subsection
> "For upgrading between 9.0.x versions, ..."
> 
> Generally speaking, if you prepare your deployment according to
> RUNNING.txt (see Tomcat distribution) sub-section "Advanced Configuration
> - Multiple Tomcat Instances", the patch update can be fairly painless - all it
> takes is replacing CATALINA_HOME/bin and CATALINA_HOME/lib with the
> contents of the Tomcat update. And consulting the migration guide for
> potential breaking changes. Works for me!
> 
> Good luck,
> Andre
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org 
> <mailto:users-unsubscr...@tomcat.apache.org>
> For additional commands, e-mail: users-h...@tomcat.apache.org 
> <mailto:users-h...@tomcat.apache.org>
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org 
> <mailto:users-unsubscr...@tomcat.apache.org>
> For additional commands, e-mail: users-h...@tomcat.apache.org 
> <mailto:users-h...@tomcat.apache.org>




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







RE: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74

2023-05-12 Thread jonmcalexander
That's how I do it also. :-)

Dream * Excel * Explore * Inspire
Jon McAlexander
Senior Infrastructure Engineer
Asst. Vice President
He/His

Middleware Product Engineering
Enterprise CIO | EAS | Middleware | Infrastructure Solutions

8080 Cobblestone Rd | Urbandale, IA 50322
MAC: F4469-010
Tel 515-988-2508 | Cell 515-988-2508

jonmcalexan...@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: kmhun...@gmail.com 
> Sent: Thursday, May 11, 2023 3:12 PM
> To: 'Tomcat Users List' 
> Subject: RE: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74
> 
> Not sure if anyone cares or not but this is how I handle...
> 
> Unpack Tomcat to /opt/Apache/tomcat/apache-tomcat-
> Create a link for the instance: /opt/Apache/tomcat/current ->
> /opt/Apache/tomcat/apache-tomcat-
> 
> This effectively does the same thing as described below except instead of
> copying binary content you just need to copy over the relevant configuration
> from the old to the new. Works for my purposes anyway.
> 
> -Original Message-
> From: Andr? van der Lugt 
> Sent: Thursday, May 11, 2023 2:49 PM
> To: Tomcat Users List 
> Subject: RE: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74
> 
> Hi Meltron,
> 
> > -Original Message-
> > From: Meltron Kendrick 
> > Sent: 11 May, 2023 19:09
> > To: users@tomcat.apache.org
> > Subject: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74
> >
> > I have NOT been able to locate clear HOW TO steps for this.
> >
> > I am currently focused on MINOR upgrades.
> >
> > I will commence a different thread when I raise the question for MAJOR
> > upgrades --- say from 9.x to 10.x  -- or 9.x to 11.x
> >
> > IF someone can point me to a great resource...
> > That would be tremendously helpful and truly appreciated.
> 
> Apache Tomcat home > Documentation has a Migration Guide
> (https://urldefense.com/v3/__https://tomcat.apache.org/migration.html__
> ;!!F9svGWnIaVPGSwU!purxrT4PhRPW_Lq5fZdShowqmdNRxSaHC6ZeLjoWK
> MuE-YvZn1q6sjrlepczbgub1aIrGWIszV9NfrxXBp2GOdoX$ ), see subsection
> "For upgrading between 9.0.x versions, ..."
> 
> Generally speaking, if you prepare your deployment according to
> RUNNING.txt (see Tomcat distribution) sub-section "Advanced Configuration
> - Multiple Tomcat Instances", the patch update can be fairly painless - all it
> takes is replacing CATALINA_HOME/bin and CATALINA_HOME/lib with the
> contents of the Tomcat update. And consulting the migration guide for
> potential breaking changes. Works for me!
> 
> Good luck,
> Andre
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org


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



RE: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74

2023-05-11 Thread kmhuntly
Not sure if anyone cares or not but this is how I handle...

Unpack Tomcat to /opt/Apache/tomcat/apache-tomcat-
Create a link for the instance: /opt/Apache/tomcat/current ->
/opt/Apache/tomcat/apache-tomcat-

This effectively does the same thing as described below except instead of
copying binary content you just need to copy over the relevant configuration
from the old to the new. Works for my purposes anyway.

-Original Message-
From: Andr? van der Lugt  
Sent: Thursday, May 11, 2023 2:49 PM
To: Tomcat Users List 
Subject: RE: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74

Hi Meltron,

> -Original Message-
> From: Meltron Kendrick 
> Sent: 11 May, 2023 19:09
> To: users@tomcat.apache.org
> Subject: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74
> 
> I have NOT been able to locate clear HOW TO steps for this.
> 
> I am currently focused on MINOR upgrades.
> 
> I will commence a different thread when I raise the question for MAJOR 
> upgrades --- say from 9.x to 10.x  -- or 9.x to 11.x
> 
> IF someone can point me to a great resource...
> That would be tremendously helpful and truly appreciated.

Apache Tomcat home > Documentation has a Migration Guide
(https://tomcat.apache.org/migration.html), see subsection "For upgrading
between 9.0.x versions, ..."

Generally speaking, if you prepare your deployment according to RUNNING.txt
(see Tomcat distribution) sub-section "Advanced Configuration - Multiple
Tomcat Instances", the patch update can be fairly painless - all it takes is
replacing CATALINA_HOME/bin and CATALINA_HOME/lib with the contents of the
Tomcat update. And consulting the migration guide for potential breaking
changes. Works for me!

Good luck,
Andre


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



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



RE: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74

2023-05-11 Thread Andr? van der Lugt
Hi Meltron,

> -Original Message-
> From: Meltron Kendrick 
> Sent: 11 May, 2023 19:09
> To: users@tomcat.apache.org
> Subject: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74
> 
> I have NOT been able to locate clear HOW TO steps for this.
> 
> I am currently focused on MINOR upgrades.
> 
> I will commence a different thread when I raise the question for MAJOR
> upgrades --- say from 9.x to 10.x  -- or 9.x to 11.x
> 
> IF someone can point me to a great resource...
> That would be tremendously helpful and truly appreciated.

Apache Tomcat home > Documentation has a Migration Guide 
(https://tomcat.apache.org/migration.html), see subsection "For upgrading 
between 9.0.x versions, ..."

Generally speaking, if you prepare your deployment according to RUNNING.txt 
(see Tomcat distribution) sub-section "Advanced Configuration - Multiple Tomcat 
Instances", the patch update can be fairly painless - all it takes is replacing 
CATALINA_HOME/bin and CATALINA_HOME/lib with the contents of the Tomcat update. 
And consulting the migration guide for potential breaking changes. Works for me!

Good luck,
Andre


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



RE: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74

2023-05-11 Thread jonmcalexander
How are you configured? Is your CATALINA_HOME and CATALINA_BASE Identical, or 
do you have the binaries separated from the configuration (Different 
CATALINA_BASE directory)?

Thanks,

Dream * Excel * Explore * Inspire
Jon McAlexander
Senior Infrastructure Engineer
Asst. Vice President
He/His

Middleware Product Engineering
Enterprise CIO | EAS | Middleware | Infrastructure Solutions

8080 Cobblestone Rd | Urbandale, IA 50322
MAC: F4469-010
Tel 515-988-2508 | Cell 515-988-2508

jonmcalexan...@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: Meltron Kendrick 
> Sent: Thursday, May 11, 2023 12:09 PM
> To: users@tomcat.apache.org
> Subject: Best Practice to Upgrade Apache Tomcat from 9.0.56 to 9.0.74
> 
> I have NOT been able to locate clear HOW TO steps for this.
> 
> I am currently focused on MINOR upgrades.
> 
> I will commence a different thread when I raise the question for MAJOR
> upgrades --- say from 9.x to 10.x  -- or 9.x to 11.x
> 
> IF someone can point me to a great resource...
> That would be tremendously helpful and truly appreciated.
> 
> --- Meltron
> --
> ==
> Blessed Regards,
> 
> Meltron Kendrick
> Sr. Systems Engineer
> Linux * Windows * Cloud Computing * Security
> 
> LinkedIn:
> https://urldefense.com/v3/__http://www.linkedin.com/in/meltronkendrick
> __;!!F9svGWnIaVPGSwU!r0uxyULun0y9k3b9Q63cnHz94phOAv0bIK0U-
> WE54Llt5pLwOBfbkqXYSpxjrVMBAlehdpcNGql2wbGTnTLs5u2Ln-Ysz7gTeA$
> 
> Mobile: (512) 233-9176
> Email: meltronkendr...@gmail.com

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