tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhu John-Y17379 <John.J....@motorola.com>
Subject 2 tomcat 3.2.3 instances which bind 2 IP address
Date Fri, 24 May 2002 14:39:28 GMT
Hello, 
I installed 2 tomcat 3.2.3 instances which bind 2 IP address by following the Larry's instruction.
The sever.xml for Tomcat 1 like:
		<!-- Normal HTTP -->
		<Connector className="org.apache.tomcat.service.PoolTcpConnector">
		<Parameter name="handler"
		value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
		<Parameter name="inet" value="199.5.201.51"/>
		<Parameter name="port" value="80"/>
		</Connector> 
The sever.xml for Tomcat 2 like:
		<!-- Normal HTTP -->
		<Connector className="org.apache.tomcat.service.PoolTcpConnector">
		<Parameter name="handler"
		value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
		<Parameter name="inet" value="199.5.201.51"/>
		<Parameter name="port" value="80"/>
		</Connector> 
when I start the server, I get the fatal exception as shown below.
		2002-05-24 10:18:51 - ContextManager: Adding context Ctx( /manage )
		2002-05-24 10:18:51 - ContextManager: Adding context Ctx( /mc_download )
		2002-05-24 10:18:51 - ContextManager: Adding context Ctx( /mot_download )
		2002-05-24 10:18:51 - ContextManager: Adding context Ctx( /themes )
		2002-05-24 10:18:51 - ContextManager: Adding context Ctx( /prv )
		XXXXXXXXXXXXXXXXXXXXX Inside Initlization **************************
		XXXXXXXXXXXXXXXXXXXXX Inside Initlization **************************
		XXXXXXXXXXXXXXXXXXXXX Inside Initlization **************************
		XXXXXXXXXXXXXXXXXXXXX Inside Initlization **************************
		FATAL:java.net.BindException: Permission denied
		java.net.BindException: Permission denied
		at java.net.PlainSocketImpl.socketBind(Native Method)
		at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:452)
		at java.net.ServerSocket.<init>(ServerSocket.java:170)
		at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Default
		ServerSocketFactory.java:103)
		at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoi
		nt.java:241)
		at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.jav
		a:188)
		at org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
		at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
		at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) 

Can some one tell me how to solve the problems?
Thanks,
John 
---------------------------------------------------------------------------------------------------------------------
From: Larry Isaacs 
Subject: RE: Running Tomcat 3.2.3 (or 4.0) on a multi-homed machine.
Date: Thu, 25 Oct 2001 10:17:43 -0400
On Tomcat 3.2.3, try:
<Connector
className="org.apache.tomcat.service.PoolTcpConnector">
...
<Parameter name="inet"
value="123.123.123.123"/>
...
</Connector>
On Tomcat 3.3 (and I believe 4.x) add:
address="123.123.123.123"
to the connector. For Tomcat 3.3, that would be:
<Http10Connector port="8080" address="123.123.123.123" ...
/>
Hope that helps.
Cheers,
Larry


-----Original Message-----
From: Prasanna Uppaladadium [mailto:prasanna@kirusa.com]
Sent: Wednesday, October 24, 2001 3:44 PM
To: tomcat-user@jakarta.apache.org
Subject: Running Tomcat 3.2.3 (or 4.0) on a multi-homed machine.

Hello.
Is there a way to run Tomcat 3.2.3 or 4.0 so that the server will
listen
on a specific host interface (IP address)?
For example, my machine has two IP addresses (123.123.123.123 and
111.111.111.111). I would like to run two instances of Tomcat on
port 80
each one listening on one of the interfaces respectively. I
specifically
don't want to use Virtual Hosting.
The server.xml file on both versions of Tomcat seem to take a port
parameter but not a host parameter.
One way to solve this of course is to use Apache as a front for
Tomcat.
But I would like to use Tomcat as a standard alone web server if at
all
this is possible.
Thanks for any help.
Prasanna.



