Installing tomcat 5.5 on a minimal build...
I have a 'secure' build (RH AS 4 64bit) that I have to install tomcat 5.5 on - the machine cannot get out to the internet, so up2date is not an option. I went through the tedious work of downloading all RPM deps from the redhat web page, but I still cant get the tomcat rpm to install... does anyone have any suggestions - here are the deps that its saying it needs (some are files contained in glibc which is installed), followed by all the files i have downloaded.
[root@localhost tomcat]# rpm -ivh * error: Failed dependencies: java-gcj-compat >= 1.0.31 is needed by xml-commons-apis-1.3.02-0.b2.7jpp.10.x86_64 libgcj_bc.so.1()(64bit) is needed by xml-commons-apis-1.3.02-0.b2.7jpp.10.x86_64 rtld(GNU_HASH) is needed by xml-commons-apis-1.3.02-0.b2.7jpp.10.x86_64 java-gcj-compat is needed by xml-commons-resolver-1.1-1jpp.12.x86_64 libgcj_bc.so.1()(64bit) is needed by xml-commons-resolver-1.1-1jpp.12.x86_64 rtld(GNU_HASH) is needed by xml-commons-resolver-1.1-1jpp.12.x86_64 [root@localhost tomcat]# ls ant-1.6.5-1jpp_3rh.noarch.rpm axis-1.4-1jpp_1rh.noarch.rpm bcel-5.1-1jpp_3rh.noarch.rpm burlap-3.0.8-1jpp_1rh.noarch.rpm caucho-services-3.0.8-1jpp_1rh.noarch.rpm eclipse-ecj-3.2.0-1jpp_2rh.x86_64.rpm geronimo-jta-1.0.1B-api-1.0-3jpp_1rh.noarch.rpm hessian-3.0.8-1jpp_1rh.noarch.rpm jaf-20030319-1.x86_64.rpm jakarta-commons-beanutils-1.7.0-2jpp_1rh.noarch.rpm jakarta-commons-collections-3.1-1jpp_1rh.noarch.rpm jakarta-commons-daemon-1.0.1-4jpp_1rh.noarch.rpm jakarta-commons-dbcp-1.2.1-3jpp_1rh.noarch.rpm jakarta-commons-digester-1.7-1jpp_2rh.noarch.rpm jakarta-commons-discovery-0.3-1jpp_1rh.noarch.rpm jakarta-commons-el-1.0-5jpp_1rh.noarch.rpm jakarta-commons-fileupload-1.0-3jpp_1rh.noarch.rpm jakarta-commons-httpclient-3.0-5jpp_1rh.noarch.rpm jakarta-commons-launcher-0.9-3jpp_1rh.noarch.rpm jakarta-commons-logging-1.0.4-2jpp_1rh.noarch.rpm jakarta-commons-modeler-2.0-3jpp_3rh.noarch.rpm jakarta-commons-pool-1.2-2jpp_1rh.noarch.rpm java-1.4.2-gcj-compat-1.4.2.0-27jpp.noarch.rpm java-1.4.2-gcj-compat-devel-1.4.2.0-27jpp.noarch.rpm javamail-20031006-1.x86_64.rpm katana-2.0.0-1.noarch.rpm libgcj-3.4.6-9.x86_64.rpm libgcj-ssa-3.5ssa-0.20030801.48.x86_64.rpm log4j-1.2.13-1jpp_1rh.noarch.rpm mx4j-3.0.1-3jpp_2rh.noarch.rpm regexp-1.3-1jpp_4rh.noarch.rpm servletapi4-4.0.4-3jpp_5rh.noarch.rpm tomcat5-5.5.23-0jpp_6rh.noarch.rpm tomcat5-common-lib-5.5.23-0jpp_6rh.noarch.rpm tomcat5-jasper-5.5.23-0jpp_6rh.noarch.rpm tomcat5-jsp-2.0-api-5.5.23-0jpp_6rh.noarch.rpm tomcat5-server-lib-5.5.23-0jpp_6rh.noarch.rpm tomcat5-servlet-2.4-api-5.5.23-0jpp_6rh.noarch.rpm wsdl4j-1.5.2-1jpp_1rh.noarch.rpm xalan-j2-2.7.0-2jpp_2rh.noarch.rpm xerces-j2-2.7.1-3jpp_1rh.noarch.rpm xml-commons-1.3.02-0.b2.7jpp.10.x86_64.rpm xml-commons-1.3.03-5jpp_1rh.noarch.rpm xml-commons-apis-1.3.02-0.b2.7jpp.10.x86_64.rpm xml-commons-jaxp-1.3-apis-1.3.03-5jpp_1rh.noarch.rpm xml-commons-resolver-1.1-1jpp.12.x86_64.rpm xml-commons-resolver12-1.3.03-5jpp_1rh.noarch.rpm |
Why are you dealing with Gnu Java (gjc)?
Why not just *delete* GJC, install Sun Java instead ... and it looks like you'll probably be home free. PS: I just had another LQ thread where a poster (not the original poster - somebody else) got irate when I suggested de-installing Gnu Java. But honestly - my experience is that Gnu Java is often more trouble than it's worth, and Sun Java "just works". Based on your logs, I honestly think you should de-install Gnu Java, install Sun (you'll need the full JDK for Tomcat - not just the JRE) ... and you'll be happy. |
installing and configuring Apache Tomcat 6 on Linux
This tutorial is a guide to installing and configuring Apache Tomcat 6 for use as a standalone Web server (for development) that supports servlets 2.5 and JSP 2.1. (Note: Apache Tomcat is sometimes referred to as "Jakarta Tomcat" since the Apache Java effort is known as "The Jakarta Project").
To configure this you require JDK 1.5 or greater, I choose following two packages for my installation 1. jdk-1_5_0_14-linux-i586-rpm.bin 2. apache-tomcat-6.0.16.tar. Installation of JAVA The bin file is a self extract file run that file as [root@localhost ~]#./jdk-1_5_0_14-linux-i586-rpm.bin Once the rpm deployment is over, you will find the installation files on /usr/java Now Set up a environment variable require for java in .bash_profile file $PATH=/usr/java/jdk1.5.0_14/bin:$PATH export PATH export JAVA_HOME=/usr/java/jdk1.5.0_14 export CLASSPATH=.:/usr/java/jdk1.5.0_14/lib/tools.jar:/usr/java/jdk1.5.0_14/jre/lib/rt.jar Why CLASSPATH - Since servlets and JSP are not part of the Java 2 platform, standard edition; you have to identify the servlet classes to the compiler. The server already knows about the servlet classes, but the compiler (i.e., javac) you use for development probably doesn't. So, if you don't set your CLASSPATH, attempts to compile servlets, tag libraries, or other classes that use the servlet and JSP APIs will fail with error messages about unknown classes. Installing Tomcat 6 Extract the apache-tomcat-6.0.16.tar file as [root@localhost ~]# tar –xvf apache-tomcat-6.0.16.tar You’ll get a folder name apache-tomcat-6.0.16. Rename this folder as tomcat6, and move to the location /usr/ [root@localhost ~]# mv apache-tomcat-6.0.16.tar /usr/tomcat6 Now Set up a environment variable require for tomcat in .bash_profile file export CATALINA_HOME=/usr/tomcat6 export CATALINA_OPTS="-Djava.ext.dirs=/dummy_dir" export CATALINA_TEMPDIR=/usr/tomcat6/temp export JRE_HOME=/usr/java/jdk1.5.0_14/jre export CLASSPATH=.:/usr/tomcat6/lib/servlet-api.jar:/usr/tomcat6/lib/jsp-api.jar:/usr/tomcat6/lib/el-api.jar Here you have completed the installation and configuration of tomcat 6 and jdk 1.5. Now to check that the setting is working properly, start the services of tomcat6 by running the startup.sh script. For stopping tomcat run shutdown.sh script. [root@localhost ~]# ./ startup.sh Go to browser and enter a url http://localhost:8080 , you will get a tomcat welcome page. |
All times are GMT -5. The time now is 01:06 AM. |