You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by gi...@sita.co.za on 2009/07/28 11:31:09 UTC
Multiple tomcat instances in linux server
Hi Guyz.
I want to run multiple tomcats in my server,I tried the following tutorials from this link http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html.
I created the following folders
tomcat_instance1
tomcat_instance2
tomcat_instance3
I have copied conf/server.xml and web.xml to the above mentioned folder from apache-tomcat-5.5.25.
I did export the following Variables,
CATALINA_HOME=/opt/apache-tomcat-5.5.25
CATALINA_BASE=/opt/tomcat_instances1
For tomcat_instances1.
I made this changes
<Server port="8005" shutdown="SHUTDOWN"> to <Server port="8025" shutdown="SHUTDOWN">
<Connector port="8080" maxHttpHeaderSize="8192"... to <Connector port="8010"
maxHttpHeaderSize="8192"...
<Connector port="8009" enableLookups="false" redirectPort="8443" protocol="AJP/1.3" /> to
<Connector port="8019" enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
For tomcat_instances2.
I made this changes
<Server port="8005" shutdown="SHUTDOWN"> to <Server port="8035" shutdown="SHUTDOWN">
<Connector port="8080" maxHttpHeaderSize="8192"... to <Connector port="8011"
maxHttpHeaderSize="8192"...
<Connector port="8009" enableLookups="false" redirectPort="8443" protocol="AJP/1.3" /> to
<Connector port="8019" enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
when I start the parent tomcat
/opt/apache-tomcat-5.5.25/bin/.startup.sh
The logs file for this apache-tomcat-5.5.25 is empty
when I type this to browser,
http://localhost:8080 it says Failed to Connect
when I start the second tomcat ,it worked fine
http://localhost:8010
I dont get the point where I missed it.
Feel free to send me the step-by-step installation manuals
Best Regards
--
***********************************************
STATE INFORMATION TECHNOLOGY AGENCY
***********************************************
MIYELANI GIVEN SHIRINDA.
E-LEARNING CONSULTANT [SAKAI]
DEPARTMENT: TECHNOLOGY LAB
_______________________________________________
Tel :012 470 1526
Cell:0730133879
E-Mail 1:given.shirinda@sita.co.za
E-Mail 2:mgshirinda@webmail.co.za
_______________________________________________
Failure is simply the opportunity to begin again,this time more intelligently.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Multiple tomcat instances in linux server
Posted by Pid <p...@pidster.com>.
On 28/7/09 14:49, André Warnier wrote:
> Pid wrote:
>> On 28/7/09 10:31, given.shirinda@sita.co.za wrote:
>>> Hi Guyz.
>>>
> ...
>
>>>
>>> For tomcat_instances1.
>>> I made this changes
>>>
>>> <Server port="8005" shutdown="SHUTDOWN"> to<Server port="8025"
>>> shutdown="SHUTDOWN">
>
> etc..
>
> Pid, you missed it. The OP seems to have made the necessary changes.
doh.
once again, email before coffee proven to be a fail condition.
p
> ---------------------------------------------------------------------
> 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: Multiple tomcat instances in linux server
Posted by André Warnier <aw...@ice-sa.com>.
Pid wrote:
> On 28/7/09 10:31, given.shirinda@sita.co.za wrote:
>> Hi Guyz.
>>
...
>>
>> For tomcat_instances1.
>> I made this changes
>>
>> <Server port="8005" shutdown="SHUTDOWN"> to<Server port="8025"
>> shutdown="SHUTDOWN">
etc..
Pid, you missed it. The OP seems to have made the necessary changes.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Multiple tomcat instances in linux server
Posted by Pid <p...@pidster.com>.
On 28/7/09 10:31, given.shirinda@sita.co.za wrote:
> Hi Guyz.
>
>
> I want to run multiple tomcats in my server,I tried the following tutorials from this link http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html.
>
> I created the following folders
>
> tomcat_instance1
> tomcat_instance2
> tomcat_instance3
>
>
> I have copied conf/server.xml and web.xml to the above mentioned folder from apache-tomcat-5.5.25.
>
>
> I did export the following Variables,
> CATALINA_HOME=/opt/apache-tomcat-5.5.25
> CATALINA_BASE=/opt/tomcat_instances1
>
> For tomcat_instances1.
> I made this changes
>
> <Server port="8005" shutdown="SHUTDOWN"> to<Server port="8025" shutdown="SHUTDOWN">
> <Connector port="8080" maxHttpHeaderSize="8192"... to<Connector port="8010"
> maxHttpHeaderSize="8192"...
> <Connector port="8009" enableLookups="false" redirectPort="8443" protocol="AJP/1.3" /> to
> <Connector port="8019" enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
>
> For tomcat_instances2.
> I made this changes
If you're running multiple Tomcats you also need to change the shutdown
port number for each one, to make them all unique.
> <Server port="8005" shutdown="SHUTDOWN"> to<Server port="8035" shutdown="SHUTDOWN">
> <Connector port="8080" maxHttpHeaderSize="8192"... to<Connector port="8011"
> maxHttpHeaderSize="8192"...
> <Connector port="8009" enableLookups="false" redirectPort="8443" protocol="AJP/1.3" /> to
> <Connector port="8019" enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
So you made the AJP connectors the same?
If you don't need them, just comment them out.
p
> when I start the parent tomcat
>
> /opt/apache-tomcat-5.5.25/bin/.startup.sh
>
> The logs file for this apache-tomcat-5.5.25 is empty
>
> when I type this to browser,
> http://localhost:8080 it says Failed to Connect
>
> when I start the second tomcat ,it worked fine
>
> http://localhost:8010
>
>
> I dont get the point where I missed it.
>
> Feel free to send me the step-by-step installation manuals
> Best Regards
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Multiple tomcat instances in linux server
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
To whom it may concern,
On 7/28/2009 5:31 AM, given.shirinda@sita.co.za wrote:
> I want to run multiple tomcats in my server,I tried the following
> tutorials from this link
> http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html.
That link is for clustering. If you just want to run multiple Tomcat
instances, just read the RUNNING.txt file that ships with Tomcat: the
section is called "Advanced Configuration - Multiple Tomcat Instances".
> <Server port="8005" shutdown="SHUTDOWN"> to <Server port="8025" shutdown="SHUTDOWN">
Good.
> <Connector port="8080" maxHttpHeaderSize="8192"... to <Connector port="8010"
> maxHttpHeaderSize="8192"...
Good.
> <Connector port="8009" enableLookups="false" redirectPort="8443" protocol="AJP/1.3" /> to
> <Connector port="8019" enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
Good.
> For tomcat_instances2.
> I made this changes
>
> <Server port="8005" shutdown="SHUTDOWN"> to <Server port="8035" shutdown="SHUTDOWN">
Good.
> <Connector port="8080" maxHttpHeaderSize="8192"... to <Connector port="8011"
> maxHttpHeaderSize="8192"...
Good.
> <Connector port="8009" enableLookups="false" redirectPort="8443" protocol="AJP/1.3" /> to
> <Connector port="8019" enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
Bad: this one is set to the same as above. I think you probably meant to
use port="8020", based upon how you've been numbering things.
Note that the "redirectPort" will have to be something that will get you
to an HTTPS connector, which you haven't defined. If a user is
redirected to an HTTPS URL, then the port number will be wrong.
> when I start the parent tomcat
>
> /opt/apache-tomcat-5.5.25/bin/.startup.sh
.startup.sh? What about running startup.sh?
> The logs file for this apache-tomcat-5.5.25 is empty
Which exact file did you look at?
> when I type this to browser,
> http://localhost:8080 it says Failed to Connect
>
> when I start the second tomcat ,it worked fine
>
> http://localhost:8010
Right: one of your Tomcats started correctly (the one that started
first) and one failed to start because the port number (8019) was
unavailable.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkpvNQkACgkQ9CaO5/Lv0PB2fQCdGrzsHuS0jDwnRX5CiOwPOpQb
zF4AoLSwxKcfBo7QhhEaa5mheVOcRe6r
=UQKV
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org