------_=_NextPart_001_01C2032E.AC69A9A0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<TITLE>Blank</TITLE>
<STYLE><!-- body { font-family: Arial, Helvetica; font-size: 10pt; =
color: #000000; margin-top: 25px; margin-left: 25px; } P.msoNormal, =
LI.msoNormal { font-family: Helvetica, "Times New Roman";
font-size: 10pt;
margin-top: 0px;
margin-left: 0px;
color: "#ffffcc";
}
-->
</STYLE>
<META content=3D"MSHTML 5.50.4725.2100" name=3DGENERATOR></HEAD>
<BODY background=3Dcid:324181614@24052002-2e0b>
<DIV><SPAN class=3D324181614-24052002><FONT face=3D"MS Sans =
Serif">Hello,&nbsp;=20
</FONT></SPAN></DIV>
<DIV><SPAN class=3D324181614-24052002><FONT=20
face=3D"MS Sans Serif"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D324181614-24052002><FONT face=3D"MS Sans Serif">I =
installed 2=20
tomcat 3.2.3 instances which bind 2 IP address by following the Larry's =
instruction. </FONT></SPAN></DIV>
<DIV><SPAN class=3D324181614-24052002><FONT=20
face=3D"MS Sans Serif"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D324181614-24052002><FONT face=3D"MS Sans Serif">The =
sever.xml for=20
Tomcat 1 like:</FONT></SPAN></DIV>
<DIV><SPAN class=3D324181614-24052002><FONT face=3D"MS Sans Serif"=20
color=3D#0000ff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;!-- =
Normal HTTP=20
--&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;Connector=20
className=3D"org.apache.tomcat.service.PoolTcpConnector"&gt;<BR>&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;Parameter=20
name=3D"handler"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
value=3D"org.apache.tomcat.service.http.HttpConnectionHandler"/&gt;</FON=
T></SPAN></DIV>
<DIV><SPAN class=3D324181614-24052002><FONT face=3D"MS Sans =
Serif"><FONT=20
color=3D#0000ff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
=
&lt;Parameter=20
name=3D"inet"=20
value=3D"199.5.201.51"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;=20
&lt;Parameter name=3D"port"&nbsp;&nbsp;=20
value=3D"80"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/Connector&gt;</FONT> </FONT></SPAN></DIV>
<DIV><FONT face=3D"MS Sans Serif"></FONT>&nbsp;</DIV>
<DIV>
<DIV><SPAN class=3D324181614-24052002><FONT=20
face=3D"MS Sans Serif"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D324181614-24052002><FONT face=3D"MS Sans Serif">The =
sever.xml for=20
Tomcat&nbsp;2 like:</FONT></SPAN></DIV>
<DIV><SPAN class=3D324181614-24052002><SPAN =
class=3D324181614-24052002><FONT=20
face=3D"MS Sans Serif" =
color=3D#0000ff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;!-- Normal HTTP =
--&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;Connector=20
className=3D"org.apache.tomcat.service.PoolTcpConnector"&gt;<BR>&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;Parameter=20
name=3D"handler"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
value=3D"org.apache.tomcat.service.http.HttpConnectionHandler"/&gt;</FON=
T></SPAN></DIV>
<DIV>
<DIV><SPAN class=3D324181614-24052002><FONT face=3D"MS Sans Serif"=20
color=3D#0000ff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
=
&lt;Parameter=20
name=3D"inet"=20
value=3D"199.5.201.51"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;=20
&lt;Parameter name=3D"port"&nbsp;&nbsp;=20
value=3D"80"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
=
&lt;/Connector&gt;=20
</FONT></SPAN></DIV></SPAN></DIV>
<DIV><SPAN class=3D324181614-24052002><FONT=20
face=3D"MS Sans Serif"></FONT></SPAN>&nbsp;</DIV></DIV>
<DIV><SPAN class=3D324181614-24052002><FONT face=3D"MS Sans Serif">when
=
I start the=20
server, I get the fatal exception as shown below.</FONT></SPAN></DIV>
<DIV><FONT face=3D"MS Sans Serif"></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"MS Sans Serif" color=3D#0000ff>2002-05-24 10:18:51 - =
ContextManager: Adding context Ctx( /manage )<BR>2002-05-24 10:18:51 -=20
ContextManager: Adding context Ctx( /mc_download )<BR>2002-05-24 =
10:18:51 -=20
ContextManager: Adding context Ctx( /mot_download )<BR>2002-05-24 =
10:18:51 -=20
ContextManager: Adding context Ctx( /themes )<BR>2002-05-24 10:18:51 -=20
ContextManager: Adding context Ctx( /prv )<BR>XXXXXXXXXXXXXXXXXXXXX =
Inside=20
Initlization **************************<BR>XXXXXXXXXXXXXXXXXXXXX Inside =
Initlization **************************<BR>XXXXXXXXXXXXXXXXXXXXX Inside =
Initlization **************************<BR>XXXXXXXXXXXXXXXXXXXXX Inside =
Initlization =
**************************<BR>FATAL:java.net.BindException:=20
Permission denied<BR>java.net.BindException: Permission=20
denied<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at=20
java.net.PlainSocketImpl.socketBind(Native=20
Method)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at=20
java.net.PlainSocketImpl.bind(PlainSocketImpl.java:452)<BR>&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
java.net.ServerSocket.&lt;init&gt;(ServerSocket.java:170)<BR>&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Default<BR=
>ServerSocketFactory.java:103)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;=20
at=20
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoi<BR=
>nt.java:241)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.jav<BR=
>a:188)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)<BR>=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)<BR>&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) </FONT></DIV>
<DIV><FONT face=3D"MS Sans Serif"></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"MS Sans Serif"></FONT>&nbsp;</DIV>
<DIV><SPAN class=3D324181614-24052002><FONT face=3D"MS Sans Serif">Can =
some one tell=20
me how to solve the problems?</FONT></SPAN></DIV>
<DIV><SPAN class=3D324181614-24052002><FONT=20
face=3D"MS Sans Serif"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D324181614-24052002><FONT=20
face=3D"MS Sans Serif">Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=3D324181614-24052002><FONT=20
face=3D"MS Sans Serif"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D324181614-24052002><FONT face=3D"MS Sans Serif">
<P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><FONT face=3D"MS Sans =
Serif">John=20
</FONT></P></FONT></SPAN></DIV>
<DIV><FONT face=3D"MS Sans Serif"></FONT>&nbsp;</DIV>
<DIV><SPAN class=3D324181614-24052002><FONT=20
face=3D"MS Sans =
Serif">-----------------------------------------------------------------=
----------------------------------------------------</FONT></SPAN></DIV>=
<DIV><FONT face=3D"MS Sans Serif">From: Larry Isaacs=20
<LARRY.ISAACS@SAS.COM><BR>Subject:&nbsp; RE: Running Tomcat 3.2.3 (or =
4.0) on a=20
multi-homed machine.<BR>Date:&nbsp; Thu, 25 Oct 2001 10:17:43 =
-0400<BR><BR>On=20
Tomcat 3.2.3, try:<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;Connector<BR>className=3D"org.apache.tomcat.service.PoolTcpConnector=
"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
...<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
&lt;Parameter=20
name=3D"inet"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
value=3D"123.123.123.123"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
...<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&lt;/Connector&gt;<BR><BR>On=20
Tomcat 3.3 (and I believe 4.x) add:<BR><BR>&nbsp;&nbsp;&nbsp;=20
address=3D"123.123.123.123"<BR><BR>to the connector.&nbsp; For Tomcat =
3.3, that=20
would be:<BR><BR>&nbsp;&nbsp;&nbsp; &lt;Http10Connector port=3D"8080"=20
address=3D"123.123.123.123" ...<BR>/&gt;<BR><BR>Hope that=20
helps.<BR><BR>Cheers,<BR>Larry<BR><BR><BR><BR>-----Original=20
Message-----<BR>From: Prasanna Uppaladadium=20
[mailto:prasanna@kirusa.com]<BR>Sent: Wednesday, October 24, 2001 3:44 =
PM<BR>To:=20
tomcat-user@jakarta.apache.org<BR>Subject: Running Tomcat 3.2.3 (or =
4.0) on a=20
multi-homed machine.<BR><BR><BR>Hello.<BR><BR>Is there a way
to run =
Tomcat 3.2.3=20
or 4.0 so that the server will<BR>listen<BR>on a specific host =
interface (IP=20
address)?<BR><BR>For example, my machine has two IP addresses =
(123.123.123.123=20
and<BR>111.111.111.111). I would like to run two instances of Tomcat =
on<BR>port=20
80<BR>each one listening on one of the interfaces respectively.=20
I<BR>specifically<BR>don't want to use Virtual Hosting.<BR><BR>The
=
server.xml=20
file on both versions of Tomcat seem to take a port<BR>parameter but =
not a host=20
parameter.<BR><BR>One way to solve this of course is to use Apache as a =
front=20
for<BR>Tomcat.<BR>But I would like to use Tomcat as a standard alone =
web server=20
if at<BR>all<BR>this is possible.<BR><BR>Thanks for any=20
help.<BR>Prasanna.<BR><BR></DIV></FONT>
<P><FONT face=3D"MS Sans Serif"></FONT>&nbsp;</P></BODY></HTML>
------_=_NextPart_001_01C2032E.AC69A9A0--
------_=_NextPart_000_01C2032E.AC69A9A0
Content-Type: image/gif;
name="Blank Bkgrd.gif"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="Blank Bkgrd.gif"
Content-ID: <324181614@24052002-2e0b>
R0lGODlhLQAtAID/AP////f39ywAAAAALQAtAEACcAxup8vtvxKQsFon6d02898pGkgiYoCm6sq2
7iqWcmzOsmeXeA7uPJd5CYdD2g9oPF58ygqz+XhCG9JpJGmlYrPXGlfr/Yo/VW45e7amp2tou/lW
xo/zX513z+Vt+1n/tiX2pxP4NUhy2FM4xtjIUQAAOw==
------_=_NextPart_000_01C2032E.AC69A9A0--

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message