-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 To whom it may concern,
On 7/28/2009 5:31 AM, given.shiri...@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-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org