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.
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 »

Tomcat is an 'official' Plesk component, but oh well. No, it's not normal that it takes so long. If the Tomcat button is there I guess the component is already installed, but the Tomcat button won't be enabled until your Plesk license has Tomcat support.
Lemonbit Internet Dedicated Server Management
webdevotion
Forum User
Forum User
Posts: 14
Joined: Fri Feb 09, 2007 9:26 am

Unread post by webdevotion »

Still no luck.

This is my error:

[root@as ~]# yum list |grep tomcat
retrygrab() failed for:
http://mirror.dulug.duke.edu/pub/yum-re ... eader.info
Executing failover method
failover: out of servers to try
Error getting file http://mirror.dulug.duke.edu/pub/yum-re ... eader.info
[Errno 4] IOError: HTTP Error 404: 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 »

My guess is that your yum config is not entirely right. Could you post that? And what OS are your running? Looks like you're trying to connect to a RHEL4 repo, but AFAIK there are no yum repositories for the base RHEL 4 system. That's all handled through up2date.
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 am running Centos 4 and plesk 8.1.

This is my yum.conf:

Code: Select all

[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
exclude=initscripts

[atomic]
name=Atomic Rocket Turtle - $releasever - Atomic PSA-Compatible RPMS
baseurl=http://3es.atomicrocketturtle.com/atomic/art/$releaseverES/

[atomic-app-vault]
name=Atomic Rocket Turtle - $releasever - Atomic PSA App Vault RPMS
baseurl=http://3es.atomicrocketturtle.com/atomic/app-vault/

# Replace DISTRO with your distribution, centos/redhat
[psa-8.1]
name=Atomic Rocket Turtle - $releasever - SW-Soft PSA 8.1 RPMS
baseurl=http://3es.atomicrocketturtle.com/atomic/psa-8.1/centos/$releasever/$arch

[base]
name=Red Hat Linux $releasever - $basearch - Base
baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/$releasever/$basearch/


[updates]
name=Red Hat Linux $releasever - Updates
baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/updates/$releasever/
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 »

Well, those mirror.dulug.duke.edu repo's are obviously not available for $releasever=4 as http://mirror.dulug.duke.edu/pub/yum-repository/redhat/ only shows 7.3 and 9 (old unsupported Red Hat versions).

My guess is that you downloaded an old version of yum which brought in this config. Why not install CentOS 4's own version of yum?

Uninstall the version you installed and get this one: http://mirror.centos.org/centos-4/4/os/ ... noarch.rpm

You might need some dependecies, you can get them all at the same location: http://mirror.centos.org/centos-4/4/os/ ... ntOS/RPMS/

Then get http://3es.atomicrocketturtle.com/installers/atomic.sh and run it (sh atomic.sh) and you should be good to go.
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 want to follow this guys directives: link.

But when I try to uninstall the older yum version I get this:

Code: Select all

[root@as src]# yum --version
2.0.7
[root@as src]# rpm -e yum-2.0.7-1.rhel3.art.noarch.rpm
error: package yum-2.0.7-1.rhel3.art.noarch.rpm is not installed
Breun, thanks for all your time. Better get your amazon wish list in order :wink:
webdevotion
Forum User
Forum User
Posts: 14
Joined: Fri Feb 09, 2007 9:26 am

Unread post by webdevotion »

I did

rpm -u yum

and it worked :)
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 »

Yeah, installing the new yum using rpm -U should work as well. I was mostly suggesting getting rid of your broken repo config. Good to hear it's working now.
Lemonbit Internet Dedicated Server Management
webdevotion
Forum User
Forum User
Posts: 14
Joined: Fri Feb 09, 2007 9:26 am

Unread post by webdevotion »

this is my yum list |grep tomcat output:

I guess tomcat is installed right ?

Code: Select all

[root@as src]# yum list |grep tomcat
tomcat5.noarch                           5.0.30-11jpp           installed
tomcat5-jasper.noarch                 5.0.30-11jpp           installed
tomcat5-servlet-2.4-api.noarch     5.0.30-11jpp           installed
webdevotion
Forum User
Forum User
Posts: 14
Joined: Fri Feb 09, 2007 9:26 am

Unread post by webdevotion »

:twisted: I finally got it working!!!

Tomcat is up and running on my machine and ...
I can shut it down now properly ( at first I got JAVA VM errors when shutting down the server ).

Thanks Breun and Scott !

You helped me out big time !
Post Reply