You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Tran, Minh" <Mi...@emoryhealthcare.org> on 2014/09/19 21:22:07 UTC

RE: May I have multiple web applications running on one tomcat server?

Hello All,
   Hope you all have a good Friday. I am new to Tom Cat server and I have a basic question which I would like to seek your helps and expertise.  Could I have a several web applications running on one tomcat server? I am using tomcat manager version 7. If I can , how can i do it?  Thanks in advance for all of your helps.

Best regards,
Tom

________________________________

This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).

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


Re: May I have multiple web applications running on one tomcat server?

Posted by "James H. H. Lampert" <ja...@touchtonecorp.com>.
On 9/19/14 12:22 PM, Tran, Minh wrote:
> Hope you all have a good Friday. I am new to Tom Cat server and I
> have a basic question which I would like to seek your helps and
> expertise.  Could I have a several web applications running on one
> tomcat server? I am using tomcat manager version 7. If I can , how
> can i do it?  Thanks in advance for all of your helps.

Sure. In the Tomcat we have running on our production AS/400, for 
example, we have two instances of our Wintouch Web webapp (production, 
running as "ROOT," and demo, running as "wintouchdemo," along with 
another webapp that allows users to obtain limited-time license 
authorization codes for our products, and an additional context that 
consists of nothing but static pages.

And we have another Tomcat server running on a Win-Doze box, that has 
two more instances of our Wintouch Web webapp (but still accessing 
Wintouch on the aforementioned AS/400).

This is, in both cases, in addition to the "manager" and "host-manager" 
contexts provided with Tomcat.

Which is to say that straight out of the box, Tomcat has multiple 
webapps running, just for "manager," "host-manager," and the 
demonstration "ROOT."

--
JHHL

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


Re: May I have multiple web applications running on one tomcat server?

Posted by David kerber <dc...@verizon.net>.
On 9/19/2014 3:36 PM, Tran, Minh wrote:
> Thanks one more question about running multiple web apps on one Tom Cat server if you would not mind;
> Suppose I am now having two web applications call app1 , and app2; and I deploy both of them to Tomcat.
>
> Suppose I am able to access  app1 on  http://localhost:8080/app1;
> and app2 on http://localhost:8080/app2
>
>
> My question is that could I be able to run both applications app1 and app2 at the same time?  I don't know it because I see both applications use same port so that I may not be  able to access them at same time. I may be wrong on this; so please correct me.

Yes, that is how it works.  It is Tomcat that is listening on a specific 
port, not your application as such.  TC passes the request on to the 
appropriate app.


>
> Thanks again for all of your help,
> Tom
> ________________________________________
> From: Christopher Schultz [chris@christopherschultz.net]
> Sent: Friday, September 19, 2014 3:23 PM
> To: Tomcat Users List
> Subject: Re: May I have  multiple web applications running on one tomcat server?
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Tran,
>
> On 9/19/14 3:22 PM, Tran, Minh wrote:
>> Could I have a several web applications running on one tomcat
>> server?
>
> Yes.
>
>> I am using tomcat manager version 7. If I can , how can i do it?
>
> Place more than one WAR file (or exploded WAR directory) in your
> webapps/ directory.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBCAAGBQJUHIK8AAoJEBzwKT+lPKRYiNMQAJh23tFzsdQD46VAxu2J3YR7
> qZiuDHBbXyZHs0DEgE810QrUBZTupQOxxdcprqV6Ld/k6mBCTjtMaY3mfnTWaQEi
> poNcr+0UZxlTzvyCJM+Lq8D69sTdGmm/GxU9fHlmPv2bVZMOUdrM14q/ExnOOK1z
> HNDgROLUOWC8GJS5TBOc8RQOh8UzR6Wkv0IjP378OcqyVx8U3hd/XxXl2luXz+gZ
> ZUOhhqNskAbCHYH2o+CWI6cPSfGfpLW1G++8mg2G2nvPBGXHpM0EX8NUtOTZNSFX
> T7sqNtQjmKaN0C3kMLLJ4BRs4KhgTSOtkHJof+aW0MxLRBIRM4dNF+UbR1GONJNk
> 8sxlJUBoP5v+Ex9GQ1x0LAipMvCBXCATgBeXc2IboiLxHtyYr0aaQg8I/4M5WiEj
> CFDmrurS+/sG74B39fTpFLJnkDE+sAMMzvf1zIIaZr4KzGPDuSmgAemZMQ322juC
> DLBwI+zlyMfdsY2/ETLktar1iuZLl2GOt6ZYDxd3/y68VVwfluhVPjz+YNkysOOb
> O4EhAZYz3Z7NWjVw3iMXXVbUJ8ETM6lPZxHs1rLYWTPN8uLIrpeyq1ppj/alV24+
> 8xdptPgv9J6/37Lw2DLW9FJBpF0OMiJ+Ng/RQ+HLUWBpKooML9z5CL+Uc0xdIUCZ
> h4ZKAgb/Udqraxo5FJ8j
> =kEeC
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
> ________________________________
>
> This e-mail message (including any attachments) is for the sole use of
> the intended recipient(s) and may contain confidential and privileged
> information. If the reader of this message is not the intended
> recipient, you are hereby notified that any dissemination, distribution
> or copying of this message (including any attachments) is strictly
> prohibited.
>
> If you have received this message in error, please contact
> the sender by reply e-mail message and destroy all copies of the
> original message (including attachments).
>
> ---------------------------------------------------------------------
> 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: May I have multiple web applications running on one tomcat server?

Posted by "Tran, Minh" <Mi...@emoryhealthcare.org>.
Thanks one more question about running multiple web apps on one Tom Cat server if you would not mind;
Suppose I am now having two web applications call app1 , and app2; and I deploy both of them to Tomcat.

Suppose I am able to access  app1 on  http://localhost:8080/app1;
and app2 on http://localhost:8080/app2


My question is that could I be able to run both applications app1 and app2 at the same time?  I don't know it because I see both applications use same port so that I may not be  able to access them at same time. I may be wrong on this; so please correct me.

Thanks again for all of your help,
Tom
________________________________________
From: Christopher Schultz [chris@christopherschultz.net]
Sent: Friday, September 19, 2014 3:23 PM
To: Tomcat Users List
Subject: Re: May I have  multiple web applications running on one tomcat server?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Tran,

On 9/19/14 3:22 PM, Tran, Minh wrote:
> Could I have a several web applications running on one tomcat
> server?

Yes.

> I am using tomcat manager version 7. If I can , how can i do it?

Place more than one WAR file (or exploded WAR directory) in your
webapps/ directory.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUHIK8AAoJEBzwKT+lPKRYiNMQAJh23tFzsdQD46VAxu2J3YR7
qZiuDHBbXyZHs0DEgE810QrUBZTupQOxxdcprqV6Ld/k6mBCTjtMaY3mfnTWaQEi
poNcr+0UZxlTzvyCJM+Lq8D69sTdGmm/GxU9fHlmPv2bVZMOUdrM14q/ExnOOK1z
HNDgROLUOWC8GJS5TBOc8RQOh8UzR6Wkv0IjP378OcqyVx8U3hd/XxXl2luXz+gZ
ZUOhhqNskAbCHYH2o+CWI6cPSfGfpLW1G++8mg2G2nvPBGXHpM0EX8NUtOTZNSFX
T7sqNtQjmKaN0C3kMLLJ4BRs4KhgTSOtkHJof+aW0MxLRBIRM4dNF+UbR1GONJNk
8sxlJUBoP5v+Ex9GQ1x0LAipMvCBXCATgBeXc2IboiLxHtyYr0aaQg8I/4M5WiEj
CFDmrurS+/sG74B39fTpFLJnkDE+sAMMzvf1zIIaZr4KzGPDuSmgAemZMQ322juC
DLBwI+zlyMfdsY2/ETLktar1iuZLl2GOt6ZYDxd3/y68VVwfluhVPjz+YNkysOOb
O4EhAZYz3Z7NWjVw3iMXXVbUJ8ETM6lPZxHs1rLYWTPN8uLIrpeyq1ppj/alV24+
8xdptPgv9J6/37Lw2DLW9FJBpF0OMiJ+Ng/RQ+HLUWBpKooML9z5CL+Uc0xdIUCZ
h4ZKAgb/Udqraxo5FJ8j
=kEeC
-----END PGP SIGNATURE-----

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


________________________________

This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).

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


