Solved

Would like to upgrade to Tomcat 7 on CentOS

Posted on 2011-02-13
2
1,698 Views
Last Modified: 2012-05-11
I have a CentOS 5.5 instance with both tomcat 5 and tomcat 6 installed. I want to upgrade to tomcat 7 and I'm wondering if I should remove the 2 previous tomcat instances before installing the new version. The thing is, I just did a test and when I uninstalled tomcat 5, the package manager also removed my openoffice installation. The tomcat 5 instance came with the base centOS install and I later installed tomcat 6 (without realizing that 5 was already on there).

So I'm just looking for suggestions as to the best way to proceed.
0
Comment
Question by:opike
2 Comments
 
LVL 14

Accepted Solution

by:
small_student earned 250 total points
ID: 34884320
It depends on how you installed the package. if from source then usually it went under /usr/local or what ever PATH parameter you chose in the config.

The base installation usually puts binaries under /usr/sbin and configs undet /etc and some things under /var/lib

Anyway have you tried using the Jpackage repo and installing doing a YUM upgrade I think this would upgrade what you have.
0
 
LVL 1

Assisted Solution

by:haroldpga
haroldpga earned 250 total points
ID: 34887986
Since the Tomcat which comes with CentOS is version 5, then you must have installed version 6 from the sources.  

Personally, I would remove both versions 5 and 6 before trying to install version 7 from source.  You can use yum to remove version 5, monitoring the process to put back anything which gets un-installed by mistake (in this case, it appears that open office is in that category.)  

If you still have the source tree for Tomcat6, you can try "make uninstall".  If this doesn't work, then you probably will have to just delete all of the tomcat files before proceeding with the install of Tomcat7.

The Jpackage repository is a good idea, but the latest version of Tomcat they have is 6.

Hope this helps
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
The viewer will learn how to count occurrences of each item in an array.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question