RE: Multiple tomcat containers or instance on same servers

2013-05-05 Thread Kunal Dabir



Sorry for jumping in late. 
I am not sure if it's still relevant to the discussion, but long back I had 
written a small script to help me setup something similar on a windows box. 
Primarily to use multiple instances using same binaries. 
https://code.google.com/p/tomcat-instance-manager/
You can also add multiple windows services using the script (giving each 
service a name as needed).
Regards

 From: akinola@swisstopo.ch
 To: users@tomcat.apache.org
 Date: Tue, 30 Apr 2013 14:28:56 +0200
 Subject: Multiple tomcat containers or instance on same servers
 
 I would need help to configure different application in their respective 
 tomcat container.
 
 Does having multiple containers is same as have multiple instances on the 
 same server?
 I already have tomcat 6.0.26 installed through an installer on a Windows 
 Server 2008 R2. How do I go about configuring multiple containers or 
 instances?
 
 Thanks for your prompt response

  

Re: Multiple tomcat containers or instance on same servers

2013-05-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Oke,

On 5/2/13 3:59 PM, Oke Akinola swisstopo wrote:
 I eventually installed version 6.0.36  7.0.29 as the highest
 supported version by the concerned applications respectively. I
 used the installer and both applications seen to be running fine.
 
 Though still testing, but would like to be rest assured of this 2
 version decision before going into production. Is there any
 foreseeable complications that could emerge from such
 configuration?

As long as all your scripts, etc. understand that there are more than
one Tomcat installed on the same machine, you should be fine.

We have been running in production for years with 4 JVMs running
side-by-side. They run different versions of Tomcat and different JVMs
due to different release cycles.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJRg6VBAAoJEBzwKT+lPKRYEK4P/16RNk0Eait6fSYVovX8sGQy
HtylwyddIG3k02iRtkkFVCyncjpGsFICT6K8aiAoAxt6DK6aVnyk5reIRdVqDYmP
GiNYOWkIzMYFH0HrWyBDwT2C7xYZJC34/3SR+yI4VK+7PyEd7QmrB8drtP/K1Ly4
QrM1Tgf4ZtFxXgpa7jC6zL1y51KPTb6OGsGb0ApDCpY1kwy4aH8WjCRsTEiZ+n2h
2e1gFc+5gZsAF6GTq7boIl7LhzUADKuEhg5Q+zaFT3YiVqX6kx8V+ecqftnYJt6g
xecRWUkTNwLXcKyhUIsap226KLqCsebSCQDeU+1N0x8orsNUQkPIF0rOAx2xA+O3
T98upQ7yPa2yM7t+l3as3Iv0cYubExJyXSes38wQddkIRhnbJ2GDLjfWxJGMQhLd
GOrFPVCvdV3uyg5zei1kUAQ3wme8gV4fI+craoWtQbgVDobcNhTy2cjeevLksFCE
qjfCuuE6jO0x554N0k/vWZW6rZNe8OtGuEwbFGHKjpixZ59oSGlFq3c9QC1KHQ1z
B0rM8055qSLqa/69J2FMYGVEUdXAKspisDTGnM1VI6N+fPdL8QEH8tD7x8h/4v1N
sPVWLtAhrUNB5O3Pj0zA1iDWJFIDULoN+J8u77qVih4TLdBtfkCH6KTWll7v7nkW
dBl1ozP/xWM0ilqpAxCD
=jwD3
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Multiple tomcat containers or instance on same servers

2013-05-02 Thread Oke Akinola swisstopo
I eventually installed version 6.0.36  7.0.29 as the highest supported version 
by the concerned applications respectively. I used the installer and both 
applications seen to be running fine.

Though still testing, but would like to be rest assured of this 2 version 
decision before going into production. Is there any foreseeable complications 
that could emerge from such configuration?


Sent from my Windows Phone

From: Howard W. Smith, Jr.
Sent: 02.05.2013 03:21
To: Tomcat Users List; ch...@derham.me.uk
Subject: Re: Multiple tomcat containers or instance on same servers

