The moose likes Linux / UNIX and the fly likes Tomcat on Linux.. installation.. Please help Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply Bookmark "Tomcat on Linux.. installation.. Please help" Watch "Tomcat on Linux.. installation.. Please help" New topic
Author

Tomcat on Linux.. installation.. Please help

Merlin M Koppula
Ranch Hand

Joined: Jan 18, 2002
Posts: 69
I have SuSe Linux 7.2
I downloaded JDK 1.3.1_02 and Tomcat 4.02.
I set the paths accordingly for JAVA_HOME and CATALINA_HOME.
Set CLASSPATH to $JAVA_HOME/lib/tools.jar:$CATALINA_HOME/common/lib/servlet.jar
When I started Tomcat using startup.sh, I do not get any error messages. It gives the usual startup messages. Also, there are no messages loged in $CATALINA_HOME/logs/catalina.log.
Does it mean that Tomcat has started?
However, when I try to connect to http://localhost:8080 I get the error: cannot connect to host 8080.
1. How do I know if Tomcat has started. Which Linux processes does it kick off? What should I see in ps -ef?
2. I installed Tomcat and run startup.sh as my own userid. Do I need to startup as specific user?
3. Am I missing something in CLASSPATH?
Please help..


MM Koppula<br />SCJP2<br />Object Oriented Analysis and Design with UML (IBM)
Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
Hi - If TC started OK, then:
ps ax | less
should show a bunch of java threads running.
I doubt it did if there is nothing in catalina.out.
Note:It's catalina.out not catalina.log.

If it did not start, then edit the startup.sh script and as the first line put in:
set -x
then try the start again. You will get a lot more information.
Regards, Guy
[ February 26, 2002: Message edited by: Guy Allard ]
Donald Nunn
Ranch Hand

Joined: Nov 11, 2000
Posts: 200
Hello, Merlin. Look for the Install Tomcat on Linux. I think there are about 25 postings or so. Go to the bottom and I detailed what I did to get it running. I installed SuSe 7.3 professional running on a server and It works just fine. Did you include your environmental variable in your SuSe config file?
Regards,


<b>Donald Nunn</b><br />Sun Certified Programmer for the Java 2 Platform
Donald Nunn
Ranch Hand

Joined: Nov 11, 2000
Posts: 200
Hello, Merlin.
This is what I did to install Tomcat on SuSe Linux 7.3 Professional. There may be other ways, however, so far it seems to have worked. The steps are as follows:
1. Download jakarta-tomcat-4.0.2.tar.gz to the
directory of your choosing.
2. unzip using the gunzip utility:
gunzip jakarta-tomcat-4.0.2.tar.gz
tar -xvf jakarta-tomcat-4.0.2.tar
3.
x - (for extract) unpack to archive
v - (for verbose) shows all files on screen while packing.
f - (for files) allows you to choose a name for the archive file. This option must always be specified last, that is,
before the name to be given to the
archive.
4. Then move the jakarta directory to the
desired location.
5. To start Tomcat:
TOMCAT_HOME/bin/startup.sh
To shutdown Tomcat:
TOMCAT_HOME/bin/shutdown.sh
6. You may need to specifiy ./ before the
startup and shutdown commands.
Hope this helps,
 
 
subject: Tomcat on Linux.. installation.. Please help
 
Threads others viewed
Problem with tomcat...please advise
problem starting Tomcat.....pleae Advise
javax.servlet.* package
Tomcat installation on Linux.. Please help..
Tomcat installation on Linux.. need help..
IntelliJ Java IDE