Prev Up Next Index
Go backward to 2.1 Install Jakarta-Tomcat Server
Go up to 2 Practice I: Installing the OPeNDAP Catalog/Aggregation Server
Go forward to 2.3 Setting Cache Sizes

2.2 Locating the Configuration File

If you've successfully completed the steps above, the aggregation server is now installed. However, though you've successfully configured the Tomcat servlet engine to run the Aggregation Server, you haven't yet configured the Aggregation Server itself. To do that, you need to create and install a configuration file. There is an example configuration file, AggServerConfig.xml, provided in the Aggregation Server distribution. Look for it in $TOMCAT_HOME/webapps/dodsC/WEB-INF/ (it comes in the dodsC.war archive file). Copy this file up to $TOMCAT_HOME/webapps/dodsC then modify it for your datasets. Chapter 3 contains instructions for comfiguring your server.

If you want to keep the configuration file somewhere else (in a different directory or on a different machine, you must modify Tomcat's web.xml file. The Aggregation Server configuration file location is specified by the serverConfig parameter. For example, the following XML code specifies that the configuration file may be found at http://www.opendap.net/aggser.xml

<init-param>
  <param-name>serverConfig</param-name>
  <param-value>http://www.opendap.net/aggser.xml</param-value>
</init-param>

You can also use an absolute path to locate the configuration file on your local machine. Write it like this for a Win machine:

<init-param>
  <param-name>serverConfig</param-name>
  <param-value>file://E:/dev/dodsAS/aggser.xml</param-value>
</init-param>

Or like this for a Unix machine:

<init-param>
  <param-name>serverConfig</param-name>
  <param-value>file:///usr/local/dodsAS/aggser.xml</param-value>
</init-param>

Tom Sgouros, 2004/07/07

Prev Up Next