Hello community,
because of unsolved problems with upgrading GeoServer from 2.7.0 to 2.8.0 I would like to run different GeoServer instances with different data directories on one Ubuntu machine.
There is no clear hint or documentation in the web.
I guess I can install different GeoServer instances in one tomcat7 servlet simply by installing them in different installation folders like /var/lib/tomcat7/webapps/geoserver270 and /var/lib/tomcat7/webapps/geoserver280 and /var/lib/tomcat7/webapps/geoserver290 …
In WEB-INF/web.xml I will point each Geoserver instance to its own external data directory.
Can you recommend this setup?
Do I need to specify a different port for each GeoServer instance?
Thanks for your help.
Izabella
Izabella,
multiple GeoServer instances can coexist in a single Tomcat instance. This is a standard deployment pattern for Java servlets and as far as I know often used for GeoServer. All servlets use the port configured for Tomcat but each has a different context paths in its URL: for example localhost:8080/geoserver270 and localhost:8080/geoserver280 and so on.
Under the hood, each servlet gets its own class loader so there is no conflict between classes from different servlets. It is possible for servlets to interfere with each other if they do bad things like changing JVM system properties; such problems are bugs and should be fixed. All servlets see the same environment variables so options configured for one GeoServer will be enabled for all.
Kind regards,
Ben.
On 06/11/15 10:25, Izabella Mancini wrote:
Hello community,
because of unsolved problems with upgrading GeoServer from 2.7.0 to 2.8.0 I
would like to run different GeoServer instances with different data
directories on one Ubuntu machine.
There is no clear hint or documentation in the web.
I guess I can install different GeoServer instances in one tomcat7 servlet
simply by installing them in different installation folders like
/var/lib/tomcat7/webapps/geoserver270 and
/var/lib/tomcat7/webapps/geoserver280 and
/var/lib/tomcat7/webapps/geoserver290 ...
In WEB-INF/web.xml I will point each Geoserver instance to its own external
data directory.
Can you recommend this setup?
Do I need to specify a different port for each GeoServer instance?
Thanks for your help.
Izabella
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/>
New Zealand