You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Panian, Ardo" <ar...@gmail.com> on 2008/03/11 18:14:47 UTC

Two separate instances of Tomcat running on a single Windows 2003 server.

Is it possible (and I am sure that it is) to have two separate instances of
Tomcat running on a single Windows 2003 server, and connected through the
ISAPI redirector to IIS running on the local system.

If so could you please guide me in the right direction?

Thanks

RE: Two separate instances of Tomcat running on a single Windows 2003 server.

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Panian, Ardo [mailto:ardopanian@gmail.com] 
> Subject: Re: Two separate instances of Tomcat running on a 
> single Windows 2003 server.
> 
> What about this line in the server.xml:
> <Service name="Catalina">
> can both instances have the same name?

Yes, the service name is internal to the process.

> The 2nd server can then be set to:
> <Server port="8105" shutdown="SHUTDOWN" debug="0">?
> 
> The 8080 connector port and the 8009 AJP port would also need 
> to be set to unique values as well, correct?

Yes, as everyone has been telling you for some time now, all the ports
must be unique across the two installations.

> Lastly what about:
> <Engine name="Catalina" defaultHost="localhost" debug="0">?

It's not a issue, since each Tomcat has its own ports.

> if anyone has any reference manuals they can suggest I am 
> definitely interested in purchasing one soon.

Don't waste your money; read the real documentation on the Tomcat web
site.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
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: Two separate instances of Tomcat running on a single Windows 2003 server.

Posted by "Panian, Ardo" <ar...@gmail.com>.
What about this line in the server.xml:
<Service name="Catalina">
can both instances have the same name?

<Server port="8005" shutdown="SHUTDOWN" debug="0"> is the default port.
The 2nd server can then be set to:
<Server port="8105" shutdown="SHUTDOWN" debug="0">?

The 8080 connector port and the 8009 AJP port would also need to be set to
unique values as well, correct?  The applications will be using ajp ports to
function.

Lastly what about:
<Engine name="Catalina" defaultHost="localhost" debug="0">?



I really appreciate all the help I've been receiving from the members of
this list and apologize for asking to many questions.

I am new to Tomcat, and just trying to get better acquainted with it, and if
anyone has any reference manuals they can suggest I am definitely interested
in purchasing one soon.



On Wed, Mar 12, 2008 at 11:18 AM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: Panian, Ardo [mailto:ardopanian@gmail.com]
> > Subject: Re: Two separate instances of Tomcat running on a
> > single Windows 2003 server.
> >
> > Unfortunately I have to install it as a windows service
>
> Use the .zip, not .exe, version of the Tomcat download.  Install into
> two different directories, as you described.  Edit the conf/server.xml
> in each to insure port uniqueness.  Run the service.bat script from each
> bin directory, supplying a different name parameter for each
> installation.  No environment variables are involved.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
> ---------------------------------------------------------------------
> 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
>
>


-- 
Sincerely,
Ardo S. Panian
H: 508-969-9935
M: 781-771-6728
F: 484-771-6726

RE: Two separate instances of Tomcat running on a single Windows 2003 server.

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Panian, Ardo [mailto:ardopanian@gmail.com] 
> Subject: Re: Two separate instances of Tomcat running on a 
> single Windows 2003 server.
> 
> Unfortunately I have to install it as a windows service

Use the .zip, not .exe, version of the Tomcat download.  Install into
two different directories, as you described.  Edit the conf/server.xml
in each to insure port uniqueness.  Run the service.bat script from each
bin directory, supplying a different name parameter for each
installation.  No environment variables are involved.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
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: Two separate instances of Tomcat running on a single Windows 2003 server.

Posted by "Panian, Ardo" <ar...@gmail.com>.
Unfortunately I have to install it as a windows service, any guidance on how
I can achieve this goal would be much appreciated.

I was planning on installing Tomcat twice with each going to a different
install directory.
I know that the env-var looks in the install dir of Tomcat, but with two
installs I am going to need to alter the Catalina instance name I am
guessing?

On Wed, Mar 12, 2008 at 10:18 AM, Peter Crowther <
Peter.Crowther@melandra.com> wrote:

> > From: Panian, Ardo [mailto:ardopanian@gmail.com]
> > Ok, the default server.xml is where I make the server port
> > adjustments?
>
> Yes.
>
> > What about environmental-variables that are set in the
> > "System Properties of the Windows server?
>
> In the immortal words, "don't do that".  Are you running these installs as
> Windows services, or starting them from batch files?  I start from batch
> files and set CATALINA_HOME in each file.  This means I don't have to do
> anything to the system variables.
>
> > I am asked to set Catalina_Home=<Tomcat install directory
> > path>, what would I do with two installs of tomcat?
>
> Set each separately, by whatever means necessary.  This probably involves
> using something other than machine variables!
>
> > I will need to rename the 2nd "Catalina"
> > instance, and then set the env-var based on its install directory?
>
> Yes.  If both are the same version, there are tricks you can pull to use
> the same installation but different webapps, temp and work directories - but
> separate installs are probably easier to get going.
>
> > (side-note: if you guys can recommend a great book for Tomcat
> > admins I would appreciate it.)
>
> I've not found one.
>
>                - Peter
>
> ---------------------------------------------------------------------
> 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
>
>