On Wed, May 1, 2013 at 8:51 PM, chris derham ch...@derham.me.uk wrote:

  If anyone else wants to chip in with any relevant additions, let me
  know. I might be able to have a look at updating the documentation
  page later, but being as I'm a developer my linguistic skills have
  never really been approved off so not sure any changes will be
  approved :-)
 
  HTH
 
  Chris

 I've added some comments to
 http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html -


+1 I like the comments you added Chris!

 You must edit CATALINA_BASE\conf\server.xml to specify a unique IP/port
for the instance to listen on.

You gave some examples in those comments. it would be nice to see examples
to clarify the statement above, too.


Re: Multiple tomcat containers or instance on same servers

2013-05-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Oke,

On 5/1/13 1:05 AM, Oke Akinola swisstopo wrote:
 The new application I wanted to add to tomcat environment actually 
 required its own container. My understanding so far is configuring 
 multiples applications, even with different listening ports  in a 
 single installation is still one container. Once a different 
 container is required, there has to be a second tomcat
 installation instance.
 
 Please feel free to correct me.

Your understanding is correct: if you want a completely-separate,
isolated container, then you need to install Tomcat multiple times (or,
install a single time and make sure you balance your CATALINA_BASE paths
properly).

Using the installer multiple times may just make things simpler if you
aren't comfortable with managing multiple instances any other way.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJRgWrEAAoJEBzwKT+lPKRYKK0P/3wrxPlBYvxmtu53h6RVgdpE
F9uxf0aPTrkr9GqdtE9jyWoXsjx3rWtmnkOUnPn3aI+pviH63UDjRMgWKdCQBZyN
96EsNemh5jhbY5sWEsWMkXpogxKML4kAUzVV4t7kr7dSznDMMnJyw7uqBonBCCu6
fCiMQdGm/9ukgaJn1OEiSHq/Q+eVGycM3oPoMI8im/YmMmpv0SjRjbpu28ocNX4M
M8nraeg1EvRgyO7/bHl+9sDECKqO13hCc3/WpCoWVCyGOjQMxVPe2eaUqsdXAkDe
5BXFtd88NH06OTXAyPRglysCdwQ7mV2Tm3Bb0u42IyzDbvhbmL9TJxJEdRO5wdSI
66u4o5UEFA50+SLoPFVjZ1I8Pz6iwaCbmnD9CMmttNPgf1sZ+7w5nhPe6CovJn3t
HI5G5yAINZsNx+Rc9F2or8o4v5NnvrGnGQh38jqnaIIcn1M3yzIVYQRf+ZAjCAeg
S1WxAYowNMdIEaThhEW9TC5ST4SAvKUspoV1ezH7KLehEGkPox/FUzDlQnC7n9Se
2rPgO5IroAuiCImfSRtqUmUP5atrJTafemX4VQMDBQYDaEN466xToTyhM4WTuzem
VepdHLdLEiJQ8iQ1V0+1f7PSCf5c83uzoDSo59q1ULDU4ZTehTNNj2c05WQkLk9s
CeiJgLPD008drh/TQiHk
=k53o
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Multiple tomcat containers or instance on same servers

2013-05-01 Thread David Kerber

On 5/1/2013 1:05 AM, Oke Akinola swisstopo wrote:

The new application I wanted to add to tomcat environment actually required its 
own container. My understanding so far is configuring multiples applications, 
even with different listening ports  in a single installation is still one 
container. Once a different container is required, there has to be a second 
tomcat installation instance.


Assuming when you say different container, you mean the same thing 
that Tomcat does by container, then no, that's not necessary.  You can 
set up multiple apps with complete isolation between them even with a 
single installation of TC.


Dave




Please feel free to correct me.

David's offer to put something together will be appreciate for the none tomcat 
specialist.



Sent from my Windows Phone

From: David Kerber
Sent: 01.05.2013 02:45
To: Tomcat Users List
Subject: Re: Multiple tomcat containers or instance on same servers

On 4/30/2013 4:34 PM, chris derham wrote:

Thanks for all your feedbacks.

Is multiple versions supported or all instances have to be the same build.


You can have it any which way you wish, e.g. single tomcat in single
catalina_home with multiple instances each with own catalina_base, or
multiple versions of tomcat each in own catalina_home each with one or
more instance each with own catalina_base. You can setup a right mess
if you wish...


Yeah, what he said...

I have done it both ways, depending on the requirements of the apps
being hosted.  I prefer to have only one instance of TC installed, but
have at times had multiple versions running during transition periods.





I thought sure that the Tomcat Windows Service page of the users' guide,
but it is /not/ there:
http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html

I wonder if there are any heavy Microsoft Windows users that could
offer to write a section on Multiple Tomcat Instances specifically
with Microsoft Windows Services. The file RUNNING.txt only explains
how to set up Tomcat itself (CATALINA_HOME versus CATALINA_BASE) but
says nothing about how to configure Tomcat's service runner to point
to one (other than inferring that one ought to set CATALINA_HOME and
CATALINA_BASE appropriately).

For instance, it's probably important to give the services distinct
names ;)


The only things that seem to be missing are

a) set CATALINA_HOME and CATALINA_BASE before running service.bat
b) when run service.bat, specific a unique service name
c) you need to copy some files around to allow the CATALINA_BASE to be
different from each other, e.g. port config

e.g.

set CATALINA_HOME=c:\tomcat
set CATALINA_BASE=c:\tomcat\instances\instance1
service install tomcat1

Then to install instance two, just run

set CATALINA_BASE=c:\tomcat\instances\instance2
service install tomcat2

If anyone else wants to chip in with any relevant additions, let me
know. I might be able to have a look at updating the documentation
page later, but being as I'm a developer my linguistic skills have
never really been approved off so not sure any changes will be
approved :-)

HTH

Chris

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org






-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Multiple tomcat containers or instance on same servers

2013-05-01 Thread chris derham
 If anyone else wants to chip in with any relevant additions, let me
 know. I might be able to have a look at updating the documentation
 page later, but being as I'm a developer my linguistic skills have
 never really been approved off so not sure any changes will be
 approved :-)

 HTH

 Chris

I've added some comments to
http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html -
is there a better way to get an addition made to that page?

Chris

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Multiple tomcat containers or instance on same servers

2013-05-01 Thread Konstantin Kolinko
2013/5/2 chris derham ch...@derham.me.uk:
 If anyone else wants to chip in with any relevant additions, let me
 know. I might be able to have a look at updating the documentation
 page later, but being as I'm a developer my linguistic skills have
 never really been approved off so not sure any changes will be
 approved :-)

 HTH

 Chris

 I've added some comments to
 http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html -
 is there a better way to get an addition made to that page?

Thank you.
The better way is to propose a patch

http://tomcat.apache.org/bugreport.html#How_to_submit_patches_and_enhancement_requests

Regarding

 http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html

page, generally I think that
1) there should be some introduction that says that the executables
come from commons.apache.org, and one should consult the original
documentation.
2) add a section that explicitly documents Tomcat's service.bat
script and options supported by it  (such as the service name
argument).  As it is written currently, only service.bat install
command is documented.

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Multiple tomcat containers or instance on same servers

2013-05-01 Thread Howard W. Smith, Jr.
On Wed, May 1, 2013 at 8:51 PM, chris derham ch...@derham.me.uk wrote:

  If anyone else wants to chip in with any relevant additions, let me
  know. I might be able to have a look at updating the documentation
  page later, but being as I'm a developer my linguistic skills have
  never really been approved off so not sure any changes will be
  approved :-)
 
  HTH
 
  Chris

 I've added some comments to
 http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html -


+1 I like the comments you added Chris!

 You must edit CATALINA_BASE\conf\server.xml to specify a unique IP/port
for the instance to listen on.

You gave some examples in those comments. it would be nice to see examples
to clarify the statement above, too.


RE: Multiple tomcat containers or instance on same servers

