Install and Configure GeoFence

From Gcube Wiki
Revision as of 11:44, 18 April 2017 by Fabio.sinibaldi (Talk | contribs) (Configuring as SmartGears Application)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


GeoFence is an advanced authorization service for GeoServer instances developed by geosolutions. Purpose of this page is to explain how to configure a GeoFence service instance in order to fulfill the needs of gCube environment. Please refer to third party's website for further details.

Installation

GeoFence is distributed as a web application, which war is contained in a zip file available here. Current adopted version is 3.3.0. Its installation requires :

  • Tomcat 7+
  • Java 8+

Tomcat configuration

Dependency clashes

Following operations are needed in order to fix dependency clash issues with SmartGears distribution (files to be removed can be found under $TOMCAT_HOME/webapps/thredds/WEB-INF):

  • remove file slf4j-api-1.7.14.jar
  • update XercesImpl by replacing jars xml-apis-1.0.b2.jar and xercesImpl-2.6.2.jar with the same ones from version 2.11 (zip file available here).


Configuring as SmartGears Application

In order to enable SmartGears to correctly handle the web application, the gcube-app.xml file must be present under $TOMCAT_HOME/webapps/geofence/WEB-INF location. A valid copy of such file can be retrieved in shared workspace folder https://goo.gl/ct28Jn.

GeoFence plugins for GeoServer