Re: Updating Apache Tomcat to a current version

2016-06-14 Thread paul.greene.va

Daniel,

The update worked perfectly - took about 20 minutes, but mostly because 
I was being hyper-cautious.


I suspected it was an easy upgrade for someone familiar with the 
product; I got thrown into it in a mad rush, no experience with either 
product (service manager or tomcat), and told to "get it done yesterday".


Thanks for all your help.  :-)

Paul

On 6/12/2016 4:28 PM, Daniel Savard wrote:

Paul,
you do not upgrade Tomcat code, you install a second instance of Tomcat or
you delete the existing Tomcat and install the new version.

Service Manager is pretty straight forward to install. Here are the setups:

1) Install Tomcat 7.0.69
2) Configure conf/server.xml (TLS/SSL stuff, Connector, etc)
3) Start Tomcat
4) Drop the war file in webapps
5) Edit webapps/sm/WEB-INF/web.xml to reflect your installation (SM server,
etc) after the war has been installed into its directory

You are done. Check in logs/catalina.out for error messages.

There is variants in the installation. This one seems to me the simplest on
given you are telling us the war file is actually in the webapps folder.

I am a bit surprised you were told to upgrade to Tomcat 7.0.69, which
version of SM are you running on the server? We still have SM running with
Java 6 and Tomcat 6.0.24 in production with SM 9.34. We are upgrading to SM
9.41, Tomcat 8 and Java 8. So far, SM is running smoothly in all our
environments. Usually HP support whatever version of Tomcat you have,
provided it meets the minimum requirements or unless a specific bug exists
in your Tomcat version.

Regards,
-
Daniel Savard




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



Re: Updating Apache Tomcat to a current version

2016-06-12 Thread paul.greene.va



On 6/12/2016 4:28 PM, Daniel Savard wrote:

Paul,
you do not upgrade Tomcat code, you install a second instance of Tomcat or
you delete the existing Tomcat and install the new version.

Service Manager is pretty straight forward to install. Here are the setups:

1) Install Tomcat 7.0.69
2) Configure conf/server.xml (TLS/SSL stuff, Connector, etc)
3) Start Tomcat
4) Drop the war file in webapps
5) Edit webapps/sm/WEB-INF/web.xml to reflect your installation (SM server,
etc) after the war has been installed into its directory

You are done. Check in logs/catalina.out for error messages.

There is variants in the installation. This one seems to me the simplest on
given you are telling us the war file is actually in the webapps folder.

I am a bit surprised you were told to upgrade to Tomcat 7.0.69, which
version of SM are you running on the server? We still have SM running with
Java 6 and Tomcat 6.0.24 in production with SM 9.34. We are upgrading to SM
9.41, Tomcat 8 and Java 8. So far, SM is running smoothly in all our
environments. Usually HP support whatever version of Tomcat you have,
provided it meets the minimum requirements or unless a specific bug exists
in your Tomcat version.

Regards,
-
Daniel Savard



A couple of quick questions - when you drop the WAR file into the 
webapps directory, does tomcat automatically expand the contents of the 
file? And is the WAR file format a typical way for vendors to distribute 
their apps to their customers, or is it normally a customer created file?


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



Re: Updating Apache Tomcat to a current version

2016-06-12 Thread paul.greene.va



On 6/12/2016 11:29 AM, Daniel Savard wrote:

2016-06-12 9:20 GMT-04:00 paul.greene.va <paul.greene...@verizon.net>:


I got copies of both 7.0.53 and 7.0.69 off the Tomcat website, and
installed .53 first on a vmware vm, then tried running .69 over it to see
if it was just an easy upgrade, but it looks like Tomcat doesn't make the
upgrade that easy.



It is unclear here if you have the HP application installed or not on
7.0.53 in you VM. If you don't, it is pointless to backup any content. The
idea of the backup is to keep a copy of the working configuration for
reference.


Daniel - sorry, this was probably confusing. What I did was install 
Tomcat 7.0.53 at *home* on a virtual server - there was nothing else 
installed on this virtual machine - no Service Manager, no apps, nothing 
else. I just wanted to see what happened when I went to install 7.0.69 
over the top of .53; i.e. would there just be a simple "upgrade" option 
or not. There wasn't an option to "upgrade" and the install choked at 
one point when it realized there was another tomcat.exe process running 
and it couldn't overwrite the file.


The server I need to upgrade at *work* is a perfectly functioning 
instance of Service Manager. It is working fine with no issues at the 
moment. I haven't touched anything on this server yet.


It sounds like, from what you've said, the standard way to deploy an app 
in tomcat is via a WAR file getting dropped in the webapps directory. 
There is a sm.war file in the root of ..\webapps; if I copied that file 
into the new tomcat install webapps directory, would that install the 
app correctly? Or does a new *.war file need to be generated with a new 
version of tomcat? Service Manager itself isn't getting upgraded at this 
time, so if that was the same war file used in the last upgrade (they 
went from 9.33 to 9.40), shouldn't it work in this one too?


The fall back is that the work servers are running in vmware - so I can 
take a snapshot before starting and roll back if anything goes south.


Thanks again in advance.

Paul




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



Re: Updating Apache Tomcat to a current version

2016-06-12 Thread paul.greene.va



On 6/11/2016 11:08 PM, Daniel Savard wrote:

2016-06-10 15:09 GMT-04:00 paul.greene.va <paul.greene...@verizon.net>:


