Installing Tomcat5 on RHEL4 or CentOS4.2 (tummy.com, ltd. Journal Entry)
tummy.com: we do linux

Wednesday November 02, 2005 at 20:45
Subject: Installing Tomcat5 on RHEL4 or CentOS4.2
Keywords: CentOS, CentOS4.2, Java, RHEL, RHEL4, Tech, Technical, Tomcat5
Posted by: Scott Kleihege

Related entries:
   Installing Tomcat5 on CentOS4 with JDK 1.5 by Scott Kleihege, Wednesday April 11, 2007 at 00:12

Due to licensing issues, installing Java base packages on Linux is several orders of magnitude more difficult than packages which are included in your distribution's base, or even software from some third party repositories. The good people at JPackage.org have gone to a lot of effort to make it pretty easy to install Java packages on RPM-based machines. Sadly, unless Sun decides to start allowing for free redistribution of it's packages, it still requires some manual installation.

In the course of our recent travels we've found it necessary to install tomcat for customer web-sites. Fedora Core 4 includes most of these files in the base, but we haven't tested it yet; you may still need to seek out some files from the Sun website. My notes for installing Tomcat5 on Red Hat Enterprise Linux 4 or CentOS 4.2 are available here. If you're using another RPM based distribution, your instructions should be similar.


(Post Reply)
Comment
KDCF
Subject: re: Tomcat 5 + Java + CentOS 4.2
Great guide! How about updating it for those that need the 1.5 SDK as opposed to 1.4.2?
Comment
Author: Sean Reifschneider
Subject: Thanks for the suggestion.
Thanks for the suggestion on changes to the instructions. We probably won't have the opportunity to revamp the documentation in the short term, however. Many of these sorts of contributions to the community are funded partially by client work, so updating of these instructions depend on clients demand either for hosting of Tomcat servers with version 5 JDK in our facility, or consulting requests for assistance for this configuration. So we're kind of at the mercy of client demand for the schedule of updates to this document.

Thanks,
Sean

Comment
Marcos
Subject: Failed dependencies
Hi, thanks for your tutorial.
It's the only useful resource I found on the subjetc.

However I got into trouble with the line:

rpm -ivh /usr/src/redhat/RPMS/i586/java-1.4.2-sun-1.4.2.09-1jpp.i586.rpm

that results in the following errors:

error: Failed dependencies:
        libjava.so(SUNWprivate_1.1) is needed by java-1.4.2-sun-1.4.2.09-1jpp.i586
        libjvm.so(SUNWprivate_1.1) is needed by java-1.4.2-sun-1.4.2.09-1jpp.i586
        libnet.so(SUNWprivate_1.1) is needed by java-1.4.2-sun-1.4.2.09-1jpp.i586
        libverify.so(SUNWprivate_1.1) is needed by java-1.4.2-sun-1.4.2.09-1jpp.i586

I'm stuck there. Why is this happening and how to work around it. Please help with this. I'm a linux newbie and have nowhere else to turn to for help. Thank you very much.

Comment
Author: Sean Reifschneider
Subject: Dependencies.
Those dependency errors are because you don't have the Sun Java packages installed. You'll have to do that before you can install the rest.

Sean

Comment
Author: Sean Reifschneider
Subject: More on dependency issues.
Eric Robinson has reported that he was able to install and avoid some reported "libjava" dependency issues by intsalling with "--nodeps", and things would work. This makes it sound like there is a packaging issue with some of the current packages. Using "--nodeps" is a bit brute-force, and I definitely don't recommend it as it can mask actual problems as well as solving packaging issues. However, it may be worth trying.

Sean

Comment
Author: Scott Kleihege
Subject: Guide for JDK 1.5 available
A new blog entry with a link to an updated guide for JDK 1.5 is here