2013-04-30 Thread Jeffrey Janner
 -Original Message-
 From: Oke Akinola swisstopo [mailto:akinola@swisstopo.ch]
 Sent: Tuesday, April 30, 2013 7:29 AM
 To: users@tomcat.apache.org
 Subject: Multiple tomcat containers or instance on same servers
 
 I would need help to configure different application in their
 respective tomcat container.
 
 Does having multiple containers is same as have multiple instances on
 the same server?
 I already have tomcat 6.0.26 installed through an installer on a
 Windows Server 2008 R2. How do I go about configuring multiple
 containers or instances?
 
 Thanks for your prompt response

First, I highly recommend upgrading to 6.0.36.
Otherwise, it is very easy.  Just run the installer again giving the new 
instance a different name and set of ports.
You should use -1 for the shutdown port on all instances, as it is really not 
needed for Tomcats running as a Windows service.
Otherwise, configure each additional instance as you would a single instance.
Just remember, each connector must have a unique IP_Address/Port combination on 
the system, when you are done.
Jeff


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Multiple tomcat containers or instance on same servers

2013-04-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Oke,

On 4/30/13 8:28 AM, Oke Akinola swisstopo wrote:
 I would need help to configure different application in their 
 respective tomcat container.
 
 Does having multiple containers is same as have multiple instances
 on the same server? I already have tomcat 6.0.26 installed through
 an installer on a Windows Server 2008 R2. How do I go about
 configuring multiple containers or instances?

I thought sure that the Tomcat Windows Service page of the users' guide,
but it is /not/ there:
http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html

I wonder if there are any heavy Microsoft Windows users that could
offer to write a section on Multiple Tomcat Instances specifically
with Microsoft Windows Services. The file RUNNING.txt only explains
how to set up Tomcat itself (CATALINA_HOME versus CATALINA_BASE) but
says nothing about how to configure Tomcat's service runner to point
to one (other than inferring that one ought to set CATALINA_HOME and
CATALINA_BASE appropriately).

For instance, it's probably important to give the services distinct
names ;)

I probably wouldn't do this myself, but can Tomcat be installed
twice (or thrice, etc.) using the installer so I don't have to
configure the service(s) manually from the command-line? Yes, I'll get
multiple copies of Tomcat installed on my disk, but I probably don't
care about that if the installer can set up the service with a unique
name, etc. If this kind of thing won't work or is a horrible idea,
that should be clear from the users' guide.

André? Jeff? Mark E?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJRf9WIAAoJEBzwKT+lPKRY2qsP/iobjPWd35E4zhVI4qwVCzZ+
9gIKqGmv2Sm1aESWW6QbOX3d9HndP2BrogVdGoCujBy9DsA0xp/l7M5Dxv0BPr+g
9k+whMZMijbL2FjgNmh8f9fVF2XR2uN9jxH3X7bVWJ7aO7AWwciaYhtpC9jug9nV
sTPpEp4DCW2Ub8SkVc28lTWC8pC0JP6i1M4yPbpJxY99qgHZDm5C8po6GC83ThyJ
o6gdacjti/Vg750+iB9E0103eloamiPE7zLHyo2jOq+fxt0Gypf8tPoC4iffflVD
rz/5kQGWLupK2mTaa3Ab8CAfoDi7arIHQ2g7XwmOoHXmFXhB3afJVjCV6+DztxKK
gec56LUt6pxtInE2L8jxwWxPl11BA7nID2lSdzb4f7TtZ4DAR0oXqeOUz1IUCKU/
+WMxUnfOfdFRRfe1vU6yfMZ0Dh6wTcb4fnRQU6Om2fygFQ/2bXsq8d/1hYzBTcHu
z9VzyZgyjrKnxJrwCTCZTbYxGstzK3NHxmFgqdrshuLlfKRREjLQ4WseAkI1gOJH
OXohwrYfRN7YGc7B1Vpvvo4u6B2r3tC6xcA3/MoRJbsNPUK9OvY25Dxrhf0ZGcrS
pdQORfZo6ti0onID8Rx16UW9/XlnGESEk4/ii1WVRuVFM2dMluLEJ5+G43OptpgA
axpK3tkEWaQVHpFchOU8
=/7M2
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Multiple tomcat containers or instance on same servers

