LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 12-21-2006, 10:45 AM   #1
johnsanty
Member
 
Registered: Apr 2006
Posts: 49

Rep: Reputation: 15
Tomcat does not work. I got : The page cannot be displayed


Hi All,

I recently installed TomCat apache-tomcat-5.5.20 and jre-6-windows-i586.exe as required. I also set up the following environment variables:

Path=... C:\java\j2sdk1.4.2_06\bin
JAVA_HOME=C:\Program Files\Java\j2sdk1.4.2_06


Then, I started the Tomcat as shown below:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\apache-tomcat-5.5.20\bin>shutdown.bat
Using CATALINA_BASE: C:\Program Files\apache-tomcat-5.5.20
Using CATALINA_HOME: C:\Program Files\apache-tomcat-5.5.20
Using CATALINA_TMPDIR: C:\Program Files\apache-tomcat-5.5.20\temp
Using JRE_HOME: C:\Program Files\Java\j2sdk1.4.2_06
This release of Apache Tomcat was packaged to run on J2SE 5.0
or later. It can be run on earlier JVMs by downloading and
installing a compatibility package from the Apache Tomcat
binary download page.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

So, I tried to access the following:
http://<my_computer_name>:8080/

Unfortunately, I got "The page cannot be displayed". Is there anything else that I should configure? By the way, i followed the instrauction below on on how to start up the tomcat taken from RUNNING.txt. Anyhelp would be greatly appreciated. Thanks in advance...

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Id: RUNNING.txt 354430 2005-12-06 13:44:26Z yoavs $

============================================
Running The Tomcat 5.5 Servlet/JSP Container
============================================

Out of the box, Tomcat 5.5 requires the Java 2 Standard Edition Runtime
Environment (JRE) version 5.0 or later. However, you can also run Tomcat
5.5 on earlier versions of the JRE, as detailed below.

=============================
Running With JRE 5.0 Or Later
=============================

(1) Download and Install the J2SE Runtime Environment (JRE)

(1.1) Download the Java 2 Standard Edition Runtime Environment (JRE),
release version 5.0 or later, from http://java.sun.com/j2se.

(1.2) Install the JRE according to the instructions included with the
release.

(1.3) Set an environment variable named JAVA_HOME to the pathname of
the directory into which you installed the JRE, e.g. c:\j2sdk5.0
or /usr/local/java/j2sdk5.0.


(2) Download and Install the Tomcat Binary Distribution

NOTE: As an alternative to downloading a binary distribution, you can create
your own from the Tomcat source repository, as described in "BUILDING.txt".
If you do this, the value to use for "${catalina.home}" will be the "dist"
subdirectory of your source distribution.

(2.1) Download a binary distribution of Tomcat from:

http://tomcat.apache.org

(2.2) Unpack the binary distribution into a convenient location so that the
distribution resides in its own directory (conventionally named
"apache-tomcat-[version]"). For the purposes of the remainder of this document,
the symbolic name "$CATALINA_HOME" is used to refer to the full
pathname of the release directory.


(3) Start Up Tomcat

(3.1) Tomcat can be started by executing the following commands:

$CATALINA_HOME\bin\startup.bat (Windows)

$CATALINA_HOME/bin/startup.sh (Unix)

(3.2) After startup, the default web applications included with Tomcat will be
available by visiting:

http://localhost:8080/

(3.3) Further information about configuring and running Tomcat can be found in
the documentation included here, as well as on the Tomcat web site:

http://tomcat.apache.org


(4) Shut Down Tomcat

(4.1) Tomcat can be shut down by executing the following command:

$CATALINA_HOME\bin\shutdown (Windows)

$CATALINA_HOME/bin/shutdown.sh (Unix)



====================================
Running Tomcat With J2SE Version 1.4
====================================

(1) Obtain the compat package:

(1.1) Download the compat package from the binary download site:
http://tomcat.apache.org

* Or build this package yourself from the source code: see
"BUILDING.txt" in this directory.

(2) Unzip the package in $CATALINA_HOME. It will place the XML
parser APIs and Xerces implementation in the common/endorsed
directory, and the JMX API jar (jmx.jar from Sun) in the bin
directory.

(3) Follow the same directions for starting and stopping the
server as if you were using J2SE 5.0.
 
Old 12-22-2006, 09:46 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Then, I started the Tomcat as shown below:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\apache-tomcat-5.5.20\bin>shutdown.bat
Running this command will stop tomcat (if it's running). So try
Code:
C:\Program Files\apache-tomcat-5.5.20\bin>startup.bat
instead.
 
Old 12-23-2006, 08:32 AM   #3
johnsanty
Member
 
Registered: Apr 2006
Posts: 49

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory
Running this command will stop tomcat (if it's running). So try
Code:
C:\Program Files\apache-tomcat-5.5.20\bin>startup.bat
instead.
Hi bathory,

Thanks for the reply...Of course i tried to startup the tomcat before launhing it...but it still doesnt work. Is there anything I need to configure beforehand? Thanks again for your prompt reply...
 
Old 12-23-2006, 01:33 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Try http://localhost:8080/
 
Old 12-23-2006, 01:49 PM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Also, you installed the JRE 6 beta but left your path and JAVA_HOME pointing to an old JRE 1.4 install. You should also either modify your path and JAVA_HOME to point to the new JRE or install the compatibility package that Tomcat mentions in its output.

Quote:
Originally Posted by johnsanty
I recently installed TomCat apache-tomcat-5.5.20 and jre-6-windows-i586.exe as required. I also set up the following environment variables:

Path=... C:\java\j2sdk1.4.2_06\bin
JAVA_HOME=C:\Program Files\Java\j2sdk1.4.2_06


Then, I started the Tomcat as shown below:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\apache-tomcat-5.5.20\bin>shutdown.bat
Using CATALINA_BASE: C:\Program Files\apache-tomcat-5.5.20
Using CATALINA_HOME: C:\Program Files\apache-tomcat-5.5.20
Using CATALINA_TMPDIR: C:\Program Files\apache-tomcat-5.5.20\temp
Using JRE_HOME: C:\Program Files\Java\j2sdk1.4.2_06
This release of Apache Tomcat was packaged to run on J2SE 5.0
or later. It can be run on earlier JVMs by downloading and
installing a compatibility package from the Apache Tomcat
binary download page.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CUPS page cannot be displayed Aolivares Linux - Software 3 03-03-2006 09:54 PM
tomcat on suse 9.3 - admin tool does not work; it shows a blank page nicolasdiogo Linux - Networking 3 06-14-2005 02:15 AM
Tomcat start page in SuSE 9.1 Pro [GOD]Anck SUSE / openSUSE 1 01-14-2005 04:58 AM
how to get apache and tomcat work together chinaundead Programming 7 12-06-2004 10:33 PM
Getting MySQL to work with Tomcat Travis86 Linux - Software 3 07-14-2004 11:18 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 03:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration