You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by JUGAL SHAH <sh...@gmail.com> on 2017/04/20 13:11:16 UTC

Running multiple instance of tomcat on windows

I have to run multiple instance of tomcat server on a single system with
window 8.1 OS.I searched the topic I got the solution to make 2 copies of
tomcat and change the ports in the server.xml file I tried it but  it
didn't work tomcat still continues to run only on port 8080.Any help?

Re: Running multiple instance of tomcat on windows

Posted by JUGAL SHAH <sh...@gmail.com>.
my first instance port are:

<Server port="8005" shutdown="SHUTDOWN">

 <Connector port="8085" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

 <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />


my Second  instance port are:

<Server port="8885" shutdown="SHUTDOWN">

<Connector port="8886" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8444" />

<Connector port="8887" protocol="AJP/1.3" redirectPort="8444" />




when i run the second instance it says page can't be reached
Their are many log files which one should I look into?
and I am running tomcat version 9.0.0.M6
I am running it directly on browser (localhost:8085)

8085 runs fine its the port mentioned in the original file

On Thu, Apr 20, 2017 at 6:47 PM, André Warnier (tomcat) <aw...@ice-sa.com>
wrote:

> On 20.04.2017 15:11, JUGAL SHAH wrote:
>
>> I have to run multiple instance of tomcat server on a single system with
>> window 8.1 OS.I searched the topic I got the solution to make 2 copies of
>> tomcat and change the ports in the server.xml file I tried it but  it
>> didn't work tomcat still continues to run only on port 8080.Any help?
>>
>>
> What happens when you try to run the second instance of Tomcat ?
> What do the logfiles say ?
> (And : what version of tomcat are you running, and how (as a service ? in
> a command window ?))
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Running multiple instance of tomcat on windows

Posted by "André Warnier (tomcat)" <aw...@ice-sa.com>.
On 20.04.2017 15:11, JUGAL SHAH wrote:
> I have to run multiple instance of tomcat server on a single system with
> window 8.1 OS.I searched the topic I got the solution to make 2 copies of
> tomcat and change the ports in the server.xml file I tried it but  it
> didn't work tomcat still continues to run only on port 8080.Any help?
>

What happens when you try to run the second instance of Tomcat ?
What do the logfiles say ?
(And : what version of tomcat are you running, and how (as a service ? in a command window ?))





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


Re: Running multiple instance of tomcat on windows

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Jugal,

(Posting back to the users' list. Stupid Thunderbird changed its REPLY
semantics.)

On 4/20/17 9:11 AM, JUGAL SHAH wrote:
> I have to run multiple instance of tomcat server on a single system
> with window 8.1 OS.I searched the topic I got the solution to make
> 2 copies of tomcat and change the ports in the server.xml file I
> tried it but  it didn't work tomcat still continues to run only on
> port 8080.Any help?

Read the RUNNING.txt that came with your Tomcat version. You can have
one installation of Tomcat but with separate configurations.

You will, of course, have to have separate port numbers for everything.

- -chris


-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJY+PQ7AAoJEBzwKT+lPKRYkooP/A5KHffyeLSUSIHsk9Z2BIV6
6iNxizMBEgEtajB574vBQ7q4NJVHAFoBhLb8uXRxw445KFUH16lYa9AWum+uU/KC
Aa48fS3JSAIlgdgcE294w6De4tpw2ossqVxNl42wj+A6FtTCQ6GfzN4Vo6C/xvzi
GzgynHOXMRT/0wwVteGvErIOUxmShhQBMas3h4/Xuvdrhcx0hXQgrWTL9o6egIw8
jTPtmRain2+V0GnC0hF8237LY7yxS3takB3GA8RRiotDArG0rgIwqEr+IvbEHiW3
/0i9lMhPE00xvEfgpxOYGRNhiSlzbqjh3ifAxqJr8vdL7FluIFidbWUPvbIi9Qaw
8ZaSH5KuOFPO8gztibXuu7p3AseADOStpeAjz7/Nj78HTTt3iS3KkMvuqMqJEyBp
x61pJUnNIeVHvqRl6Pwhw5As1JIr2jWX7FS97dVJyHGGOuG8pHv5TBmXKx+on8tu
hjPilkMADe+lNfeq/FErhzJFxJrSq3KCcsSzY6IFOAenNmSGbZ2aKfiirc0yfWzV
Hv5j9grYirH4usJKiivgnFW9ljYIP5S06xhSzqgcfBax4HcS1bk2YCRgBLMS33pA
WAYXLwMirvHIfDrkBXbNrlVPGE5AxqLDlF1moSTWaP+l6gSVaa9mmyxoxo6t9Kam
EBAyS22iRK++zKsDxZ56
=Cm5d
-----END PGP SIGNATURE-----

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


Re: Running multiple instance of tomcat on windows

Posted by Suvendu Sekhar Mondal <su...@gmail.com>.
On Thu, Apr 20, 2017 at 7:19 PM, JUGAL SHAH <sh...@gmail.com> wrote:
> my first instance port are:
>
> <Server port="8005" shutdown="SHUTDOWN">
>
>  <Connector port="8085" protocol="HTTP/1.1"
>                connectionTimeout="20000"
>                redirectPort="8443" />
>
>  <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
>
>
> my Second  instance port are:
>
> <Server port="8885" shutdown="SHUTDOWN">
>
> <Connector port="8886" protocol="HTTP/1.1"
>                connectionTimeout="20000"
>                redirectPort="8444" />
>
> <Connector port="8887" protocol="AJP/1.3" redirectPort="8444" />
>
>
>
>
> when i run the second instance it says page can't be reached
> Their are many log files which one should I look into?
> and I am running tomcat version 9.0.0.M6
> I am running it directly on browser (localhost:8085)
>
> 8085 runs fine its the port mentioned in the original file
>
So you have two URLs now, assuming you are using HTTP:
localhost:8085 <for 1st instance
localhost:8886 <for 2nd instance

