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:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 3:44 PM
To: [EMAIL PROTECTED]
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, =20
</FONT></SPAN></DIV>
<DIV><SPAN class=3D324181614-24052002><FONT=20
face=3D"MS Sans Serif"></FONT></SPAN> </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> </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> <!-- =
Normal HTTP=20
--><BR> <Connector=20
className=3D"org.apache.tomcat.service.PoolTcpConnector"><BR> &n=
bsp; =20
<Parameter=20
name=3D"handler"<BR> &nbs=
p; =20
value=3D"org.apache.tomcat.service.http.HttpConnectionHandler"/></FON=
T></SPAN></DIV>
<DIV><SPAN class=3D324181614-24052002><FONT face=3D"MS Sans =
Serif"><FONT=20
color=3D#0000ff> =
<Parameter=20
name=3D"inet"=20
value=3D"199.5.201.51"/><BR>  =
;=20
<Parameter name=3D"port" =20
value=3D"80"/><BR> =20
</Connector></FONT> </FONT></SPAN></DIV>
<DIV><FONT face=3D"MS Sans Serif"></FONT> </DIV>
<DIV>
<DIV><SPAN class=3D324181614-24052002><FONT=20
face=3D"MS Sans Serif"></FONT></SPAN> </DIV>
<DIV><SPAN class=3D324181614-24052002><FONT face=3D"MS Sans Serif">The =
sever.xml for=20
Tomcat 2 like:</FONT></SPAN></DIV>
<DIV><SPAN class=3D324181614-24052002><SPAN =
class=3D324181614-24052002><FONT=20
face=3D"MS Sans Serif" =
color=3D#0000ff> =20
<!-- Normal HTTP =
--><BR> =20
<Connector=20
className=3D"org.apache.tomcat.service.PoolTcpConnector"><BR> &n=
bsp; =20
<Parameter=20
name=3D"handler"<BR> &nbs=
p; =20
value=3D"org.apache.tomcat.service.http.HttpConnectionHandler"/></FON=
T></SPAN></DIV>
<DIV>
<DIV><SPAN class=3D324181614-24052002><FONT face=3D"MS Sans Serif"=20
color=3D#0000ff> =
<Parameter=20
name=3D"inet"=20
value=3D"199.5.201.51"/><BR>  =
;=20
<Parameter name=3D"port" =20
value=3D"80"/><BR> =
</Connector>=20
</FONT></SPAN></DIV></SPAN></DIV>
<DIV><SPAN class=3D324181614-24052002><FONT=20
face=3D"MS Sans Serif"></FONT></SPAN> </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> </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> at=20
java.net.PlainSocketImpl.socketBind(Native=20
Method)<BR> at=20
java.net.PlainSocketImpl.bind(PlainSocketImpl.java:452)<BR> &=
nbsp; =20
at=20
java.net.ServerSocket.<init>(ServerSocket.java:170)<BR>  =
; =20
at=20
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Default<BR=
>ServerSocketFactory.java:103)<BR> &n=
bsp;=20
at=20
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoi<BR=
>nt.java:241)<BR> =20
at=20
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.jav<BR=
>a:188)<BR> =20
at=20
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)<BR>=
=20
at=20
org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)<BR>  =
; =20
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) </FONT></DIV>
<DIV><FONT face=3D"MS Sans Serif"></FONT> </DIV>
<DIV><FONT face=3D"MS Sans Serif"></FONT> </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> </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> </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> </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
<[EMAIL PROTECTED]><BR>Subject: RE: Running Tomcat 3.2.3 (or =
4.0) on a=20
multi-homed machine.<BR>Date: Thu, 25 Oct 2001 10:17:43 =
-0400<BR><BR>On=20
Tomcat 3.2.3, try:<BR><BR> =20
<Connector<BR>className=3D"org.apache.tomcat.service.PoolTcpConnector=
"><BR> &nb=
sp;=20
...<BR> &nbs=
p;=20
<Parameter=20
name=3D"inet"<BR> &=
nbsp; =20
value=3D"123.123.123.123"/><BR> &n=
bsp; =20
...<BR> =
</Connector><BR><BR>On=20
Tomcat 3.3 (and I believe 4.x) add:<BR><BR> =20
address=3D"123.123.123.123"<BR><BR>to the connector. For Tomcat =
3.3, that=20
would be:<BR><BR> <Http10Connector port=3D"8080"=20
address=3D"123.123.123.123" ...<BR>/><BR><BR>Hope that=20
helps.<BR><BR>Cheers,<BR>Larry<BR><BR><BR><BR>-----Original=20
Message-----<BR>From: Prasanna Uppaladadium=20
[mailto:[EMAIL PROTECTED]]<BR>Sent: Wednesday, October 24, 2001 3:44 =
PM<BR>To:=20
[EMAIL PROTECTED]<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> </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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>