tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dOE <doep...@gmail.com>
Subject Re: How can I hard code the IP address on a single server with multiple Tomcat instances.
Date Mon, 03 Nov 2008 14:15:58 GMT
I was FINALLY able to make this work using the single isapi.dll
tomcat_connector, and two separate Tomcat instances on the same host.

I swapped the server.xml I was using with a default one, and I followed the
information in the LinuxJournal url below, and only changed what was
mentioned (essentially only ports 8005 8080 8009) and that was all I needed
to do to get the 2nd instance up on the same host.

I was trying to do to much, and be to granule on my configs causing things
to not work.

Thanks to all who were patient enough to help out.

On Thu, Oct 30, 2008 at 7:07 AM, Serge Fonville <serge.fonville@gmail.com>wrote:

> If you have two completely separate installations, you should specify a
> catalina home in the batch file that starts the instance, if just the config
> an apps are separate, specify a catalina base in the startup fileAlso you
> could use http://www.linuxjournal.com/article/8561 for a more step by step
> approach to configuring multiple instances
> You should be able to create a service for each instance (specify the
> service name with the service.bat)
> I found all the links so far by googling for 'tomcat multiple instances
> windows' (without the quotes)
>
> Regards,
>
> Serge Fonville
>
> On Thu, Oct 30, 2008 at 12:37 PM, dOE <doepain@gmail.com> wrote:
>
>> Thanks for the reply Serge,
>>
>> On Win32 I have the CATALINA_HOME set to pont to where Tomcat is
>> installed,
>> and were server1 resides.  To configure CATALINA_BASE the same way, but
>> pont
>> to another directory that ONLY contains *conf*, *webapps*, *logs*, *temp*,
>> and *work*?  What would need to be in the conf - *server.xml*, *web.xml*,
>> and possibly *tomcat-users.xml*?
>>
>> On Thu, Oct 30, 2008 at 3:45 AM, Serge Fonville <serge.fonville@gmail.com
>> >wrote:
>>
>> > You can define a CATALINA_HOME/BASE in the startup
>> file(catalina.bat/sh).
>> > (all it does now is use the global environment variable because it isn't
>> > specified inside the file)You could define a HOME1 and HOME2 variable,
>> but
>> > that would require a lot more changes inside the startup file.
>> >
>> > To be sure, specify it near the top (before used)
>> > That way the alternate value only applies inside that instance
>> >
>> > Does this help?
>> >
>> > Regards,
>> >
>> > Serge Fonville
>> >
>> >
>> > On Wed, Oct 29, 2008 at 8:16 PM, dOE <doepain@gmail.com> wrote:
>> >
>> >> Guys, please don't give up on me yet, I am going to go read up on the
>> >> documentation tonight to see what else I need to do to get this site
>> >> working.
>> >>
>> >> I think my focus will be more for the Win32 rather 'nix because it more
>> of
>> >> a
>> >> priority.
>> >>
>> >> On Wed, Oct 29, 2008 at 2:17 PM, dOE <doepain@gmail.com> wrote:
>> >>
>> >> > Now this needs to be replicated on a Win32 system as well following
>> this
>> >> > how can this be done?  The service can not be started by a
>> command-line
>> >> > script (ideally).
>> >> >
>> >> >
>> >> > On Wed, Oct 29, 2008 at 2:02 PM, Hassan Schroeder <
>> >> > hassan.schroeder@gmail.com> wrote:
>> >> >
>> >> >> On Wed, Oct 29, 2008 at 10:23 AM, dOE <doepain@gmail.com>
wrote:
>> >> >>
>> >> >> > perhaps this is where my problem is at this stage.  I would
need a
>> >> >> > "Catalina_Home2" and have that pointing to *server2 *...?
I am
>> >> guessing,
>> >> >> but
>> >> >> > would this mean I need to edit every mention of Catalina_Home
to
>> >> >> > Catalina_Home2 in the *.properties files?
>> >> >>
>> >> >> No, just start the second instance from a shell with the appropriate
>> >> >> value for CATALINA_HOME defined.
>> >> >>
>> >> >> --
>> >> >> Hassan Schroeder ------------------------
>> hassan.schroeder@gmail.com
>> >> >>
>> >> >
>> >> >
>> >>
>> >
>> >
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message