Changes between Version 7 and Version 8 of HowToRunUnderTomcat


Ignore:
Timestamp:
Jun 11, 2008, 7:30:20 PM (16 years ago)
Author:
rjwalker
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowToRunUnderTomcat

    v7 v8  
    33GeoNetwork can be run under Tomcat.
    44
     5There are three web applications (webapps) in GeoNetwork; you will find
     6them in the `web` directory of the installation: `geonetwork`, `intermap`, and `geoserver`.
     7For GeoNetwork to function correctly in Tomcat (or in any servlet
     8container, for that matter), you must publish at least `geonetwork` and `intermap`;
     9the following instructions publish all three webapps.
     10
    511 1. Install Tomcat.
    6  2. Get a copy of GeoNetwork from [wiki:HowToWorkWithSubversion SVN] (or use an installed version)
    7  3. Build GeoNetwork.  (See HowToCompile for instructions.  If you will be using !McKoi, use GAST to initialize the database.)
    8  4. Configure Tomcat:
    9  * option 1: From your GeoNetwork build, copy the subdirectories of the `web` directory to the `webapps` directory of Tomcat. (So you will have `webapps/geonetwork`, etc., in your Tomcat installation.)
    10  * option 2: Put a file called geonetwork.xml in {$CATALINA_HOME}/conf/Catalina/localhost with the following contents (adjust the path as necessary):
    11 {{{
    12 <Context docBase="C:\Path To\devtree\sourceforge\geonetwork\trunk\web\geonetwork"
    13          privileged="true" antiResourceLocking="false" antiJARLocking="false">
    14 </Context>
    15 }}}
    16  5. Edit Tomcat's `server.xml` to set parameters as you wish.
    17  6. Start Tomcat.
     12 1. Prepare GeoNetwork.  You can either:
     13   a. Use the installer.
     14   a. Download and build from source.  See HowToWorkWithSubversion
     15      for help with downloading, and HowToCompile for help with
     16      building.  If you will be using !McKoi, follow the instructions
     17      to use GAST to initialize the database.
     18 1. Copy or link to the webapps.  Either:
     19   a. From your GeoNetwork build (or installation), copy all of the
     20      subdirectories of the `web` directory to the `webapps` directory
     21      of Tomcat. (So you will have `webapps/geonetwork`, etc.,
     22      in your Tomcat installation.)
     23   a. In the directory `$CATALINA_HOME/conf/Catalina/localhost`
     24      of your Tomcat installation, create a configuration file for
     25      each webapp.  You will have files `geonetwork.xml`,
     26      `intermap.xml`, and `geoserver.xml`. In the file `geonetwork.xml`
     27      put the following, adjusting the `docBase` path as necessary:
     28      {{{
     29      <Context docBase="/...path_to_GeoNetwork_installation_goes_here.../web/geonetwork"
     30               privileged="true" antiResourceLocking="false" antiJARLocking="false">
     31      </Context>
     32      }}}
     33      In the file `intermap.xml`
     34      put the following, adjusting the `docBase` path as necessary:
     35      {{{
     36      <Context docBase="/...path_to_GeoNetwork_installation_goes_here.../web/intermap"
     37               privileged="true" antiResourceLocking="false" antiJARLocking="false">
     38      </Context>
     39      }}}
     40      Same story with `geoserver.xml`.
     41 1. Edit Tomcat's `server.xml` to set parameters as you wish.
     42 1. Start Tomcat.
    1843
    1944'''''Unfortunately''''' . . . at present stopping Tomcat does not shut down GeoNetwork cleanly.  This is