Re: May I have multiple web applications running on one tomcat server?

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

Tran,

On 9/19/14 3:22 PM, Tran, Minh wrote:
> Could I have a several web applications running on one tomcat
> server?

Yes.

> I am using tomcat manager version 7. If I can , how can i do it?

Place more than one WAR file (or exploded WAR directory) in your
webapps/ directory.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUHIK8AAoJEBzwKT+lPKRYiNMQAJh23tFzsdQD46VAxu2J3YR7
qZiuDHBbXyZHs0DEgE810QrUBZTupQOxxdcprqV6Ld/k6mBCTjtMaY3mfnTWaQEi
poNcr+0UZxlTzvyCJM+Lq8D69sTdGmm/GxU9fHlmPv2bVZMOUdrM14q/ExnOOK1z
HNDgROLUOWC8GJS5TBOc8RQOh8UzR6Wkv0IjP378OcqyVx8U3hd/XxXl2luXz+gZ
ZUOhhqNskAbCHYH2o+CWI6cPSfGfpLW1G++8mg2G2nvPBGXHpM0EX8NUtOTZNSFX
T7sqNtQjmKaN0C3kMLLJ4BRs4KhgTSOtkHJof+aW0MxLRBIRM4dNF+UbR1GONJNk
8sxlJUBoP5v+Ex9GQ1x0LAipMvCBXCATgBeXc2IboiLxHtyYr0aaQg8I/4M5WiEj
CFDmrurS+/sG74B39fTpFLJnkDE+sAMMzvf1zIIaZr4KzGPDuSmgAemZMQ322juC
DLBwI+zlyMfdsY2/ETLktar1iuZLl2GOt6ZYDxd3/y68VVwfluhVPjz+YNkysOOb
O4EhAZYz3Z7NWjVw3iMXXVbUJ8ETM6lPZxHs1rLYWTPN8uLIrpeyq1ppj/alV24+
8xdptPgv9J6/37Lw2DLW9FJBpF0OMiJ+Ng/RQ+HLUWBpKooML9z5CL+Uc0xdIUCZ
h4ZKAgb/Udqraxo5FJ8j
=kEeC
-----END PGP SIGNATURE-----

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