Page 1 of 2

Tomcat on CentOS 4 and Plesk 8.1

Posted: Fri Feb 09, 2007 9:36 am
by webdevotion
Hello,

I want to install tomcat 5.5 on my machine.
But yum install tomcat will not work.

My hosting company ( media temple ) said
I should take a look at ART and install the tomcat RPM.


I tried:

Code: Select all

[root@as local]# wget http://3es.atomicrocketturtle.com/installers/atomik.sh
--05:19:29--  http://3es.atomicrocketturtle.com/installers/atomik.sh
           => `atomik.sh'
Resolving 3es.atomicrocketturtle.com... 69.20.54.228
Connecting to 3es.atomicrocketturtle.com|69.20.54.228|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
05:19:29 ERROR 404: Not Found.

[root@as local]# wget http://3es.atomicrocketturtle.com/installers/atomic.sh
--05:19:54--  http://3es.atomicrocketturtle.com/installers/atomic.sh
           => `atomic.sh'
Resolving 3es.atomicrocketturtle.com... 69.20.54.228
Connecting to 3es.atomicrocketturtle.com|69.20.54.228|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,296 (2.2K) [application/x-sh]

100%[====================================>] 2,296         --.--K/s

05:19:54 (66.35 MB/s) - `atomic.sh' saved [2296/2296]

[root@as local]# sh ./atomic.sh


Downloading atomic-release-1.0-3.rhel4.art.noarch.rpm and installing the ART GPG                                                         key: OK
error: Failed dependencies:
        yum >= 2.2 is needed by atomic-release-1.0-3.rhel4.art.noarch


The Atomic Rocket Turtle archive has now been installed and configured for your                                                         system
The following channels are available:
        atomic          - [ACTIVATED] - contains the stable tree of ART packages
        atomic-testing  - [DISABLED]  - contains the testing tree of ART package                                                        s
        atomic-bleeding - [DISABLED]  - contains the development tree of ART pac                                                        kages


[root@as local]# yum install tomcat
-bash: yum: command not found

Posted: Fri Feb 09, 2007 10:45 am
by breun
ART only has the tomcat5 packages that come with Plesk (which you can also install through the Plesk Updater / autoinstaller). Plesk 8.1 has Tomcat 5.0 though, not 5.5.

An up-to-date CentOS 4 installation has yum 2.4 by the way, I wonder why the atomic installer reports yum >= 2.2 is not installed on your system.

Posted: Fri Feb 09, 2007 10:47 am
by webdevotion
I've seen the Tomcat button in my Plesk installation.
But it is inactive.

So Media Temple said: tomcat is one of two add ons we can't install
for you. Check out ART and look for the RPM.

Can you point me to that RPM ? And how can I install it ?
I guess Tomcat 5 would be ok for me.

I'm quite inexperienced in these fields ...

Thanks Breun!

Posted: Fri Feb 09, 2007 10:53 am
by breun
Have you checked the Plesk Updater? Does it say Tomcat support is installed? You need a license key that enables the use of Tomcat in Plesk. You can check whether your license key supports Tomcat under License Management. If not you'll need to upgrade your license.

Posted: Fri Feb 09, 2007 11:12 am
by scott
Thats probably a vserver or something. I need to add in a routine to my installer to fix those broken systems. And please folks, complain to your hosting companies/sw-soft/anyone that will listen when they fail to provide you with an OS updater like up2date or yum. Those are core components in CentOS/RHEL, and Fedora for a reason, and youve really got to go out of your way to remove them.

Posted: Fri Feb 09, 2007 11:18 am
by webdevotion
Yes, I've checked the plesk site and wanted to update my plesk installation by buying the tomcat add on.

But the form said "contact your reseller".
So I contacted Media Temple.
Who said "check ART"

Now I'm lost :)

How can I install Tomcat on my system using ART ?

Posted: Fri Feb 09, 2007 4:20 pm
by scott
haha, well you can install it from the psa channel, those are the same rpms that sw-soft distributes. I dont have anything to do with licensing. Run: yum list |grep tomcat

thats going to show you all the tomcat packages in the channel. yum install <packagename> will install it.

Posted: Sat Feb 10, 2007 5:35 am
by webdevotion
Ok, so I guess I really need yum.
Yum is not active on my server right now.

Posted: Sat Feb 10, 2007 7:07 am
by webdevotion
ok,

Just installed Yum by using

[root@as local]# wget http://linux.duke.edu/projects/yum/down ... 4.1.tar.gz

and extracted the folder.

How can I install Yum ? Or how can I run the Yum command ?

Thanks guys for your time and effort.

Posted: Sat Feb 10, 2007 7:29 am
by breun
Better get an rpm for your distribution. What are you running?

You don't really need yum to install tomcat, as you can install it using the Plesk Updater or the autoinstaller.

You do want yum to be able to keep the rest of your system up to date.

Posted: Sat Feb 10, 2007 7:45 am
by webdevotion
@Scott:

Code: Select all

[root@as etc]# yum list |grep tomcat
retrygrab() failed for:
  http://mirror.dulug.duke.edu/pub/yum-repository/redhat/4/i386/headers/header.info
  Executing failover method
failover: out of servers to try
Error getting file http://mirror.dulug.duke.edu/pub/yum-repository/redhat/4/i386/headers/header.info
[Errno 4] IOError: HTTP Error 404: Not Found
@Breun: I installed YUM using an hidden article from MediaTemple.
( how to install mysql upgrades contained guidelines )

But ...
as you can install it using the Plesk Updater or the autoinstaller.
No, I can't: I contacted Mediatemple about this and it's one of two add ons they can't install for me. They said "check atomic rocket turtle".
Maybe they have an Tomcat RPM.

Posted: Sat Feb 10, 2007 7:57 am
by breun
These Media Temple guys seem really strange to me...

Posted: Sat Feb 10, 2007 8:35 am
by webdevotion
I will run the plesk updater.
Once I've done that I will loose all autoupdate functionality from Media Temple.

Worst case scenario: clean reinstall by MT.

I tried installing tomcat on my centos machine.
It's up and running, but when I try to shutdown the
tomcat instance it throws a java error.
And that's the one I'm trying to tackle here.

Posted: Sat Feb 10, 2007 8:41 am
by breun
webdevotion wrote:I will run the plesk updater.
Once I've done that I will loose all autoupdate functionality from Media Temple.
Installing tomcat via yum, the autoinstaller or the Plesk Updater isn't really different from installing the rpm directly. I really don't get these guys.

Posted: Sat Feb 10, 2007 9:45 am
by webdevotion
Well, it's not really up to them to admin my server: it's a virtual dedicated server. I'm the one responsible for the system. If I want to enjoy the autoupdates that they enroll, they want your system to be as uniform as possible.

I did the plesk update an hour ago and check tomcat jsp support for installation, but I did not receive a mail yet. Is it normal that the installation takes so long ?

Tomcat button in Plesk is still not clickable.