Are you saying 1st one is working but the 2nd one is not working? If
so, please start with Catalina log of the 2nd instance and see if it
had logged some error. Also please check localhost_access_log of the
2nd instance right after you get the failed message. It will tell you
whether your request has reached to the 2nd instance or not.

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


Re: Running multiple instance of tomcat on windows

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Jugal,

On 4/20/17 9:49 AM, JUGAL SHAH wrote:
> my first instance port are:
> 
> <Server port="8005" shutdown="SHUTDOWN">
> 
> <Connector port="8085" protocol="HTTP/1.1" 
> connectionTimeout="20000" redirectPort="8443" />
> 
> <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
> 
> 
> my Second  instance port are:
> 
> <Server port="8885" shutdown="SHUTDOWN">
> 
> <Connector port="8886" protocol="HTTP/1.1" 
> connectionTimeout="20000" redirectPort="8444" />
> 
> <Connector port="8887" protocol="AJP/1.3" redirectPort="8444" />
> 
> when i run the second instance it says page can't be reached> Their
> are many log files which one should I look into?
You want either catalina.out or catalina-stdout or something like that.

You can also run Tomcat like this form the command-line and everything
will come out on the console:

C:\Path\To\Tomcat> bin\catalina.bat run

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJY+PR0AAoJEBzwKT+lPKRYzfgQAJxu0M9yxG9o6E5SRjsMKf6o
7IfnQSdZ0rryqD52ZufVPiIguglpbD9+dAMypivcYRXaI4S0zUIzmGIuiGmNkfCt
bcT45JbVfokuMpi4bf9xoPpNXdU7skgc+pvA7eWAbQhZdJqzO4xPgHIo0caAvmPR
AW+sF+wKAadmAK6a2hDEL+Ddycysy4o1VeCqVSKBchmdB84zlWcIN7pozKBXUx5l
zzekwsyGTfG6y+T2jP570JVeLeBmwlS4YA0kPCcMA7POzzWS6SBV1rVlLSF43Qoe
g6cbbz35H/OkAVSp5lRlMXL0Ld6hmb3i8Xc4J9CWflx+SaU/j0ePY1TuJhAky0Ni
42dLjW3pFyopkynJ/YfLtYtfquJc5S4mLRT7978MWcZ2VNHe2KQT9NnLxnablAWH
51sRgXdtXoqGFR+5chKBOzlEU8QPGEgBwxEvXPoYdxv8vjh7AbbacN9fIxP1AM/L
PHOsnLBlJHUweyz8JOjRNFDIIFMugvxzFD2sLtNodYS/5UUmXoHknJR1HS2rhJO/
31HO3zsxOmQueL8YrLH0uTSYbisZw8YXBryeYHbXqqgzSl+Ys976uusD3R+ZTM6J
90NF44dctXFHEkfADxME0NjImsQQejgffX9UQDapBOam5Z/Fmrm0ObCbdN/CLyZH
ZO0t6Jrbl0k5P6goVE1h
=+VuX
-----END PGP SIGNATURE-----

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


Re: Running multiple instance of tomcat on windows

Posted by JUGAL SHAH <sh...@gmail.com>.
my first instance port are:

<Server port="8005" shutdown="SHUTDOWN">

 <Connector port="8085" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

 <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />


my Second  instance port are:

<Server port="8885" shutdown="SHUTDOWN">

<Connector port="8886" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8444" />

<Connector port="8887" protocol="AJP/1.3" redirectPort="8444" />




when i run the second instance it says page can't be reached
Their are many log files which one should I look into?
and I am running tomcat version 9.0.0.M6
I am running it directly on browser (localhost:8085)

8085 runs fine its the port mentioned in the original file

On Thu, Apr 20, 2017 at 7:04 PM, Suvendu Sekhar Mondal <su...@gmail.com>
wrote:

> Jugal,
>
> On Thu, Apr 20, 2017 at 6:41 PM, JUGAL SHAH <sh...@gmail.com>
> wrote:
> > I have to run multiple instance of tomcat server on a single system with
> > window 8.1 OS.I searched the topic I got the solution to make 2 copies of
> > tomcat and change the ports in the server.xml file I tried it but  it
> > didn't work tomcat still continues to run only on port 8080.Any help?
>
> Which ports(connector/shutdown/redirect) you have changed? Can you
> please post server.xml for both of your Tomcat instances? Also please
> check what Andre had suggested.
>
> ~Suvendu
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Running multiple instance of tomcat on windows

Posted by Suvendu Sekhar Mondal <su...@gmail.com>.
Jugal,

On Thu, Apr 20, 2017 at 6:41 PM, JUGAL SHAH <sh...@gmail.com> wrote:
> I have to run multiple instance of tomcat server on a single system with
> window 8.1 OS.I searched the topic I got the solution to make 2 copies of
> tomcat and change the ports in the server.xml file I tried it but  it
> didn't work tomcat still continues to run only on port 8080.Any help?

Which ports(connector/shutdown/redirect) you have changed? Can you
please post server.xml for both of your Tomcat instances? Also please
check what Andre had suggested.

~Suvendu

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