Deploy GeoNetwork Enterprise
To install GeoNetwork Enterprise on your existing Tomcat instance, follow these steps:
-
The download instructions provided a zip archive with the following files:
geonetwork.war
license.html
release_notes.html
-
Stop the Tomcat service.
Open Tomcat Manager using start menu: Start → Tomcat → Tomcat Manager
Navigate to the General tab, locate Server Status, and press Stop button.
It is important to follow the instructions to stop the service before deploying
geonetwork.war
.-
Ensure the JNDI connection is setup with the expected jdbc driver in
$CATALINA_HOME/lib
. -
We are stopping the service while installing the geonetwork web application to prevent tomcat performing an automatic undeploy / deploy cycle to update the applicaiton in place.
The undeploy step replaces the
Catalina/localhost/geonetwork.xml
which is used for JNDI connection details.
-
-
Deploy
geonetwork.war
web archive:Open the Tomcat Program folder by using the Start menu to select Apache Tomcat → Tomcat Program Directory.
Open the
webapps
folder.Copy the
geonetwork.war
web archive (from your GeoNetwork Enterprise download) towebapps
folder.When tomcat starts up it will deploy the
geoserver.war
web application creating a folderwebapps/geonetwork
for the running application.Copy the
geonetwork.war
file to the$CATALINA_HOME/webapps
folder.` bash cp /tmp/geonetwork-enterprise/geonetwork.war -d $CATALINA_HOME/webapps/
During startup tomcat will automaticity deploy the web-archive file and create a
$CATALINA_HOME/webapps/geonetwork
folder.Copy the
geonetwork.war
file to the$CATALINA_HOME/webapps
folder.During startup tomcat will automaticity deploy the web-archive file and create a
$CATALINA_HOME/webapps/geonetwork
folder.Some care with jdbc drivers is required when installing with JNDI, this requires a manual deploy process.
Unzip
geonetwork.war
to$CATALINA_HOME/webapps/geonetwork
folder.Copy the postgresql driver from
$CATALINA_HOME/webapps/geonetwork/WEB-INF/lib/
to$CATALINA_HOME/lib
Note
It is important not to have the jdbcdriver appear in both
$CATALINA_HOME/webapps/geonetwork/WEB-INF/lib/``** and **
$CATALINA_HOME/lib`.If the driver appears twice it can produce confusing "class cast exceptions" failures between the conenction supplied by JNDI, and the connection implementation expected by geonetwork.
Even if the version number of the driver is identical having two postgresql drivers available will cause failure.
-
Start Tomcat.
Using Tomcat Manager navigate to the General tab, Locate Server Status, and press Stop button.
During startup a database connection pool is setup using:
-
Catalina/localhost/geonetwork.xml
connection parameters -
jdbc driver is obtained from
$CATALINA_HOME/lib
-