2013-04-30 Thread David kerber

On 4/30/2013 10:30 AM, Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Oke,

On 4/30/13 8:28 AM, Oke Akinola swisstopo wrote:

I would need help to configure different application in their
respective tomcat container.

Does having multiple containers is same as have multiple instances
on the same server? I already have tomcat 6.0.26 installed through
an installer on a Windows Server 2008 R2. How do I go about
configuring multiple containers or instances?


I thought sure that the Tomcat Windows Service page of the users' guide,
but it is /not/ there:
http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html

I wonder if there are any heavy Microsoft Windows users that could
offer to write a section on Multiple Tomcat Instances specifically
with Microsoft Windows Services. The file RUNNING.txt only explains
how to set up Tomcat itself (CATALINA_HOME versus CATALINA_BASE) but
says nothing about how to configure Tomcat's service runner to point
to one (other than inferring that one ought to set CATALINA_HOME and
CATALINA_BASE appropriately).

For instance, it's probably important to give the services distinct
names ;)

I probably wouldn't do this myself, but can Tomcat be installed
twice (or thrice, etc.) using the installer so I don't have to
configure the service(s) manually from the command-line? Yes, I'll get
multiple copies of Tomcat installed on my disk, but I probably don't
care about that if the installer can set up the service with a unique
name, etc. If this kind of thing won't work or is a horrible idea,
that should be clear from the users' guide.

André? Jeff? Mark E?


I might be able to put some time into this over the nest few days; I 
have a system with about a dozen services all running from the same 
installation of TC.  I have written some batch files that handle the 
service creation for me, though I tweak the TC configuration .xml files 
manually.


D

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Multiple tomcat containers or instance on same servers

2013-04-30 Thread Jeffrey Janner
 -Original Message-
 From: Christopher Schultz [mailto:ch...@christopherschultz.net]
 Sent: Tuesday, April 30, 2013 9:31 AM
 To: Tomcat Users List
 Subject: Re: Multiple tomcat containers or instance on same servers
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256
 
 Oke,
 
 On 4/30/13 8:28 AM, Oke Akinola swisstopo wrote:
  I would need help to configure different application in their
  respective tomcat container.
 
  Does having multiple containers is same as have multiple instances on
  the same server? I already have tomcat 6.0.26 installed through an
  installer on a Windows Server 2008 R2. How do I go about configuring
  multiple containers or instances?
 
 I thought sure that the Tomcat Windows Service page of the users'
 guide, but it is /not/ there:
 http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html
 
 I wonder if there are any heavy Microsoft Windows users that could
 offer to write a section on Multiple Tomcat Instances specifically with
 Microsoft Windows Services. The file RUNNING.txt only explains how to
 set up Tomcat itself (CATALINA_HOME versus CATALINA_BASE) but says
 nothing about how to configure Tomcat's service runner to point to one
 (other than inferring that one ought to set CATALINA_HOME and
 CATALINA_BASE appropriately).
 
 For instance, it's probably important to give the services distinct
 names ;)
 
 I probably wouldn't do this myself, but can Tomcat be installed
 twice (or thrice, etc.) using the installer so I don't have to
 configure the service(s) manually from the command-line? Yes, I'll get
 multiple copies of Tomcat installed on my disk, but I probably don't
 care about that if the installer can set up the service with a unique
 name, etc

The Windows installer allows for this.
In fact, after years of doing it the RUNNING.txt way, i.e. manually, I was 
really grateful when this became supported in the installer.  It's the only way 
I do it now, and now have fewer headaches.
These days, the disk space requirement of a full instance takes up is trivial 
compared to the minimal size of disk drives.
It does make for a little more work monitoring log multiple log files, but 
you'd be doing that anyway.


RE: Multiple tomcat containers or instance on same servers

2013-04-30 Thread Oke Akinola swisstopo
Thanks for all your feedbacks.

Is multiple versions supported or all instances have to be the same build.

Sent from my Windows Phone

