Click to See Complete Forum and Search --> : Tomcat is not runing


sumitava
07-01-2008, 05:40 AM
Hi I have install tomcat. But it is not running. After it showing "INFO: Server startup in 1000 ms" from command prompt using "netstat" it is not showing the port is listening.
And from internet explorer also it is not running. so please help me..:confused:

\\.\
07-01-2008, 08:37 AM
try{
system reboot
}catch(e){
log any output errors
}finally{
goto http://tomcat.apache.org/
}

chazzy
07-01-2008, 03:33 PM
well, what port did you configure it for? default tomcat runs on 8080.

sumitava
07-02-2008, 05:07 AM
Hi I solve the problem that is computer port no does not mapped with localhost. When i put the computer ip address instead of localhost its running but can u tell me how to map with IP address with localhost

\\.\
07-02-2008, 05:55 PM
Find a file called HOSTS which will be somewhere in the Windows folder.

When you find it you should right click on it and check that it is not read only, if it is, uncheck the option and click apply, open the HOSTS file in notepad and add a line

127.0.0.1 localhost

Then save the amended file, change the file back to read only and then try using localhost.

BTW the space between the IP address and localhost is a tab space.

chazzy
07-02-2008, 07:53 PM
Hi I solve the problem that is computer port no does not mapped with localhost. When i put the computer ip address instead of localhost its running but can u tell me how to map with IP address with localhost

IF you're on a *nix box (which you seemed to indicate by mentioning netstat) you might want to try looking at either the ifconfig command, or seeing if server.xml is configured properly for both IP and name.

\\.\
07-03-2008, 04:08 AM
chazzy, netstat is on windows platform also, it is not just a linux thing ;)

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\****>netstat /?

Displays protocol statistics and current TCP/IP network connections.

NETSTAT [-a] [-b] [-e] [-n] [-o] [-p proto] [-r] [-s] [-v] [interval]

-a Displays all connections and listening ports.
-b Displays the executable involved in creating each connection or
listening port. In some cases well-known executables host
multiple independent components, and in these cases the
sequence of components involved in creating the connection
or listening port is displayed. In this case the executable
name is in [] at the bottom, on top is the component it called,
and so forth until TCP/IP was reached. Note that this option
can be time-consuming and will fail unless you have sufficient
permissions.
-e Displays Ethernet statistics. This may be combined with the -s
option.
-n Displays addresses and port numbers in numerical form.
-o Displays the owning process ID associated with each connection.
-p proto Shows connections for the protocol specified by proto; proto
may be any of: TCP, UDP, TCPv6, or UDPv6. If used with the -s
option to display per-protocol statistics, proto may be any of:
IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, or UDPv6.
-r Displays the routing table.
-s Displays per-protocol statistics. By default, statistics are
shown for IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, and UDPv6;
the -p option may be used to specify a subset of the default.
-v When used in conjunction with -b, will display sequence of
components involved in creating the connection or listening
port for all executables.
interval Redisplays selected statistics, pausing interval seconds
between each display. Press CTRL+C to stop redisplaying
statistics. If omitted, netstat will print the current
configuration information once.

C:\Documents and Settings\****>