Difference between revisions of "Install and Configure GeoServer"
(→GeoServer Connector installation) |
(→GeoServer Connector installation) |
||
Line 8: | Line 8: | ||
===GeoServer Connector installation=== | ===GeoServer Connector installation=== | ||
− | + | '''GeoServer Connector''' is a jar library that should be included among the jars of a Geoserver instance deployed on SmartGear. The jar includes a ''Tomcat Filter'' and a ''SmartGear Request Handler''. | |
− | + | The detailed steps to install and configure the library on an existing Geosrver instance are listed below: | |
− | + | 1. Download latest version of the jar from [http://maven.research-infrastructures.eu/nexus/index.html#nexus-search;quick~geoserver-connector Nexus repository] | |
− | + | 2. Move the jar file to lib folder (''geoserver/WEB-INF/lib'') of the Geoserver Service deployed on SmartGear | |
− | + | ||
− | + | 3. Configure ''GeoServerFilter'' filter class in the ''web.xml'' of GeoServer Service just '''before filterChainProxy filter''' as follow: | |
+ | |||
+ | '''<filter>''' | ||
+ | '''<filter-name>gcubeAuthenticationFilter</filter-name>''' | ||
+ | '''<filter-class>org.gcube.data.access.connector.GeoServerFilter</filter-class>''' | ||
+ | '''</filter>''' | ||
<filter> | <filter> | ||
− | + | <filter-name>filterChainProxy</filter-name> | |
− | + | .... | |
− | + | ||
+ | 4. Reference the filter mapping to all the URLs of the Service: | ||
<filter-mapping> | <filter-mapping> | ||
Line 28: | Line 33: | ||
</filter-mapping> | </filter-mapping> | ||
− | 5. | + | 5. Edit ''gcube-handlers.xml'' (under WEB-INF) adding '''authentication-filter''' Request Handler under '''request''' element: |
<handlers> | <handlers> | ||
Line 41: | Line 46: | ||
</handlers> | </handlers> | ||
− | |||
− | 6. restart the service | + | 6. restart the service |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Revision as of 11:26, 23 June 2017
Installation
SmartGears Installation
GeoServer Connector installation
GeoServer Connector is a jar library that should be included among the jars of a Geoserver instance deployed on SmartGear. The jar includes a Tomcat Filter and a SmartGear Request Handler.
The detailed steps to install and configure the library on an existing Geosrver instance are listed below:
1. Download latest version of the jar from Nexus repository
2. Move the jar file to lib folder (geoserver/WEB-INF/lib) of the Geoserver Service deployed on SmartGear
3. Configure GeoServerFilter filter class in the web.xml of GeoServer Service just before filterChainProxy filter as follow:
<filter> <filter-name>gcubeAuthenticationFilter</filter-name> <filter-class>org.gcube.data.access.connector.GeoServerFilter</filter-class> </filter> <filter> <filter-name>filterChainProxy</filter-name> ....
4. Reference the filter mapping to all the URLs of the Service:
<filter-mapping> <filter-name>gcubeAuthenticationFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
5. Edit gcube-handlers.xml (under WEB-INF) adding authentication-filter Request Handler under request element:
<handlers> <lifecycle> <profile-management /> </lifecycle> <request> <request-validation /> <request-accounting /> <authentication-filter /> </request> </handlers>
6. restart the service