From: David kerber
Sent: 30.04.2013 16:57
To: Tomcat Users List
Subject: Re: Multiple tomcat containers or instance on same servers

On 4/30/2013 10:30 AM, Christopher Schultz wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Oke,

 On 4/30/13 8:28 AM, Oke Akinola swisstopo wrote:
 I would need help to configure different application in their
 respective tomcat container.

 Does having multiple containers is same as have multiple instances
 on the same server? I already have tomcat 6.0.26 installed through
 an installer on a Windows Server 2008 R2. How do I go about
 configuring multiple containers or instances?

 I thought sure that the Tomcat Windows Service page of the users' guide,
 but it is /not/ there:
 http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html

 I wonder if there are any heavy Microsoft Windows users that could
 offer to write a section on Multiple Tomcat Instances specifically
 with Microsoft Windows Services. The file RUNNING.txt only explains
 how to set up Tomcat itself (CATALINA_HOME versus CATALINA_BASE) but
 says nothing about how to configure Tomcat's service runner to point
 to one (other than inferring that one ought to set CATALINA_HOME and
 CATALINA_BASE appropriately).

 For instance, it's probably important to give the services distinct
 names ;)

 I probably wouldn't do this myself, but can Tomcat be installed
 twice (or thrice, etc.) using the installer so I don't have to
 configure the service(s) manually from the command-line? Yes, I'll get
 multiple copies of Tomcat installed on my disk, but I probably don't
 care about that if the installer can set up the service with a unique
 name, etc. If this kind of thing won't work or is a horrible idea,
 that should be clear from the users' guide.

 André? Jeff? Mark E?

I might be able to put some time into this over the nest few days; I
have a system with about a dozen services all running from the same
installation of TC.  I have written some batch files that handle the
service creation for me, though I tweak the TC configuration .xml files
manually.

D

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Multiple tomcat containers or instance on same servers

2013-04-30 Thread chris derham
 Thanks for all your feedbacks.

 Is multiple versions supported or all instances have to be the same build.

You can have it any which way you wish, e.g. single tomcat in single
catalina_home with multiple instances each with own catalina_base, or
multiple versions of tomcat each in own catalina_home each with one or
more instance each with own catalina_base. You can setup a right mess
if you wish...

 I thought sure that the Tomcat Windows Service page of the users' guide,
 but it is /not/ there:
 http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html

 I wonder if there are any heavy Microsoft Windows users that could
 offer to write a section on Multiple Tomcat Instances specifically
 with Microsoft Windows Services. The file RUNNING.txt only explains
 how to set up Tomcat itself (CATALINA_HOME versus CATALINA_BASE) but
 says nothing about how to configure Tomcat's service runner to point
 to one (other than inferring that one ought to set CATALINA_HOME and
 CATALINA_BASE appropriately).

 For instance, it's probably important to give the services distinct
 names ;)

The only things that seem to be missing are

a) set CATALINA_HOME and CATALINA_BASE before running service.bat
b) when run service.bat, specific a unique service name
c) you need to copy some files around to allow the CATALINA_BASE to be
different from each other, e.g. port config

e.g.

set CATALINA_HOME=c:\tomcat
set CATALINA_BASE=c:\tomcat\instances\instance1
service install tomcat1

Then to install instance two, just run

set CATALINA_BASE=c:\tomcat\instances\instance2
service install tomcat2

If anyone else wants to chip in with any relevant additions, let me
know. I might be able to have a look at updating the documentation
page later, but being as I'm a developer my linguistic skills have
never really been approved off so not sure any changes will be
approved :-)

HTH

Chris

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Multiple tomcat containers or instance on same servers

2013-04-30 Thread David Kerber

On 4/30/2013 4:34 PM, chris derham wrote:

Thanks for all your feedbacks.

Is multiple versions supported or all instances have to be the same build.


You can have it any which way you wish, e.g. single tomcat in single
catalina_home with multiple instances each with own catalina_base, or
multiple versions of tomcat each in own catalina_home each with one or
more instance each with own catalina_base. You can setup a right mess
if you wish...


Yeah, what he said...

