You are not logged in.

#1 2014-05-20 12:27:36

thore
Member
From: Copenhagen, Denmark
Registered: 2014-05-20
Posts: 3

Installing multiple Tomcat instances

Any best practices for installing multiple Tomcat instances in Arch Linux?

Offline

#2 2014-05-20 15:31:17

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: Installing multiple Tomcat instances

Could you be more specific? The tomcat versions (tomcat6, tomcat7, tomcat8) don't conflict with each other.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#3 2014-05-20 16:08:24

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: Installing multiple Tomcat instances

I'd suggest looking at Docker. Perfect for multiple isolated instances of one application. Then if you need to you can run them behind something like nginx as a reverse proxy.

Scott

Offline

#4 2014-05-21 09:14:41

thore
Member
From: Copenhagen, Denmark
Registered: 2014-05-20
Posts: 3

Re: Installing multiple Tomcat instances

@firecat53: Ok, I'll have a look at that. But as Tomcat is "natively" supporting multiple instances, I would prefer to avoid any additional tools.
@Stebalien: Pick any, per se, as long as we're talking multiple instances of the same version ;-) I'm mostly working with tomcat7, though.

Offline

#5 2014-05-23 11:23:11

teekay
Member
Registered: 2011-10-26
Posts: 271

Re: Installing multiple Tomcat instances

I guess your question is a bit wrong, indeed. You want to run multiple instances of the same installation rather than installing them, right?

If so, you can create a separate runtime folder structure by copying the default /usr/share/tomcat7 one, e.g. to /var/lib/tomcat7-domain1 or something. Configure the ports in conf/server.xml for each instance.

Then copy the default systemd service file (e.g. /usr/lib/systemd/system/tomcat7.service) to /etc/systemd/system under a different name (e.g. tomcat7-domain1.service) and edit the variables in it according to your runtime folder structure.

Offline

#6 2014-06-02 12:16:14

thore
Member
From: Copenhagen, Denmark
Registered: 2014-05-20
Posts: 3

Re: Installing multiple Tomcat instances

Well, that doesn't sound much like an Arch Linux Best Practice. I would be better off doing manual installs of Tomcat from the standard package.

Offline

Board footer

Powered by FluxBB