You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by dOE <do...@gmail.com> on 2008/08/20 17:10:39 UTC
Dual-Independent Tomcat servers, on Single Win32 host sharing IIS server.
Hello,
Can anyone guide me in the right direction with my issue.
Windows Server 2003, IIS 6.0, tomcat-connector 1.2.8, and Tomcat 5.0.16.
I have been tasked to do the following.
To get two separate Tomcat server instances running on the same host
independent of each other and working off of the same IIS server
(compliments of the Tomcat-Connector, and ISAPI-Filter).
Getting the two servers up and running together is the easy part, and has
already been achieved.
They both have unique ports, and IP addresses from each other.. MY issue is
the isapi filter.
The "workers.properties.minimal" uses 8009 for "ajp13", and 'localhost'
worker.list=ajp13w
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009
There has to be some information out there that will guide you to create a
custom "workers.properties.minimal" file. One of my two Tomcat servers has
port 8009 assigned, and the other is using port 8109. I am assuming that I
was correct on thinking this port needed to be unique from the other Tomcat
server on the host?
I tried to do the following, and it did not work.
worker.list=ajp13w
worker.ajp13w.type=ajp13
worker.ajp13w.host=192.168.0.1
worker.ajp13w.port=8009
worker.list=ajp13w2
worker.ajp13w2.type=ajp13
worker.ajp13w2.host=192.168.0.2
worker.ajp13w2.port=8109
..and then in my "uriworker.properties" file
/servlets-examples/*=ajp13w
/jsp-examples/*=ajp13w2
I thought this would work, but clearly I am looking at this from the wrong
angle.
Can someone please guide me to where I can get the information to either
re-write custom "workers.properties.minimal" and "uriworker.properties"
files.. or what is it that I am doing wrong here.
-thx
*d03*
Re: Dual-Independent Tomcat servers, on Single Win32 host sharing IIS server.
Posted by dOE <do...@gmail.com>.
The interface for this host has multiple IP's bound to it. The IP's I
posted in this thread are the addresses to the sites in IIS. Doesn't the
worker have to pointed to the site (via IP) its intended for?
The ports (server.xml) for both Tomcat instances are unique 8009 and 8109.
On Wed, Aug 20, 2008 at 12:18 PM, Johnny Kewl <jo...@kewlstuff.co.za> wrote:
>
> ----- Original Message ----- From: "dOE" <do...@gmail.com>
> To: "Tomcat User-List" <us...@tomcat.apache.org>
> Sent: Wednesday, August 20, 2008 5:10 PM
> Subject: Dual-Independent Tomcat servers, on Single Win32 host sharing IIS
> server.
>
>
> Hello,
>>
>> Can anyone guide me in the right direction with my issue.
>>
>> Windows Server 2003, IIS 6.0, tomcat-connector 1.2.8, and Tomcat 5.0.16.
>>
>> I have been tasked to do the following.
>> To get two separate Tomcat server instances running on the same host
>> independent of each other and working off of the same IIS server
>> (compliments of the Tomcat-Connector, and ISAPI-Filter).
>>
>> Getting the two servers up and running together is the easy part, and has
>> already been achieved.
>> They both have unique ports, and IP addresses from each other.. MY issue
>> is
>> the isapi filter.
>>
>> The "workers.properties.minimal" uses 8009 for "ajp13", and 'localhost'
>> worker.list=ajp13w
>> worker.ajp13w.type=ajp13
>> worker.ajp13w.host=localhost
>> worker.ajp13w.port=8009
>>
>> There has to be some information out there that will guide you to create a
>> custom "workers.properties.minimal" file. One of my two Tomcat servers has
>> port 8009 assigned, and the other is using port 8109. I am assuming that
>> I
>> was correct on thinking this port needed to be unique from the other
>> Tomcat
>> server on the host?
>>
>> I tried to do the following, and it did not work.
>>
>> worker.list=ajp13w
>>
>
> OUT
>
> worker.list=ajp13w,ajp13w2
>
> worker.ajp13w.type=ajp13
>> worker.ajp13w.host=192.168.0.1
>>
>
> OUT
>
> worker.ajp13w.host=localhost
>
> worker.ajp13w.port=8009
>>
>> worker.list=ajp13w2
>>
>
> OUT
>
> worker.ajp13w2.type=ajp13
>> worker.ajp13w2.host=192.168.0.2
>>
>
> OUT
>
> worker.ajp13w.host=localhost
>
> worker.ajp13w2.port=8109
>>
>> ..and then in my "uriworker.properties" file
>>
>> /servlets-examples/*=ajp13w
>> /jsp-examples/*=ajp13w2
>>
>> I thought this would work, but clearly I am looking at this from the wrong
>> angle.
>>
>
> The systems are both on localhost... you said same machine... it can only
> have one IP
> Thats ok as long as you rightly said... the "ports" are different...
>
> If you using the machine in an org with no DNS... then the name of the
> machine will also work
>
> worker.ajp13w.host=MyMachineName
>
> But assigning actual IP's can be tricky especially if you have a DHCP
> server running... something that assigned IP's to machines... most MS
> systems do..
>
> I think thats it... with a little play
> ---------------------------------------------------------------------------
> HARBOR : http://www.kewlstuff.co.za/index.htm
> The most powerful application server on earth.
> The only real POJO Application Server.
> See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
> ---------------------------------------------------------------------------
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Re: Dual-Independent Tomcat servers, on Single Win32 host sharing
IIS server.
Posted by Mark Thomas <ma...@apache.org>.
Johnny Kewl wrote:
> The systems are both on localhost... you said same machine... it can
> only have one IP
<nit-picking>
Not true.
The most obvious case is a machine with multiple NICs.
You can also assign multiple IP addresses to the same physical interface.
You don't see it often but you would use it, for example, during failover
with some clustering technologies so a live node will receive the traffic
from a dead node.
</nit-picking>
Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Dual-Independent Tomcat servers, on Single Win32 host sharing IIS server.
Posted by Johnny Kewl <jo...@kewlstuff.co.za>.
----- Original Message -----
From: "dOE" <do...@gmail.com>
To: "Tomcat User-List" <us...@tomcat.apache.org>
Sent: Wednesday, August 20, 2008 5:10 PM
Subject: Dual-Independent Tomcat servers, on Single Win32 host sharing IIS
server.
> Hello,
>
> Can anyone guide me in the right direction with my issue.
>
> Windows Server 2003, IIS 6.0, tomcat-connector 1.2.8, and Tomcat 5.0.16.
>
> I have been tasked to do the following.
> To get two separate Tomcat server instances running on the same host
> independent of each other and working off of the same IIS server
> (compliments of the Tomcat-Connector, and ISAPI-Filter).
>
> Getting the two servers up and running together is the easy part, and has
> already been achieved.
> They both have unique ports, and IP addresses from each other.. MY issue
> is
> the isapi filter.
>
> The "workers.properties.minimal" uses 8009 for "ajp13", and 'localhost'
> worker.list=ajp13w
> worker.ajp13w.type=ajp13
> worker.ajp13w.host=localhost
> worker.ajp13w.port=8009
>
> There has to be some information out there that will guide you to create a
> custom "workers.properties.minimal" file. One of my two Tomcat servers has
> port 8009 assigned, and the other is using port 8109. I am assuming that
> I
> was correct on thinking this port needed to be unique from the other
> Tomcat
> server on the host?
>
> I tried to do the following, and it did not work.
>
> worker.list=ajp13w
OUT
worker.list=ajp13w,ajp13w2
> worker.ajp13w.type=ajp13
> worker.ajp13w.host=192.168.0.1
OUT
worker.ajp13w.host=localhost
> worker.ajp13w.port=8009
>
> worker.list=ajp13w2
OUT
> worker.ajp13w2.type=ajp13
> worker.ajp13w2.host=192.168.0.2
OUT
worker.ajp13w.host=localhost
> worker.ajp13w2.port=8109
>
> ..and then in my "uriworker.properties" file
>
> /servlets-examples/*=ajp13w
> /jsp-examples/*=ajp13w2
>
> I thought this would work, but clearly I am looking at this from the wrong
> angle.
The systems are both on localhost... you said same machine... it can only
have one IP
Thats ok as long as you rightly said... the "ports" are different...
If you using the machine in an org with no DNS... then the name of the
machine will also work
worker.ajp13w.host=MyMachineName
But assigning actual IP's can be tricky especially if you have a DHCP server
running... something that assigned IP's to machines... most MS systems do..
I think thats it... with a little play
---------------------------------------------------------------------------
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---------------------------------------------------------------------------
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Dual-Independent Tomcat servers, on Single Win32 host sharing
IIS server.
Posted by Rainer Jung <ra...@kippdata.de>.
> Thanks, that's good to know, and I don't believe I've seen that in the
> docs anywhere.
There's surely a lot to improve in the docs, mainly the HowTo pages, but
the Reference guide is fairly complete. Page
http://tomcat.apache.org/connectors-doc/reference/workers.html
says: "Some directives are allowed multiple times. This will be
explicitely noted in the tables below.". And that's actually true ;)
Regards,
Rainer
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Dual-Independent Tomcat servers, on Single Win32 host sharing
IIS server.
Posted by André Warnier <aw...@ice-sa.com>.
Rainer Jung wrote:
> First before trying to find the right configuration, upgrade! Version
> 1.2.8 is soooo old and whatever hints you get on how to use the
> redirector, you'd always need to find out, which of those are true for
> 1.2.8. We are at 1.2.26, just use that version.
>
> André Warnier schrieb:
>> dOE wrote:
>>>
>>> I tried to do the following, and it did not work.
>>>
>>> worker.list=ajp13w
>>> worker.ajp13w.type=ajp13
>>> worker.ajp13w.host=192.168.0.1
>>> worker.ajp13w.port=8009
>>>
>>> worker.list=ajp13w2
>>> worker.ajp13w2.type=ajp13
>>> worker.ajp13w2.host=192.168.0.2
>>> worker.ajp13w2.port=8109
>>>
>> Maybe you just need to do
>>
>> > worker.list=ajp13w,ajp13w2
>
> No, all properties which take multiple values can be split into multiple
> lines. This often makes writing a modular config file more easy. We join
> those lines during reading them.
>
Yes, but since what version ?
(just kidding)
Thanks, that's good to know, and I don't believe I've seen that in the
docs anywhere.
So then, and apart from upgrading the connector, the next step would
really be to replace the host IPs above by 127.0.0.1 (assuming all this
is on the same host for now, but I think the OP said that before).
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Dual-Independent Tomcat servers, on Single Win32 host sharing IIS server.
Posted by dOE <do...@gmail.com>.
I can not upgrade to 1.2.26, this is for an application and its "certified'
for 1.2.8...so I am forced to work with this older version.
On Wed, Aug 20, 2008 at 4:48 PM, Rainer Jung <ra...@kippdata.de>wrote:
> First before trying to find the right configuration, upgrade! Version 1.2.8
> is soooo old and whatever hints you get on how to use the redirector, you'd
> always need to find out, which of those are true for 1.2.8. We are at
> 1.2.26, just use that version.
>
> André Warnier schrieb:
>
>> dOE wrote:
>>
>>>
>>> I tried to do the following, and it did not work.
>>>
>>> worker.list=ajp13w
>>> worker.ajp13w.type=ajp13
>>> worker.ajp13w.host=192.168.0.1
>>> worker.ajp13w.port=8009
>>>
>>> worker.list=ajp13w2
>>> worker.ajp13w2.type=ajp13
>>> worker.ajp13w2.host=192.168.0.2
>>> worker.ajp13w2.port=8109
>>>
>>> Maybe you just need to do
>>
>> > worker.list=ajp13w,ajp13w2
>>
>
> No, all properties which take multiple values can be split into multiple
> lines. This often makes writing a modular config file more easy. We join
> those lines during reading them.
>
> Regards,
>
> Rainer
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Re: Dual-Independent Tomcat servers, on Single Win32 host sharing
IIS server.
Posted by Rainer Jung <ra...@kippdata.de>.
First before trying to find the right configuration, upgrade! Version
1.2.8 is soooo old and whatever hints you get on how to use the
redirector, you'd always need to find out, which of those are true for
1.2.8. We are at 1.2.26, just use that version.
André Warnier schrieb:
> dOE wrote:
>>
>> I tried to do the following, and it did not work.
>>
>> worker.list=ajp13w
>> worker.ajp13w.type=ajp13
>> worker.ajp13w.host=192.168.0.1
>> worker.ajp13w.port=8009
>>
>> worker.list=ajp13w2
>> worker.ajp13w2.type=ajp13
>> worker.ajp13w2.host=192.168.0.2
>> worker.ajp13w2.port=8109
>>
> Maybe you just need to do
>
> > worker.list=ajp13w,ajp13w2
No, all properties which take multiple values can be split into multiple
lines. This often makes writing a modular config file more easy. We join
those lines during reading them.
Regards,
Rainer
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Dual-Independent Tomcat servers, on Single Win32 host sharing IIS server.
Posted by dOE <do...@gmail.com>.
André , I tried your suggestion, and it still did not work.
On Wed, Aug 20, 2008 at 12:10 PM, André Warnier <aw...@ice-sa.com> wrote:
> dOE wrote:
>
>>
>> I tried to do the following, and it did not work.
>>
>> worker.list=ajp13w
>> worker.ajp13w.type=ajp13
>> worker.ajp13w.host=192.168.0.1
>> worker.ajp13w.port=8009
>>
>> worker.list=ajp13w2
>> worker.ajp13w2.type=ajp13
>> worker.ajp13w2.host=192.168.0.2
>> worker.ajp13w2.port=8109
>>
>> Maybe you just need to do
>
> > worker.list=ajp13w,ajp13w2
>
> > worker.ajp13w.type=ajp13
> > worker.ajp13w.host=192.168.0.1
> > worker.ajp13w.port=8009
> >
> > worker.ajp13w2.type=ajp13
> > worker.ajp13w2.host=192.168.0.2
> > worker.ajp13w2.port=8109
>
> André
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Re: Dual-Independent Tomcat servers, on Single Win32 host sharing
IIS server.
Posted by André Warnier <aw...@ice-sa.com>.
dOE wrote:
>
> I tried to do the following, and it did not work.
>
> worker.list=ajp13w
> worker.ajp13w.type=ajp13
> worker.ajp13w.host=192.168.0.1
> worker.ajp13w.port=8009
>
> worker.list=ajp13w2
> worker.ajp13w2.type=ajp13
> worker.ajp13w2.host=192.168.0.2
> worker.ajp13w2.port=8109
>
Maybe you just need to do
> worker.list=ajp13w,ajp13w2
> worker.ajp13w.type=ajp13
> worker.ajp13w.host=192.168.0.1
> worker.ajp13w.port=8009
>
> worker.ajp13w2.type=ajp13
> worker.ajp13w2.host=192.168.0.2
> worker.ajp13w2.port=8109
André
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org