Install and configuration steps for .jar file install For Geonetwork + ANZMEST 2.8RC2
using Jetty on Windows box and an existing postgres/postgis db with the ApacheDBCPool
***Install***
Download the jar from
http://bluenetdev.its.utas.edu.au/download/geonetwork-2.8.0-RC2-installer-2012-11-09.jar
Make a folder say C:/ANZMEST-2.8RC2 for the install
Run the install .jar and select all the plugins ANZLIC, GAST, MCP etc, the whole lot.
**Configuration**
These steps assume you already had a GN+ANZMEST2.8RC1 before connected to a postgres/postgis db
and you want to keep your existing metadata work and connected resources
i.e thumbnails + data files for download. If you were starting from scratch ignore
step 7 below.
1. **rem out the del and move statements in start_geonetwork.bat, we want to keep all the GN logs!
2. Increase max Java heap to 1 gb with -Xmx1024m in start_geonetwork.bat because iso19135 GCMD
register are large xml files and html.
3.
Bug fix for path problem (see GN wiki ticket #910 FP's fix) to find xsl conversion
scripts for harvestors and impoeeters
- make a new folder xsl/conversion under web/geonetwork/WEB-INF/data
- copy all contents from existing web/geonetwork/xsl/converion to web/geonetwork/WEB-INF/data/xsl/conversion
Doing this fix lets you run the OGCWxS harvestor OK
4. Edit WEB-INF/config.xml and include the line:
config-metadata-schemaplugins.xml
The will include all those useful ANZLIC+MCP schema specific services!
5. Assuming you are using the embedded geoserver web app that comes with install.
In web\geoserver\WEB_-INF\web.xml set the GEOSERVER_DATA_DIR to where the Geoiserver data is:
GEOSERVER_DATA_DIR
C:/YourInstallFolder/web/geoserver/data
6. Configure GN to point to your existing postgis db on startup - edit
WEB-INF/config.xml or copy the config.xml from your last version
that had the postGIS configured properly.
Here is the postgres/postgis config I use:
a. Switch off the default h2 database
set for the h2 resource
b. Set the up postgres resource (the one with ApacheDBCPool not the JNDIPool one)
as follows:
main-db
jeeves.resources.dbms.ApacheDBCPool
postgres
admin
org.postgis.DriverWrapper
jdbc:postgresql_postGIS://localhost:5432/GN-spatial
10
SELECT 1
7. Copy folder metadata_data from old GN to new GN i.e public + private resources from
old install including thumbnails and any attached data files for download
-make a folder 'data' under web/geonetwork/WEB-INF/data
-Copy folder metadata_data to web/geonetwork/WEB-INF/data/data
8. Start up Geonetwork from bin/start-geonetwork.bat