Win a copy of Spark in Action this week in the Open Source Projects forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Tomcat on Linux.. installation.. Please help

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
Ranch Hand
Posts: 776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
Donald Nunn
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
I'd appreciate it if you pronounced my name correctly. Pinhead, with a silent "H". Petite ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic