Version 9 (modified by 17 years ago) ( diff ) | ,
---|
Running GeoNetwork under Tomcat
GeoNetwork can be run under Tomcat.
There are three web applications (webapps) in GeoNetwork; you will find
them in the web
directory of the installation: geonetwork
, intermap
, and geoserver
.
For GeoNetwork to function correctly in Tomcat (or in any servlet
container, for that matter), you must publish at least geonetwork
and intermap
;
the following instructions publish all three webapps.
- Install Tomcat.
- Prepare GeoNetwork. You can either:
- Use the installer.
- Download and build from source. See HowToWorkWithSubversion for help with downloading, and HowToCompile for help with building. If you will be using McKoi, follow the instructions to use GAST to initialize the database.
- Copy or link to the webapps. Either:
- From your GeoNetwork build (or installation), copy all of the
subdirectories of the
web
directory to thewebapps
directory of Tomcat. (So you will havewebapps/geonetwork
,webapps/intermap
, etc., in your Tomcat installation.) - In the directory
$CATALINA_HOME/conf/Catalina/localhost
of your Tomcat installation, create a configuration file for each webapp. You will have filesgeonetwork.xml
,intermap.xml
, andgeoserver.xml
. In the filegeonetwork.xml
put the following, adjusting thedocBase
path as necessary:<Context docBase="/...path_to_GeoNetwork_installation_goes_here.../web/geonetwork" privileged="true" antiResourceLocking="false" antiJARLocking="false"> </Context>
In the fileintermap.xml
put the following, adjusting thedocBase
path as necessary:<Context docBase="/...path_to_GeoNetwork_installation_goes_here.../web/intermap" privileged="true" antiResourceLocking="false" antiJARLocking="false"> </Context>
Same story withgeoserver.xml
.
- From your GeoNetwork build (or installation), copy all of the
subdirectories of the
- Edit Tomcat's
server.xml
to set parameters as you wish. - Start Tomcat.
Unfortunately . . . at present stopping Tomcat does not shut down GeoNetwork cleanly. This is documented at http://www.nabble.com/Tomcat-5.5-hangs-when-hosting-GN-2.2.0--SEC%3DUNCLASSIFIED--td17660763.html. You need to make either of the modifications suggested there before you build.