Help needed to install Apache Tomcat


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Help needed to install Apache Tomcat
# 1  
Old 04-30-2010
Help needed to install Apache Tomcat

I want to setup apache tomcat on my linux distribution .

I Have downloaded apache tomcat from below mentioned link.

Administration Web Application:
Apache Tomcat - Apache Tomcat 5 Downloads

The setup was in following format.
apache-tomcat-5.5.29-admin.tar.gz

Below are the command i have used to install the software.
I have copied the file to / directory
Quote:
gunzip apache-tomcat-5.5.29-admin.tar.gz
tar -xvf apache-tomcat-5.5.29-admin.tar
Now there is a folder called apache-tomcat-5.5.29 in my root directory.

I m currently stuck at this step .What should be my next step. i had no trouble installing it on my windows box but since i m new to linux request you to help me install it.

My linux distribution detail:
Quote:
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: EnterpriseEnterpriseServer
Description: Enterprise Linux Enterprise Linux Server release 5.2 (Carthage)
Release: 5.2
Codename: Carthage
Java Version:
Quote:
# java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20071124 (Red Hat 4.1.2-42)

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


---------- Post updated at 01:24 AM ---------- Previous update was at 01:19 AM ----------

I m not even sure whether Administration Web Application: is a correct setup for installing Tomcat Smilie
# 2  
Old 04-30-2010
you need to download the tomcat core.
# 3  
Old 04-30-2010
Quote:
Originally Posted by Celtic_Monkey
you need to download the tomcat core.
Thanks ,after going through some of readme files i got to know that .

I have now installed core .

Now whenever i run startup.sh .It says
Quote:
"Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
"
What should be the next step?
How can i determine whether the java installed on my os or not.
Output of java -version
Quote:
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20071124 (Red Hat 4.1.2-42)

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


---------- Post updated at 06:01 AM ---------- Previous update was at 03:48 AM ----------

I have somehow managed to run startup.sh



Quote:
# ./startup.sh
Using CATALINA_BASE: /apache-tomcat-5.5.29
Using CATALINA_HOME: /apache-tomcat-5.5.29
Using CATALINA_TMPDIR: /apache-tomcat-5.5.29/temp
Using JRE_HOME: /usr/java/jre1.6.0_20
Using CLASSPATH: /apache-tomcat-5.5.29/bin/bootstrap.jar
Now how do i access the home page of tomcat?

Last edited by pinga123; 04-30-2010 at 06:51 AM..
# 4  
Old 04-30-2010
MySQL

Code:
 
JAVA_HOME=/usr/lib/jvm/usr/lib/jvm/jre-1.4.2-gcj/   # Java Directory you can change youur java home dir if different
export JAVA_HOME


Add the code service user (root or which user ) profile (.bash_profile) or startup.sh file Smilie
# 5  
Old 04-30-2010
Quote:
Originally Posted by pinga123
Now how do i access the home page of tomcat?
Bu default it runs on port 8080:

Code:
http://hostname:8080

You can always change to to whatever you like by editing

Code:
$CATALINA_HOME/conf/server.xml

Tomcat packages also includes some examples, they are located in

Code:
$CATALINA_HOME/webapps/examples

Finally, it looks like you are launching Tomcat as root which is *highly* discouraged.

Last edited by verdepollo; 04-30-2010 at 11:08 AM..
# 6  
Old 05-05-2010
Quote:
Code:
$CATALINA_HOME/webapps/examples

Finally, it looks like you are launching Tomcat as root which is *highly* discouraged.
As i m new to linux can u please explain how would i avoid this?

Last edited by Yogesh Sawant; 05-05-2010 at 04:29 AM.. Reason: fixed the broken QUOTE tag
# 7  
Old 05-06-2010
Quote:
Originally Posted by pinga123
As i m new to linux can u please explain how would i avoid this?
Under UNIX all ports <1024 are "privileged" ports.
As a non-root user you cannot use ports < 1024. To my knowledge it is best to use "jsvc" (daemon mode). Try this scenario:
Installing Tomcat with commons-daemon (jsvc) - waelchatila.com

Another possibility is to put Tomcat behind an Apache HTTP-server and connect to Tomcat through the ajp13 protocol.

Regards, Qube
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Building an apache-tomcat server

Hi, I have been assigned a task to build a server with these requirements : > has multiple tomcats running under the same apache. > tomcat & jdk has to be binded with apache. > latest openssl with all necesarry "mod" to bind with apache & tomcat. I am fairly new to... (1 Reply)
Discussion started by: anaigini45
1 Replies

2. Red Hat

Apache Tomcat(403 Access Denied)

Good evening, i've got a problem. I fail to enter "Manager App" in Apache Tomcat/9.0.0.M9 on server, it says "403 Access Denied». for example, server address is 192.168.1.4, when I type 'localhost ' in the browser and press "Manager App", then everything is ok. but if I enter 192.168.1.4 and press... (0 Replies)
Discussion started by: v.k.l.chr.by
0 Replies

3. Red Hat

Apache / Tomcat / APR Issues [RHEL]

Evening, I'm posting for help here, because I'll be honest I've reached the end of my tether, hopefully someone can give me some assistance and help me maintain a level of sanity... I maintain a number of webservers on RHEL 5 64Bit (Red Hat Enterprise Linux Server release 5.3 (Tikanga)), the... (2 Replies)
Discussion started by: cpickering
2 Replies

4. Web Development

Apache to Tomcat forwarding not working properly

Hi, I am facing some problem with Apache to Tomcat forwarding. I have Tomcat (6.0.18) behind Apache (2.2). I want to use ‘https' for receiving request from the client. This request, when forwarded by Apache to Tomcat, will use ‘http'. My application's name is ‘abc', which is deployed in... (1 Reply)
Discussion started by: Technext
1 Replies

5. AIX

apache/tomcat compatibility with AIX versions

Hello, Where can i find the information about the compatibility versions of tomcat with AIX? for example, AIX 5.2 supported tomcat versions?? (1 Reply)
Discussion started by: balareddy
1 Replies

6. UNIX for Advanced & Expert Users

Error Tomcat + Apache

Hi, I have a machine with Unixware 7.1.3 and Apache 2 and Tomcat 4.0.3 it's works, but in the archive log from mod_jk.log ajp13_process_callback - write failed : Error ajp13_process_callback - write failed : Error ajp13_process_callback - write failed : Error... (1 Reply)
Discussion started by: By_Jam
1 Replies

7. UNIX for Dummies Questions & Answers

difference between Tomcat apache and weblogic

Hi, can anyone explain the difference in terms of application server, web server concepts? Thanks james (0 Replies)
Discussion started by: james94539
0 Replies

8. SCO

HELP SCO 5.07 and Installing Apache Tomcat 4.01

I need to install Apache TOmcat 4.01 on SCO Openserver 5.07 rather than using the default 4.1.29 version which comes with the original release of 5.07 anyone got any ideas hw to go about this, really struggling having downloaded the source and binariys and getting nowhere fast (0 Replies)
Discussion started by: ccarcher
0 Replies
Login or Register to Ask a Question