Changes between Version 19 and Version 20 of HowToRunUnderTomcat
- Timestamp:
- 11/07/13 09:21:45 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowToRunUnderTomcat
v19 v20 1 Date: 09/09/2009 - minor updates without fully testing: 07-11-2013 2 1 3 = Running !GeoNetwork under Tomcat = 2 4 3 5 !GeoNetwork can be run under Tomcat. 4 6 5 There are t hreeweb applications (webapps) in !GeoNetwork; you will find6 them in the `web` directory of the installation: `geonetwork` , `intermap`,and `geoserver`.7 There are two web applications (webapps) in !GeoNetwork; you will find 8 them in the `web` directory of the installation: `geonetwork` and `geoserver`. 7 9 For !GeoNetwork to function correctly in Tomcat (or in any servlet 8 container, for that matter), you must publish at least `geonetwork` and `intermap`;9 the following instructions publish all threewebapps.10 container, for that matter), you must publish at least `geonetwork`; 11 the following instructions publish both webapps. 10 12 11 13 1. Install Tomcat. 12 1. Prepare !GeoNetwork. 14 1. Prepare !GeoNetwork. You can either: 13 15 a. Use the installer. 14 a. Download and build from source. See HowToWorkWith Subversion16 a. Download and build from source. See HowToWorkWithGit 15 17 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 building. 18 19 1. Copy or link to the webapps. Either: 19 20 a. From your !GeoNetwork build (or installation), copy all of the 20 21 subdirectories of the `web` directory to the `webapps` directory 21 of Tomcat. (So you will have `webapps/geonetwork`, `webapps/intermap`,22 of Tomcat. (So you will have `webapps/geonetwork`, 22 23 etc., in your Tomcat installation.) 23 24 a. In the directory `$CATALINA_HOME/conf/Catalina/localhost` 24 25 of your Tomcat installation, create a configuration file for 25 26 each webapp. You will have files `geonetwork.xml`, 26 `intermap.xml`,and `geoserver.xml`. In the file `geonetwork.xml`27 and `geoserver.xml`. In the file `geonetwork.xml` 27 28 put the following, adjusting the `docBase` path as necessary: 28 29 {{{ 29 30 <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 31 privileged="true" antiResourceLocking="false" antiJARLocking="false"> 38 32 </Context> … … 51 45 1. If you can't find your log files, make sure you edit `/...path_to_GeoNetwork_installation_goes_here.../web/geonetwork/WEB-INF/log4j.cfg`: 52 46 a. Change 'log4j.appender.jeeves.file' to '/var/log/tomcatXXX/geonetwork.log' (XXX = Tomcat version) or wherever you want to have your logs. 53 1. Do the same for intermap with `/...path_to_GeoNetwork_installation_goes_here.../web/intermap/WEB-INF/log4j.cfg`.54 47 1. Start Tomcat. 55 56 '''''Unfortunately''''' . . . at present stopping Tomcat does not shut down !GeoNetwork cleanly. This is57 documented at [http://www.nabble.com/Tomcat-5.5-hangs-when-hosting-GN-2.2.0--SEC%3DUNCLASSIFIED--td17660763.html].58 You need to make either of the modifications suggested there before you build.59 48 60 49 = Running the Z39.50 server =