-- 
Sincerely,
Ardo S. Panian
H: 508-969-9935
M: 781-771-6728
F: 484-771-6726

RE: Two separate instances of Tomcat running on a single Windows 2003 server.

Posted by Peter Crowther <Pe...@melandra.com>.
> From: Panian, Ardo [mailto:ardopanian@gmail.com]
> Ok, the default server.xml is where I make the server port
> adjustments?

Yes.

> What about environmental-variables that are set in the
> "System Properties of the Windows server?

In the immortal words, "don't do that".  Are you running these installs as Windows services, or starting them from batch files?  I start from batch files and set CATALINA_HOME in each file.  This means I don't have to do anything to the system variables.

> I am asked to set Catalina_Home=<Tomcat install directory
> path>, what would I do with two installs of tomcat?

Set each separately, by whatever means necessary.  This probably involves using something other than machine variables!

> I will need to rename the 2nd "Catalina"
> instance, and then set the env-var based on its install directory?

Yes.  If both are the same version, there are tricks you can pull to use the same installation but different webapps, temp and work directories - but separate installs are probably easier to get going.

> (side-note: if you guys can recommend a great book for Tomcat
> admins I would appreciate it.)

I've not found one.

                - Peter

---------------------------------------------------------------------
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: Two separate instances of Tomcat running on a single Windows 2003 server.

Posted by "Panian, Ardo" <ar...@gmail.com>.
Ok, the default server.xml is where I make the server port adjustments?
What about environmental-variables that are set in the "System Properties of
the Windows server?

I am asked to set Catalina_Home=<Tomcat install directory path>, what would
I do with two installs of tomcat?  I will need to rename the 2nd "Catalina"
instance, and then set the env-var based on its install directory?

(side-note: if you guys can recommend a great book for Tomcat admins I would
appreciate it.)

On Tue, Mar 11, 2008 at 1:42 PM, Panian, Ardo <ar...@gmail.com> wrote:

> My intentions were to have two separate installs, and the from there
> having them run independent of each other.  They will be host two separate
> web based applications.
>
> essentially its the same application but two instances of it.
>
>
> On Tue, Mar 11, 2008 at 1:38 PM, Peter Crowther <
> Peter.Crowther@melandra.com> wrote:
>
> > > From: Panian, Ardo [mailto:ardopanian@gmail.com]
> > > Out of the box Tomcat uses ports 8080, 8005, and 8009?  is
> > > that correct?
> >
> > With the default server.xml, yes.  You'll probably want only one of
> > 8009/8080 depending on how you intend to connect to Tomcat.  If you're
> > connecting from IIS, you probably only want 8009, the JK port.  I wouldn't
> > know - never tried it.
> >
> > > That said if I had my other two instances running on 8180,8280, and
> > > 8105,8205 and so on this is all I would need to do?
> >
> > Yes.  I regularly run up to three Tomcat instances (of mixed versions)
> > on my Windows 2003 development box.  As long as all the ports are different
> > and they're using different work directories, you're fine.  Generally, you
> > want to separate more than just the work directories, as you want 'em to run
> > different webapps - three separate installs is the simplest (though not
> > necessarily most maintainable) approach.
> >
> >                - Peter
> >
> > ---------------------------------------------------------------------
> > 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
> >
> >
>
>
> --
> Sincerely,
> Ardo S. Panian
> H: 508-969-9935
> M: 781-771-6728
> F: 484-771-6726
>



-- 
Sincerely,
Ardo S. Panian
H: 508-969-9935
M: 781-771-6728
F: 484-771-6726

Re: Two separate instances of Tomcat running on a single Windows 2003 server.

Posted by "Panian, Ardo" <ar...@gmail.com>.
My intentions were to have two separate installs, and the from there having
them run independent of each other.  They will be host two separate web
based applications.

essentially its the same application but two instances of it.

On Tue, Mar 11, 2008 at 1:38 PM, Peter Crowther <Pe...@melandra.com>
wrote:

