Tomcat on CentOS 4 and Plesk 8.1

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
webdevotion
Forum User
Forum User
Posts: 14
Joined: Fri Feb 09, 2007 9:26 am

Tomcat on CentOS 4 and Plesk 8.1

Unread post 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
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post 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.
Lemonbit Internet Dedicated Server Management
webdevotion
Forum User
Forum User
Posts: 14
Joined: Fri Feb 09, 2007 9:26 am

Unread post 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!
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post 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.
Lemonbit Internet Dedicated Server Management
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post 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.
webdevotion
Forum User
Forum User
Posts: 14
Joined: Fri Feb 09, 2007 9:26 am

Unread post 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 ?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post 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.
webdevotion
Forum User
Forum User
Posts: 14
Joined: Fri Feb 09, 2007 9:26 am

Unread post by webdevotion »

Ok, so I guess I really need yum.
Yum is not active on my server right now.
webdevotion
Forum User
Forum User
Posts: 14
Joined: Fri Feb 09, 2007 9:26 am

Unread post 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.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post 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.
Lemonbit Internet Dedicated Server Management
webdevotion
Forum User
Forum User
Posts: 14
Joined: Fri Feb 09, 2007 9:26 am

Unread post 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.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

These Media Temple guys seem really strange to me...
Lemonbit Internet Dedicated Server Management
webdevotion
Forum User
Forum User
Posts: 14
Joined: Fri Feb 09, 2007 9:26 am

Unread post 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.
Last edited by webdevotion on Sat Feb 10, 2007 8:41 am, edited 1 time in total.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post 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.
Lemonbit Internet Dedicated Server Management
webdevotion
Forum User
Forum User
Posts: 14
Joined: Fri Feb 09, 2007 9:26 am

Unread post 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.
Post Reply