I have done it both ways, depending on the requirements of the apps 
being hosted.  I prefer to have only one instance of TC installed, but 
have at times had multiple versions running during transition periods.






I thought sure that the Tomcat Windows Service page of the users' guide,
but it is /not/ there:
http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html

I wonder if there are any heavy Microsoft Windows users that could
offer to write a section on Multiple Tomcat Instances specifically
with Microsoft Windows Services. The file RUNNING.txt only explains
how to set up Tomcat itself (CATALINA_HOME versus CATALINA_BASE) but
says nothing about how to configure Tomcat's service runner to point
to one (other than inferring that one ought to set CATALINA_HOME and
CATALINA_BASE appropriately).

For instance, it's probably important to give the services distinct
names ;)


The only things that seem to be missing are

a) set CATALINA_HOME and CATALINA_BASE before running service.bat
b) when run service.bat, specific a unique service name
c) you need to copy some files around to allow the CATALINA_BASE to be
different from each other, e.g. port config

e.g.

set CATALINA_HOME=c:\tomcat
set CATALINA_BASE=c:\tomcat\instances\instance1
service install tomcat1

Then to install instance two, just run

set CATALINA_BASE=c:\tomcat\instances\instance2
service install tomcat2

If anyone else wants to chip in with any relevant additions, let me
know. I might be able to have a look at updating the documentation
page later, but being as I'm a developer my linguistic skills have
never really been approved off so not sure any changes will be
approved :-)

HTH

Chris

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org






-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Multiple tomcat containers or instance on same servers

2013-04-30 Thread Oke Akinola swisstopo
The new application I wanted to add to tomcat environment actually required its 
own container. My understanding so far is configuring multiples applications, 
even with different listening ports  in a single installation is still one 
container. Once a different container is required, there has to be a second 
tomcat installation instance.

Please feel free to correct me.

David's offer to put something together will be appreciate for the none tomcat 
specialist.



Sent from my Windows Phone

From: David Kerber
Sent: 01.05.2013 02:45
To: Tomcat Users List
Subject: Re: Multiple tomcat containers or instance on same servers

On 4/30/2013 4:34 PM, chris derham wrote:
 Thanks for all your feedbacks.

 Is multiple versions supported or all instances have to be the same build.

 You can have it any which way you wish, e.g. single tomcat in single
 catalina_home with multiple instances each with own catalina_base, or
 multiple versions of tomcat each in own catalina_home each with one or
 more instance each with own catalina_base. You can setup a right mess
 if you wish...

Yeah, what he said...

I have done it both ways, depending on the requirements of the apps
being hosted.  I prefer to have only one instance of TC installed, but
have at times had multiple versions running during transition periods.



 I thought sure that the Tomcat Windows Service page of the users' guide,
 but it is /not/ there:
 http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html

 I wonder if there are any heavy Microsoft Windows users that could
 offer to write a section on Multiple Tomcat Instances specifically
 with Microsoft Windows Services. The file RUNNING.txt only explains
 how to set up Tomcat itself (CATALINA_HOME versus CATALINA_BASE) but
 says nothing about how to configure Tomcat's service runner to point
 to one (other than inferring that one ought to set CATALINA_HOME and
 CATALINA_BASE appropriately).

 For instance, it's probably important to give the services distinct
 names ;)

 The only things that seem to be missing are

 a) set CATALINA_HOME and CATALINA_BASE before running service.bat
 b) when run service.bat, specific a unique service name
 c) you need to copy some files around to allow the CATALINA_BASE to be
 different from each other, e.g. port config

 e.g.

 set CATALINA_HOME=c:\tomcat
 set CATALINA_BASE=c:\tomcat\instances\instance1
 service install tomcat1

 Then to install instance two, just run

 set CATALINA_BASE=c:\tomcat\instances\instance2
 service install tomcat2

 If anyone else wants to chip in with any relevant additions, let me
 know. I might be able to have a look at updating the documentation
 page later, but being as I'm a developer my linguistic skills have
 never really been approved off so not sure any changes will be
 approved :-)

 HTH

 Chris

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org