Solved

Help me Instal Tomcat on Linux

Posted on 2002-07-16
7
245 Views
Last Modified: 2013-12-15
I have just installed linux mandrake 8.2...first time every using linux!  Ok so i need to setup tomcat.  I have downloaded the software, unpacked it and moved it to a folder in my home directory called App.  By the way, where should i be installing software too, which folder?  

According to this article, http://www.onjava.com/pub/a/onjava/2001/03/29/tomcat.html?page=2 , the next thing i need to do is setup JAVA_HOME and TOMCAT_HOME.  I have typed in the commands:
TOMCAT_HOME=/home/username/App/tomcat4 export TOMCAT_HOME
&
JAVA_HOME=/home/username/App/JBuilder/jdk1.3.1

When i type these both in i get no response but a new line...is that normal?  Ok so thinking everything is done i went to the bin directory in tomcat.  Using the shell i typed startup.sh...but it responds:
  bash: startup.sh: command not found

So thats where i am at...Can you help?

Thanks
0
Comment
Question by:menreeq
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 15

Expert Comment

by:samri
ID: 7161766
Menreeq,


There is an open question on similar scenario, except the platform is Win2K.
http://www.experts-exchange.com/apache/Q_20324729.html

Or you can browse the PAQ Q by Cleare and solution by: cheekycj
http://www.experts-exchange.com/apache/Q_20281535.html

Some interesting link;
http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-apache-howto.html

I hope this could be a good start.
0
 

Author Comment

by:menreeq
ID: 7163677
Samri, I am confused, from the links your provided it gives me the impression that I need to install tomcat along with apache, is this true?  On my windows machine I only installed apache and I was able to serve my Jsp pages.  

I think my initial question is more related to Linux then to apache.  Having just started out on Linux I thinking I am doing something wrong with my installation that has nothing to do with apache but has to do with the norms of installing an application on Linux.  Apache comes with an install doc but after following each instruction I am still unable to install/run the application....


0
 
LVL 15

Accepted Solution

by:
samri earned 100 total points
ID: 7163853
Menreq,

Apology on the confusion.

You are right.  Apache itself should be able to serve jsp pages. I think you are doing fine with your installation.

Back to your problem (I might have misread it!), try doing;

./startup.sh

Remember that you had a "./" in front.  This would run the startup in the current directory.  By running "startup.sh" alone, the OS would then try to search the startup.sh in your PATH, which would fail.

give it a shot, and feedback.

cheers.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:menreeq
ID: 7166189
Samri..."./" worked...that all it was  Thanks so much.  Can i ask you one last thing?  In order to run tomcat i have to go the shell and type export JAVA_HOME path...what do i need to do so that i dont have to enter this each and everytime i restart my computer...i read that i have to place that line in the profile file...but which one and do i just copy that exact line anywhere in the doc?

Thanks for the help
0
 
LVL 15

Expert Comment

by:samri
ID: 7166227
Menreeq,

you can add that environment  variable JAVA_HOME="/whatever/path" in your login profile (.login or .profile), or you may add it to the system profile.  Look for the file profile in folder /etc/.  There should some content already there.

cheers.
0
 

Author Comment

by:menreeq
ID: 7166236
great...but i find it a tad strange that there are so many different locations for me to set this variable, perhaps it will make more sense once i learn more about linux.  Thanks so much for the help!
0
 
LVL 15

Expert Comment

by:samri
ID: 7166627
Menreeq,

Kinda confusing.  Apology.  I should have be more specific.  Basicall, the .login or .profile in you home directory will be your personall env (or whatever) setting you set ,whereeas the one in /etc/ will be system wide.  Meaning that is there is one line "set SOMEVAR=some_value" in /etc/profile, but you had SOMEVAR=other-val in your personal profile, when you login, or your processes would be other-val as the value, whereas other user would be using some_valus as the.

I hope this could be useful.  And yes, it is definitely a great time to start to get yourself comfortable with Unix/Linux.

cheers.
Samri
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question