Actually, I don't want to have parallel versions going; 7.0.53 needs to go
away to address the vulnerabilities found in the audit scan. Ideally
everything should be the same as it is now, with the only difference being
the app is using 7.0.69 rather than 7.0.53.


Hi Paul,

What I would do, is keep a copy of the files in conf directory/folder of
your old Tomcat instance as well as a copy of the files in webapps (I
suppose you have drop the war file into that directory/folder). You then
have a copy of all the files you need in case something went wrong or you
need to configure something you don't remember.

Then I would install the new Tomcat version. Configure the server.xml (I
suppose you did previously for the old version and know how to modify it to
reflect your particular needs) and then drop the war file in the new
wepapps directory if this is how you installed the old version of the HP
application. I suppose you have some kind of instructions from HP on how to
install their application. It is just like you install a brand new Tomcat.
The important part is to keep a copy of the old stuff in case you need to
refer to your previous settings.

Regards,
Daniel



Daniel

Thank you. I wasn't involved at all in the previous upgrade or the 
original installation of Tomcat and/or HP Service Manager.


I got copies of both 7.0.53 and 7.0.69 off the Tomcat website, and 
installed .53 first on a vmware vm, then tried running .69 over it to 
see if it was just an easy upgrade, but it looks like Tomcat doesn't 
make the upgrade that easy.


So, if I understand your suggestions correctly, would the following plan 
of action work -


Make a backup of everything under C:\Program Files\Apache Software 
Foundation\Tomcat 7.0\, in particular conf and webapps

Remove the current version of Tomcat (.53)
Install most recent version (.69)
Copy the contents of the conf and webapps folder back to the new install

There is a *.keystore file and a keystore.jks files in the root of 
C:\Program Files\Apache Software Foundation\Tomcat 7.0\ - I'm guessing 
they are probably needed as well to get SSL working correctly (?)


Should that do the trick?

(I'm not familiar with WAR files - is that the normal way to install new 
apps into Tomcat?)


Paul




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



Re: Updating Apache Tomcat to a current version

2016-06-10 Thread paul.greene.va
Actually, I don't want to have parallel versions going; 7.0.53 needs to 
go away to address the vulnerabilities found in the audit scan. Ideally 
everything should be the same as it is now, with the only difference 
being the app is using 7.0.69 rather than 7.0.53.



On 6/10/2016 12:48 AM, Daniel Savard wrote:

2016-06-09 23:04 GMT-04:00 paul.greene.va <paul.greene...@verizon.net>:


Hello All,

I manage an HP application that uses Apache Tomcat as a 3rd party
application. The installed Tomcat version is 7.0.53. Because of a recent
audit scan I have to update it to the most current version (7.0.69). HP
says - "not our application; we don't support it".

Is there an existing guide that describes how to update to a more recent
version within the same series? (7, in this case). Maybe I'm just missing
it but I cannot find anything that specific on the Apache Tomcat website.

Tomcat is installed on 64 bit Windows 2012.



Hi Paul,

just look at the Tomcat documentation on how you can install multiple
versions of Tomcat in parallel on the same Windows server. You do not
upgrade Tomcat, you install the latest version and then you drop you HP
webapps in the new container, provided you have configured it properly. In
fact, you can run both versions of Tomcat in parallel with the HP webapps
if you wish. I am doing this at will and I am also running a bunch of HP
web applications. You can also configure Tomcat to use whatever version of
Java you wish and again, you can have multiple versions of Java if needed.

Regards,
Daniel




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



Re: Updating Apache Tomcat to a current version

2016-06-10 Thread paul.greene.va

Ok, I'm totally new to Apache Tomcat; that's kind of all Greek to me.

When you say "drop a new webapp in a container", can you do that just by 
copying the WAR file from the current app into the new Tomcat folder? Or 
does a new WAR file need to be generated?


On 6/10/2016 12:48 AM, Daniel Savard wrote:

2016-06-09 23:04 GMT-04:00 paul.greene.va <paul.greene...@verizon.net>:


Hello All,

I manage an HP application that uses Apache Tomcat as a 3rd party
application. The installed Tomcat version is 7.0.53. Because of a recent
audit scan I have to update it to the most current version (7.0.69). HP
says - "not our application; we don't support it".

Is there an existing guide that describes how to update to a more recent
version within the same series? (7, in this case). Maybe I'm just missing
it but I cannot find anything that specific on the Apache Tomcat website.

Tomcat is installed on 64 bit Windows 2012.



Hi Paul,

just look at the Tomcat documentation on how you can install multiple
versions of Tomcat in parallel on the same Windows server. You do not
upgrade Tomcat, you install the latest version and then you drop you HP
webapps in the new container, provided you have configured it properly. In
fact, you can run both versions of Tomcat in parallel with the HP webapps
if you wish. I am doing this at will and I am also running a bunch of HP
web applications. You can also configure Tomcat to use whatever version of
Java you wish and again, you can have multiple versions of Java if needed.

Regards,
Daniel




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



Updating Apache Tomcat to a current version

2016-06-09 Thread paul.greene.va

Hello All,

I manage an HP application that uses Apache Tomcat as a 3rd party 
application. The installed Tomcat version is 7.0.53. Because of a recent 
audit scan I have to update it to the most current version (7.0.69). HP 
says - "not our application; we don't support it".


Is there an existing guide that describes how to update to a more recent 
version within the same series? (7, in this case). Maybe I'm just 
missing it but I cannot find anything that specific on the Apache Tomcat 
website.


Tomcat is installed on 64 bit Windows 2012.

Thanks ahead of time,

PG

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