> > From: Panian, Ardo [mailto:ardopanian@gmail.com]
> > Out of the box Tomcat uses ports 8080, 8005, and 8009?  is
> > that correct?
>
> With the default server.xml, yes.  You'll probably want only one of
> 8009/8080 depending on how you intend to connect to Tomcat.  If you're
> connecting from IIS, you probably only want 8009, the JK port.  I wouldn't
> know - never tried it.
>
> > That said if I had my other two instances running on 8180,8280, and
> > 8105,8205 and so on this is all I would need to do?
>
> Yes.  I regularly run up to three Tomcat instances (of mixed versions) on
> my Windows 2003 development box.  As long as all the ports are different and
> they're using different work directories, you're fine.  Generally, you want
> to separate more than just the work directories, as you want 'em to run
> different webapps - three separate installs is the simplest (though not
> necessarily most maintainable) approach.
>
>                - Peter
>
> ---------------------------------------------------------------------
> 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
>
>


-- 
Sincerely,
Ardo S. Panian
H: 508-969-9935
M: 781-771-6728
F: 484-771-6726

RE: Two separate instances of Tomcat running on a single Windows 2003 server.

Posted by Peter Crowther <Pe...@melandra.com>.
> From: Panian, Ardo [mailto:ardopanian@gmail.com]
> Out of the box Tomcat uses ports 8080, 8005, and 8009?  is
> that correct?

With the default server.xml, yes.  You'll probably want only one of 8009/8080 depending on how you intend to connect to Tomcat.  If you're connecting from IIS, you probably only want 8009, the JK port.  I wouldn't know - never tried it.

> That said if I had my other two instances running on 8180,8280, and
> 8105,8205 and so on this is all I would need to do?

Yes.  I regularly run up to three Tomcat instances (of mixed versions) on my Windows 2003 development box.  As long as all the ports are different and they're using different work directories, you're fine.  Generally, you want to separate more than just the work directories, as you want 'em to run different webapps - three separate installs is the simplest (though not necessarily most maintainable) approach.

                - Peter

---------------------------------------------------------------------
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: Two separate instances of Tomcat running on a single Windows 2003 server.

Posted by David Smith <dn...@cornell.edu>.
Be sure in addition to changing the port numbers in the Connector 
elements of server.xml, you also change the shutdown port numbers at the 
top of the server.xml.

--David

Panian, Ardo wrote:
> Out of the box Tomcat uses ports 8080, 8005, and 8009?  is that correct?
>
> That said if I had my other two instances running on 8180,8280, and
> 8105,8205 and so on this is all I would need to do?
>
> On Tue, Mar 11, 2008 at 1:21 PM, David kerber <dc...@verizon.net> wrote:
>
>   
>> Panian, Ardo wrote:
>>     
>>> Is it possible (and I am sure that it is) to have two separate instances
>>>       
>> of
>>     
>>> Tomcat running on a single Windows 2003 server, and connected through
>>>       
>> the
>>     
>>> ISAPI redirector to IIS running on the local system.
>>>
>>> If so could you please guide me in the right direction?
>>>
>>> Thanks
>>>
>>>
>>>       
>> Your tomcats need to be listening on different ports, but other than
>> that there's nothing special about this setup.  I have a production
>> server with 3 instances running, and it works fine.  As for the IIS part
>> of the question, I don't use it.
>>
>> D
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
>>
>>
>>     
>
>
>   


---------------------------------------------------------------------
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: Two separate instances of Tomcat running on a single Windows 2003 server.

Posted by "Panian, Ardo" <ar...@gmail.com>.
Out of the box Tomcat uses ports 8080, 8005, and 8009?  is that correct?

That said if I had my other two instances running on 8180,8280, and
8105,8205 and so on this is all I would need to do?

On Tue, Mar 11, 2008 at 1:21 PM, David kerber <dc...@verizon.net> wrote:

> Panian, Ardo wrote:
> > Is it possible (and I am sure that it is) to have two separate instances
> of
> > Tomcat running on a single Windows 2003 server, and connected through
> the
> > ISAPI redirector to IIS running on the local system.
> >
> > If so could you please guide me in the right direction?
> >
> > Thanks
> >
> >
> Your tomcats need to be listening on different ports, but other than
> that there's nothing special about this setup.  I have a production
> server with 3 instances running, and it works fine.  As for the IIS part
> of the question, I don't use it.
>
> D
>
>
>
> ---------------------------------------------------------------------
> 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
>
>


-- 
Sincerely,
Ardo S. Panian
H: 508-969-9935
M: 781-771-6728
F: 484-771-6726

Re: Two separate instances of Tomcat running on a single Windows 2003 server.

Posted by David kerber <dc...@verizon.net>.
Panian, Ardo wrote:
> Is it possible (and I am sure that it is) to have two separate instances of
> Tomcat running on a single Windows 2003 server, and connected through the
> ISAPI redirector to IIS running on the local system.
>
> If so could you please guide me in the right direction?
>
> Thanks
>
>   
Your tomcats need to be listening on different ports, but other than 
that there's nothing special about this setup.  I have a production 
server with 3 instances running, and it works fine.  As for the IIS part 
of the question, I don't use it.

D



---------------------------------------------------------------------
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