You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jim the Standing Bear <st...@gmail.com> on 2006/03/22 19:55:21 UTC
running two instances of tomcat
Hi,
Is there a way to run two instances of tomcat 5.5 on the same machine?
Because me and a coworker were developing some webapps using the same node,
but under two different tomcat instances. We just learned a painful lesson
that as soon as the second instance of tomcat is launched, the first one
dies. Is there a way to get around the problem? Thank you.
-- Jim
Re: running two instances of tomcat
Posted by David Rush <da...@rushtone.com>.
I'm confused.
I first installed 5.5.15 using the exe (testing on a WinXP machine right
now), and got it working.
But to run multiple instances, it looks as though I need the service.bat
script, which is not included in the .exe. So I de-installed Tomcat,
downloaded the .zip, and expanded it. Now I have service.bat, but I no
longer have tomcat5.exe in the bin directory (or anywhere else).
So I need to do one .exe install, then use the .zip for the 2nd, 3rd,
etc. installs, or what?
I see that Nic has posted a rather detailed "howto"... is that with the
.exe installation?
David
David Kerber wrote:
> I got it working no problem on Windows, running 5.5.12. Just had to
> mess with the service installation scripts a bit to give each of them
> different names. A little hassle, but not a big one.
>
>
> Nic Daniau wrote:
>
>> That was the case in 4.1 yes, but it doesn't work with 5.5 on Windows
>> platform, because of the way the service is set up from the nsi scrip
>> (that
>> you can read from tomcat source). I've written down a procedure to
>> overcome
>> this and I will post it tomorrow (its on my laptop which I left at the
>> office tonight). I've tested it on live servers it works fine.
>>
>> Ideally I hope the guys who write the windows deployer will one day
>> allow
>> the installer to ask for
>> 1) the name of the servive and not force it to Tomcat5 (whic is the main
>> issue)
>> 2) use that service name for setting up the reg keys (and not use
>> constants)
>> 3) let the user choose the name of the Program menu it's copying the
>> shortucut to
>> If I have the time I will post a feature request on bugzilla...
>>
>> Will definitively post my step-by-step procedure tomorrow
>> Nic
>>
>> On 22/03/06, David Kerber <dc...@verizon.net> wrote:
>>
>>
>>> Jim the Standing Bear wrote:
>>>
>>>
>>>> Hi,
>>>>
>>>> Is there a way to run two instances of tomcat 5.5 on the same machine?
>>>> Because me and a coworker were developing some webapps using the same
>>>>
>>> node,
>>>
>>>> but under two different tomcat instances. We just learned a painful
>>>>
>>> lesson
>>>
>>>> that as soon as the second instance of tomcat is launched, the
>>>> first one
>>>> dies. Is there a way to get around the problem? Thank you.
>>>>
>>>> -- Jim
>>>>
>>>>
>>>>
>>>>
>>> I'm running about 4 instances of tomcat on a single machine, so yes
>>> it's
>>> no problem. But they need to all be listening on different ports, and
>>> might need to be supporting different contexts.
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>>
>>
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: running two instances of tomcat
Posted by David Kerber <dc...@verizon.net>.
I got it working no problem on Windows, running 5.5.12. Just had to
mess with the service installation scripts a bit to give each of them
different names. A little hassle, but not a big one.
Nic Daniau wrote:
>That was the case in 4.1 yes, but it doesn't work with 5.5 on Windows
>platform, because of the way the service is set up from the nsi scrip (that
>you can read from tomcat source). I've written down a procedure to overcome
>this and I will post it tomorrow (its on my laptop which I left at the
>office tonight). I've tested it on live servers it works fine.
>
>Ideally I hope the guys who write the windows deployer will one day allow
>the installer to ask for
>1) the name of the servive and not force it to Tomcat5 (whic is the main
>issue)
>2) use that service name for setting up the reg keys (and not use constants)
>3) let the user choose the name of the Program menu it's copying the
>shortucut to
>If I have the time I will post a feature request on bugzilla...
>
>Will definitively post my step-by-step procedure tomorrow
>Nic
>
>On 22/03/06, David Kerber <dc...@verizon.net> wrote:
>
>
>>Jim the Standing Bear wrote:
>>
>>
>>
>>>Hi,
>>>
>>>Is there a way to run two instances of tomcat 5.5 on the same machine?
>>>Because me and a coworker were developing some webapps using the same
>>>
>>>
>>node,
>>
>>
>>>but under two different tomcat instances. We just learned a painful
>>>
>>>
>>lesson
>>
>>
>>>that as soon as the second instance of tomcat is launched, the first one
>>>dies. Is there a way to get around the problem? Thank you.
>>>
>>>-- Jim
>>>
>>>
>>>
>>>
>>>
>>I'm running about 4 instances of tomcat on a single machine, so yes it's
>>no problem. But they need to all be listening on different ports, and
>>might need to be supporting different contexts.
>>
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
>>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: running two instances of tomcat
Posted by Nic Daniau <ni...@googlemail.com>.
That was the case in 4.1 yes, but it doesn't work with 5.5 on Windows
platform, because of the way the service is set up from the nsi scrip (that
you can read from tomcat source). I've written down a procedure to overcome
this and I will post it tomorrow (its on my laptop which I left at the
office tonight). I've tested it on live servers it works fine.
Ideally I hope the guys who write the windows deployer will one day allow
the installer to ask for
1) the name of the servive and not force it to Tomcat5 (whic is the main
issue)
2) use that service name for setting up the reg keys (and not use constants)
3) let the user choose the name of the Program menu it's copying the
shortucut to
If I have the time I will post a feature request on bugzilla...
Will definitively post my step-by-step procedure tomorrow
Nic
On 22/03/06, David Kerber <dc...@verizon.net> wrote:
>
> Jim the Standing Bear wrote:
>
> >Hi,
> >
> >Is there a way to run two instances of tomcat 5.5 on the same machine?
> >Because me and a coworker were developing some webapps using the same
> node,
> >but under two different tomcat instances. We just learned a painful
> lesson
> >that as soon as the second instance of tomcat is launched, the first one
> >dies. Is there a way to get around the problem? Thank you.
> >
> >-- Jim
> >
> >
> >
> I'm running about 4 instances of tomcat on a single machine, so yes it's
> no problem. But they need to all be listening on different ports, and
> might need to be supporting different contexts.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Re: running two instances of tomcat
Posted by David Kerber <dc...@verizon.net>.
Jim the Standing Bear wrote:
>Hi,
>
>Is there a way to run two instances of tomcat 5.5 on the same machine?
>Because me and a coworker were developing some webapps using the same node,
>but under two different tomcat instances. We just learned a painful lesson
>that as soon as the second instance of tomcat is launched, the first one
>dies. Is there a way to get around the problem? Thank you.
>
>-- Jim
>
>
>
I'm running about 4 instances of tomcat on a single machine, so yes it's
no problem. But they need to all be listening on different ports, and
might need to be supporting different contexts.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org