tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefán F. Stefánsson <>
Subject RE: Address In use
Date Fri, 24 Nov 2000 00:30:59 GMT
in the {TOMCAT_HOME}/conf/ directory you will find a file called
server.xml.  If you open this file you will see lots of XML tags and a
few of them (towards the bottom) define a Connector.  Inside this
Connector XML tag there are another tags called Parameter.  One of these
parameter tags has the name "port" and a value (which is probably
"8080").  This is the default Connector, the one that listens for the
incoming HTTP requests.  You can change that value to something else and
then you will have to access your web pages through the url
"http://localhost:{the_port_number_you_chose}/" (as I said before, the
default is on port 8080 so the url would look like
"http://localhost:8080/").  If you are running Windows then you can
change this port value to 80 which is the standard http port.  What you
gain from doing that is that you can access your pages without
explicitly specifying the port number (so... if you use port 80 you can
access your pages with the url "http://localhost/").  Linux does not
allow any user except the root to use port 80 and I suppose other types
of Unix OS also do that (although I don't know).

Regards, Stefan.

|Date: Thu, 23 Nov 2000 14:20:06 -0500
|From: William Colls <>
|Subject: Address In use
|I am trying to get tomcat up on a linux (2.2.12-20 kernel, RH6.1
|distribution) and get the following messages when it starts:.
| Address already in use
| Address already in use
|        at Code)
|        at<init>(Compiled Code)
|        at<init>(Compiled Code)
|        at
|        at
|        at org.apache.tomcat.service.SimpleTcpConnector.start(Compiled
|        at org.apache.tomcat.core.ContextManager.start(Compiled Code)
|        at org.apache.tomcat.startup.Tomcat.execute(Compiled Code)
|        at org.apache.tomcat.startup.Tomcat.main(Compiled Code)
|[root@prosyssrv tomcat]# Address already
|in use
|        at<init>(Compiled Code)
|        at
|        at
|org.apache.tomcat.service.SimpleTcpEndpoint.startEndpoint(Compiled Co
|What I have not been able to find is what address it is trying to use,
|or where to change it. Any pointers will be most welcome.
|/* ============================================================== */
|William E. Colls                                   Tel 613 591 0079
|PROComputer Systems                                Fax 613 591 3924
|67 Willow Glen Dr                       
|Kanata  Ontario  Canada                       PEG Member 1998051404
|      Specialists in Progress Software development since 1985

 p |Carlos E. Araya
 - |WebCT Project Coordinator - New Media Specialist
 G |
email	: (prefered)		| Phone (408) 924 2859
Web	:	| fax 	(408) 924 2439 (under construction)

finger for PGP key
LIFE: You can't control the length, but you can control the depth and
width. -- From Randal Schwartz picture archive

``Paradoxically, a refusal to `put a monetary value on life' means that
life is often undervalued.'' -- Artificial Intelligence: A Modern

View raw message