1 |
878
|
berkley
|
<!--
|
2 |
|
|
* '$RCSfile$'
|
3 |
|
|
* Purpose: web page describing the installation of Metacat
|
4 |
|
|
* Copyright: 2000 Regents of the University of California and the
|
5 |
|
|
* National Center for Ecological Analysis and Synthesis
|
6 |
|
|
* Authors: Chad Berkley
|
7 |
|
|
*
|
8 |
|
|
* '$Author$'
|
9 |
3019
|
perry
|
* '$Date$'
|
10 |
|
|
* '$Revision$'
|
11 |
878
|
berkley
|
*
|
12 |
|
|
*
|
13 |
|
|
-->
|
14 |
|
|
|
15 |
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD html 4.0//EN">
|
16 |
|
|
<html>
|
17 |
|
|
|
18 |
|
|
<head>
|
19 |
|
|
<title>Metacat Installation Instructions</title>
|
20 |
3780
|
daigle
|
<link rel="stylesheet" type="text/css" href="./default.css">
|
21 |
878
|
berkley
|
</head>
|
22 |
|
|
|
23 |
|
|
<body>
|
24 |
|
|
|
25 |
|
|
<table class="tabledefault" width="100%">
|
26 |
3780
|
daigle
|
<tr><td rowspan="2"><img src="./images/KNBLogo.gif"></td>
|
27 |
878
|
berkley
|
<td colspan="7">
|
28 |
|
|
<div class="title">Metacat UNIX Installation Instructions</div>
|
29 |
|
|
</td>
|
30 |
|
|
</tr>
|
31 |
|
|
<tr>
|
32 |
3660
|
barteau
|
<td><a href="/" class="toollink"> KNB Home </a></td>
|
33 |
|
|
<td><a href="/data.html" class="toollink"> Data </a></td>
|
34 |
|
|
<td><a href="/people.html" class="toollink"> People </a></td>
|
35 |
|
|
<td><a href="/informatics" class="toollink"> Informatics </a></td>
|
36 |
|
|
<td><a href="/biodiversity" class="toollink"> Biocomplexity </a></td>
|
37 |
|
|
<td><a href="/education" class="toollink"> Education </a></td>
|
38 |
|
|
<td><a href="/software" class="toollink"> Software </a></td>
|
39 |
878
|
berkley
|
</tr>
|
40 |
|
|
</table>
|
41 |
|
|
<hr>
|
42 |
|
|
|
43 |
|
|
<table class="tabledefault" width="100%">
|
44 |
3594
|
tao
|
<td class="tablehead" colspan="2"><p class="emphasis"><h2>***Disclaimer***</h2></p></td>
|
45 |
878
|
berkley
|
<tr>
|
46 |
|
|
<td>
|
47 |
|
|
<p class="emphasis">
|
48 |
932
|
jones
|
These installation instructions are meant for a systems administrator/DBA
|
49 |
|
|
or someone who is an advanced computer user. They are NOT meant for
|
50 |
|
|
the average computer user. Please realize that by executing these
|
51 |
|
|
instructions, you may have to trouble shoot many advanced issues yourself.
|
52 |
878
|
berkley
|
</td>
|
53 |
|
|
</tr>
|
54 |
|
|
</table>
|
55 |
|
|
|
56 |
|
|
<table class="tabledefault" width="100%">
|
57 |
3594
|
tao
|
<td class="tablehead" colspan="2"><p><a name="The Table of Contents"><h2>The Table of Contents</h2></p></td>
|
58 |
3573
|
barseghian
|
<tr>
|
59 |
|
|
<td>
|
60 |
3592
|
tao
|
<ul>
|
61 |
|
|
<li>
|
62 |
|
|
<a HREF="metacatinstall.html#Operating System Specific Instructions">Operating System Specific Instructions</a>
|
63 |
|
|
</li>
|
64 |
|
|
<li>
|
65 |
|
|
<a HREF="metacatinstall.html#Pre-Installation">Pre-Installation</a>
|
66 |
|
|
</li>
|
67 |
|
|
<li>
|
68 |
|
|
<a HREF="metacatinstall.html#Aditional Software Setup">Aditional Software Setup</a>
|
69 |
|
|
</li>
|
70 |
|
|
<li>
|
71 |
|
|
<a HREF="metacatinstall.html#Edit build.properties File">Edit <code>build.properties</code> File</a>
|
72 |
|
|
</li>
|
73 |
|
|
<li>
|
74 |
|
|
<a HREF="metacatinstall.html#Compilation and Installation">Compilation and Installation</a>
|
75 |
|
|
</li>
|
76 |
3593
|
tao
|
<li>
|
77 |
|
|
<a HREF="metacatinstall.html#Upgrade">Compilation and Upgrading Existing Metacat</a>
|
78 |
|
|
</li>
|
79 |
3592
|
tao
|
|
80 |
|
|
</ul>
|
81 |
|
|
</td>
|
82 |
|
|
|
83 |
|
|
<table class="tabledefault" width="100%">
|
84 |
3594
|
tao
|
<td class="tablehead" colspan="2"><p><a name="Operating System Specific Instructions"><h2>Operating System Specific Instructions</h2></p></td>
|
85 |
3592
|
tao
|
<tr>
|
86 |
|
|
<td>
|
87 |
3573
|
barseghian
|
<p class="emphasis">
|
88 |
|
|
These documents are meant to outline the metacat installation process on specific platforms. They are <strong><em>not</em></strong> a substitute for the below instructions and only meant as a supplemental guideline.
|
89 |
|
|
</p>
|
90 |
|
|
<ul>
|
91 |
3585
|
barseghian
|
<li> <a href="os_specific/install_metacat_windows.html">Installing from CVS source on Windows XP</a> </li>
|
92 |
|
|
<li> <a href="os_specific/install_metacat_ubuntu.html">Installing from CVS source on Ubuntu 6.06 (ie Dapper Drake)</a> </li>
|
93 |
3573
|
barseghian
|
<li> <a href="os_specific/install_metacat_mac.html">Installing from CVS source on Mac OS X</a> </li>
|
94 |
|
|
|
95 |
|
|
</ul>
|
96 |
|
|
</td>
|
97 |
|
|
</tr>
|
98 |
|
|
</table>
|
99 |
|
|
|
100 |
|
|
|
101 |
|
|
<table class="tabledefault" width="100%">
|
102 |
3594
|
tao
|
<td class="tablehead" colspan="2"><p><a name="Pre-Installation"><h2>Pre-Installation</h2></p></td>
|
103 |
878
|
berkley
|
<tr>
|
104 |
|
|
<td>
|
105 |
|
|
<p class="header">Minimum Requirements</p>
|
106 |
|
|
<p>
|
107 |
|
|
Installing Metacat requires a server running an SQL92 compliant database
|
108 |
3019
|
perry
|
(Oracle 8i or Postgresql recommended) with at least 128MB RAM, and a Pentium III class
|
109 |
878
|
berkley
|
processor or higher. The amount of disk space required depends on the
|
110 |
|
|
size of your RDBMS tablespace (which should be at least 10 MB,
|
111 |
|
|
however Metacat itself requires only about 1 MB of free space after
|
112 |
3214
|
costa
|
installation). These instructions assume a Linux environment but may
|
113 |
878
|
berkley
|
work on other UNIX type environments, however this has not been tested.
|
114 |
|
|
</p>
|
115 |
|
|
<p class = "header">Additional Required Software</p>
|
116 |
|
|
<p>
|
117 |
|
|
The server on which you wish to install Metacat must have the following
|
118 |
|
|
software installed and running correctly before attempting to install
|
119 |
|
|
Metacat.
|
120 |
|
|
<ul>
|
121 |
|
|
<li><a href="http://www.oracle.com">Oracle 8i</a> (or another SQL92
|
122 |
932
|
jones
|
compliant RDBMS like Postgres)</li>
|
123 |
878
|
berkley
|
<li><a href="http://jakarta.apache.org/ant/index.html">Apache Jakarta-Ant</a>
|
124 |
|
|
</li>
|
125 |
|
|
<li><a href="http://jakarta.apache.org/tomcat/index.html">Apache Jakarta-Tomcat</a>
|
126 |
932
|
jones
|
<p class="emphasis">Note: For a more robust web serving environment,
|
127 |
|
|
Apache web server should
|
128 |
878
|
berkley
|
be installed along with Tomcat and the two should be integrated
|
129 |
|
|
as described on the Apache web site.</p>
|
130 |
|
|
</li>
|
131 |
|
|
</ul>
|
132 |
|
|
</p>
|
133 |
|
|
</td>
|
134 |
|
|
</tr>
|
135 |
|
|
</table>
|
136 |
|
|
|
137 |
|
|
<table class="tabledefault" width="100%">
|
138 |
3594
|
tao
|
<td class="tablehead" colspan="2"><p><a name="Aditional Software Setup"><h2>Aditional Software Setup</h2></p></td>
|
139 |
878
|
berkley
|
<tr>
|
140 |
|
|
<td>
|
141 |
2182
|
jones
|
<p class="header">Java</p>
|
142 |
3214
|
costa
|
<p>You'll need a recent Java SDK; J2SE 1.4.2 or later is required. The latest metacat release
|
143 |
|
|
has been tested most extensively with <a href="http://java.sun.com/j2se/1.5.0/">J2SE 5.0</a>
|
144 |
|
|
and this is the recommended version.
|
145 |
2182
|
jones
|
Make sure that JAVA_HOME environment variable is properly set and that both
|
146 |
|
|
java and javac are on your PATH.
|
147 |
|
|
</p>
|
148 |
|
|
<p class="header">Oracle 8i or Postgres</p>
|
149 |
|
|
<p><i>Oracle:</i><br>
|
150 |
878
|
berkley
|
The Oracle RDBMS must be installed and running as a daemon on the system.
|
151 |
|
|
In addition the JDBC listener must be enabled. You can enable it by
|
152 |
|
|
logging in as your Oracle user and typing the following:
|
153 |
|
|
<pre>lsnrctl start</pre>
|
154 |
|
|
Your instance should have a table space of at least 5 MB (10 MB or higher
|
155 |
|
|
recommended). You should also have a username specific to Metacat
|
156 |
|
|
created and enabled. This user must have most normal permissions
|
157 |
|
|
including CREATE SESSION, CREATE TABLE, CREATE INDEX, CREATE TRIGGER,
|
158 |
|
|
EXECUTE PROCEDURE, EXECUTE TYPE, etc. If an action is unexplainably
|
159 |
|
|
rejected by Metacat it is probably because the user permissions are not
|
160 |
|
|
correctly set.
|
161 |
|
|
</p>
|
162 |
2182
|
jones
|
<p><i>Postgres:</i><br>
|
163 |
|
|
Postgres can be easily installed on most linux distributions and on
|
164 |
|
|
Windows (using cygwin) and Mac OS X. Using Fedora Core or RedHat Linux,
|
165 |
|
|
you can install the rpms for postgres and then run
|
166 |
3019
|
perry
|
<code>/etc/init.d/postgresql start</code> in order to start the database.
|
167 |
|
|
On Ubuntu and other Debian-based Linux distributions, you can use the apt-get command
|
168 |
|
|
to install postgres: <code>sudo apt-get install postgresql-8.0</code> and
|
169 |
|
|
then run <code>/etc/init.d/postgresql-8.0 start</code> to start.
|
170 |
|
|
|
171 |
2182
|
jones
|
This initializes the data files. You need to do a bit of configuration
|
172 |
|
|
to create a database and set up a user account and allow internet access
|
173 |
|
|
via jdbc. See the postgres documentation for this, but here is a quick
|
174 |
|
|
start:
|
175 |
|
|
<ul>
|
176 |
|
|
<li>Switch to the "postgres" user account and edit "data/pg_hba.conf", adding the following line to the file:<br>
|
177 |
2455
|
jones
|
<code>host metacat metacat 127.0.0.1 255.255.255.255 password</code><br>
|
178 |
3615
|
bowdish
|
If your host uses IPv6 addresses, you may need this line instead:
|
179 |
2455
|
jones
|
<code>host metacat metacat ::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff password</code></li>
|
180 |
3019
|
perry
|
<li>If you are using Postgresql pre-8.0, you must edit the "data/postgres.conf" file and uncomment and edit the line
|
181 |
2182
|
jones
|
starting with "tcpip_socket" so that it reads
|
182 |
|
|
<code>tcpip_socket = true</code></li>
|
183 |
|
|
<li>Run <code>createdb metacat</code> to create a new database</li>
|
184 |
|
|
<li>Run <code>psql metacat</code> to log in using the postgres account and create a new "metacat" user account
|
185 |
|
|
<ul>
|
186 |
|
|
<li>In postgres, run <code>CREATE USER metacat WITH UNENCRYPTED PASSWORD 'apasswordyoulike';</code></li>
|
187 |
|
|
<li>This creates a new account called metacat on the database named metacat</li>
|
188 |
|
|
<li>Note: there are many ways to do this, so others such as using
|
189 |
|
|
ENCRYPTED passwords will work fine.</li>
|
190 |
|
|
</ul>
|
191 |
|
|
</li>
|
192 |
|
|
<li>Exit the postgres account back to root and restart the postgres
|
193 |
|
|
database with <code>/etc/init.d/postgresql restart</code></li>
|
194 |
|
|
<li>Test logging into the postgres db using the metacat account with
|
195 |
|
|
the following command:
|
196 |
|
|
<code>psql -U metacat -W -h localhost metacat</code></li>
|
197 |
|
|
</ul>
|
198 |
|
|
</p>
|
199 |
878
|
berkley
|
<p class="header">Ant</p>
|
200 |
|
|
<p>
|
201 |
|
|
Ant is a Java based build application similar to Make on UNIX systems.
|
202 |
|
|
It takes in installation parameters from a file in the root installation
|
203 |
|
|
directory named "build.xml". The Metacat CVS module contains a default
|
204 |
|
|
build.xml file that may require some modification upon installation. Ant
|
205 |
932
|
jones
|
should be installed on the system and the "ant" executable shell script
|
206 |
3019
|
perry
|
should be available in the users path. The latest metacat release was tested with
|
207 |
|
|
Ant 1.6.5. <!-- We note that the current build is
|
208 |
2182
|
jones
|
not working with Ant 1.6.x, so you'll need to use an earler version. We have
|
209 |
3019
|
perry
|
successfully used Ant 1.5.1, 1.5.2, and some earlier versions. -->
|
210 |
878
|
berkley
|
</p>
|
211 |
|
|
<p class="header">Tomcat</p>
|
212 |
|
|
<p>
|
213 |
2302
|
costa
|
Install Tomcat into the directory of your choice. The directory in which
|
214 |
1770
|
tao
|
you install Tomcat itself will be referred to as the "$CATALINA_HOME".
|
215 |
3214
|
costa
|
We recommend that you install Tomcat version 5.5. More details about
|
216 |
|
|
Tomcat installation are available <a href=" http://jakarta.apache.org/tomcat/index.html">here</a>.
|
217 |
878
|
berkley
|
</p>
|
218 |
1770
|
tao
|
</td>
|
219 |
878
|
berkley
|
</tr>
|
220 |
|
|
</table>
|
221 |
|
|
|
222 |
|
|
<table class="tabledefault" width="100%">
|
223 |
3594
|
tao
|
<td class="tablehead" colspan="2"><p><a name="Edit build.properties File"><h2>Edit <code>build.properties</code> File</h2></p></td>
|
224 |
878
|
berkley
|
<tr>
|
225 |
|
|
<td>
|
226 |
|
|
<p>
|
227 |
|
|
Once all of the prerequisite software is installed as described above,
|
228 |
|
|
the installation of Metacat can begin. First you must have a current
|
229 |
|
|
version of the source distribution of Metacat. You can get it two ways.
|
230 |
|
|
Authorized users can check it out of the NCEAS
|
231 |
|
|
<a href="http://www.nceas.ucsb.edu/cgi-bin/cvsweb.cgi/xmltodb/">CVS</a>
|
232 |
2183
|
jones
|
system. You'll need both the "metacat" module and the "utilities" module to
|
233 |
|
|
be checked out in sibling directories. The command is as follows:
|
234 |
|
|
<pre>mkdir knb-software</pre>
|
235 |
|
|
<pre>cd knb-software</pre>
|
236 |
|
|
<pre>cvs checkout -P metacat</pre>
|
237 |
|
|
<pre>cvs checkout -P utilities</pre>
|
238 |
|
|
Or you can
|
239 |
3660
|
barteau
|
<a href="/software/download.html">download</a> a gzipped tar file
|
240 |
878
|
berkley
|
from this site.
|
241 |
|
|
</p>
|
242 |
3592
|
tao
|
<p>
|
243 |
878
|
berkley
|
Once you have either checked out or unzipped and untarred the source
|
244 |
|
|
distribution, you can begin the installation process. Change into the
|
245 |
2302
|
costa
|
metacat directory and edit the file called "<code>build.properties</code>". You will need
|
246 |
932
|
jones
|
to change a number of configuration properties to match the setup on
|
247 |
3591
|
costa
|
your system. The property values that you will likely need to change are described in
|
248 |
|
|
detail in the following table:
|
249 |
878
|
berkley
|
</p>
|
250 |
3591
|
costa
|
<br/>
|
251 |
2302
|
costa
|
<table border="1">
|
252 |
|
|
<tr>
|
253 |
|
|
<td><b>Property</b></td>
|
254 |
|
|
<td><b>Description</b></td>
|
255 |
|
|
<td><b>Default value and examples of other values</b></td>
|
256 |
|
|
</tr>
|
257 |
|
|
<tr>
|
258 |
|
|
<td>tomcat</td>
|
259 |
|
|
<td>The tomcat property is the location in which tomcat is installed.</td>
|
260 |
|
|
<td>Default:
|
261 |
|
|
<code>/usr/local/devtools/jakarta-tomcat</code>
|
262 |
|
|
<br><br>Example:
|
263 |
3214
|
costa
|
<code>C:/Tomcat-5.5</code></td>
|
264 |
2302
|
costa
|
</tr>
|
265 |
|
|
<tr>
|
266 |
3214
|
costa
|
<td>deploy.dir</td>
|
267 |
|
|
<td>The deploy.dir property is the location in which your tomcat servlet
|
268 |
|
|
contexts are deployed. This is typically "${tomcat}/webapps",
|
269 |
|
|
where ${tomcat} is the same value that you entered for the 'tomcat'
|
270 |
2302
|
costa
|
property above.
|
271 |
|
|
</td>
|
272 |
|
|
<td>Default:
|
273 |
|
|
<code>/var/www/org.ecoinformatics.knb</code>
|
274 |
|
|
<br><br>Example:
|
275 |
3214
|
costa
|
<code>C:/Tomcat-5.5/webapps</code>
|
276 |
2302
|
costa
|
</td>
|
277 |
|
|
</tr>
|
278 |
|
|
<tr>
|
279 |
3377
|
tao
|
<td>tomcatversion</td>
|
280 |
3591
|
costa
|
<td>The tomcatversion property is the version of Tomcat in which you
|
281 |
3377
|
tao
|
want Metacat to run. This will determine the location of some
|
282 |
3591
|
costa
|
jar files coming with Tomcat.
|
283 |
|
|
<p>
|
284 |
|
|
<em>Note: Tomcat 3 and 4 are no longer tested or supported by Metacat.
|
285 |
|
|
Users are highly encouraged to upgrade to Tomcat 5.5.
|
286 |
|
|
</em>
|
287 |
|
|
</p>
|
288 |
|
|
<p>
|
289 |
|
|
<em>Also note: a property value of 'tomcat5' can be set when using
|
290 |
|
|
either Tomcat 5.0 or Tomcat 5.5.
|
291 |
|
|
</em>
|
292 |
|
|
</p>
|
293 |
|
|
</td>
|
294 |
3377
|
tao
|
<td>Default:
|
295 |
|
|
<code>tomcat5</code>
|
296 |
3591
|
costa
|
<br><br>Other possible values (deprecated):
|
297 |
|
|
<code>tomcat3 tomcat4</code>
|
298 |
3377
|
tao
|
</td>
|
299 |
3591
|
costa
|
</td>
|
300 |
3377
|
tao
|
</tr>
|
301 |
|
|
<tr>
|
302 |
3214
|
costa
|
<td>metacat.context</td>
|
303 |
|
|
<td>The metacat.context property is the name of the servlet context in which you
|
304 |
2302
|
costa
|
want Metacat to be installed. This will determine the installation
|
305 |
|
|
directory for the servlet and many of the URLs that are used to access
|
306 |
|
|
the installed Metacat server.</td>
|
307 |
|
|
<td>Default:
|
308 |
|
|
<code>knb</code>
|
309 |
|
|
<br><br>Example:
|
310 |
|
|
<code>mycontext</code>
|
311 |
|
|
</td>
|
312 |
|
|
</tr>
|
313 |
|
|
<tr>
|
314 |
3214
|
costa
|
<td>config.hostname</td>
|
315 |
|
|
<td>The config.hostname property is the hostname of the server on which Metacat is
|
316 |
3216
|
tao
|
running (note that you should not include the 'http://' in the config.hostname
|
317 |
3214
|
costa
|
property).
|
318 |
2309
|
jones
|
</td>
|
319 |
2302
|
costa
|
<td>Default:
|
320 |
|
|
<code>knb.ecoinformatics.org</code>
|
321 |
|
|
<br><br>Example:
|
322 |
3214
|
costa
|
<code>somehost.university.edu</code>
|
323 |
2302
|
costa
|
</td>
|
324 |
|
|
</tr>
|
325 |
|
|
<tr>
|
326 |
3214
|
costa
|
<td>config.port</td>
|
327 |
|
|
<td>The config.port property is the HTTP plain port number that is used to connect to Metacat.
|
328 |
|
|
If Tomcat is running stand-alone, the value will typically be 8080.</td>
|
329 |
2302
|
costa
|
<td>Default:
|
330 |
3214
|
costa
|
<code>80</code>
|
331 |
2302
|
costa
|
<br><br>Example:
|
332 |
3214
|
costa
|
<code>8080</code>
|
333 |
2302
|
costa
|
</td>
|
334 |
|
|
</tr>
|
335 |
|
|
<tr>
|
336 |
3214
|
costa
|
<td>config.port.https</td>
|
337 |
3215
|
costa
|
<td>The config.port.https property is the HTTP secure port number that is used to connect to Metacat,
|
338 |
|
|
generally when replicating documents to and from other Metacat servers.
|
339 |
3214
|
costa
|
If Tomcat is running stand-alone, the value will typically be 8443.</td>
|
340 |
|
|
<td>Default:
|
341 |
3377
|
tao
|
<code>443</code>
|
342 |
3214
|
costa
|
<br><br>Example:
|
343 |
|
|
<code>8443</code>
|
344 |
|
|
</td>
|
345 |
|
|
</tr>
|
346 |
|
|
<tr>
|
347 |
2302
|
costa
|
<td>ldapUrl</td>
|
348 |
2309
|
jones
|
<td>URL to the LDAP server. The LDAP server is used in the default
|
349 |
|
|
authentication module to authenticate and identify users of the
|
350 |
|
|
system. To participate in the KNB network, you should leave this at
|
351 |
|
|
the default. But it can be changed if you want to use a
|
352 |
|
|
different directory of users.
|
353 |
|
|
</td>
|
354 |
2302
|
costa
|
<td>Default:
|
355 |
|
|
<code>ldap://ldap.ecoinformatics.org/dc=ecoinformatics,dc=org</code>
|
356 |
|
|
</td>
|
357 |
|
|
</tr>
|
358 |
|
|
<tr>
|
359 |
|
|
<td>database</td>
|
360 |
|
|
<td>Select the database to use for metadata storage.
|
361 |
3591
|
costa
|
<p>
|
362 |
|
|
The build file is preconfigured to install Metacat either using
|
363 |
|
|
Oracle, PostgreSQL, or Microsoft SQL Server as a backend database.
|
364 |
|
|
To change the database system, simply change the value of the 'database'
|
365 |
|
|
property to be the name of the database target that you wish to use.
|
366 |
|
|
</p>
|
367 |
|
|
<p>
|
368 |
2302
|
costa
|
Valid values are <code>oracle</code>, <code>postgresql</code>, or
|
369 |
3214
|
costa
|
<code>sqlserver</code>. <em>Note that sqlserver support is minimal and
|
370 |
2309
|
jones
|
probably will not work without substantial changes on your part,
|
371 |
3214
|
costa
|
possibly including code changes. We have not recently tested on
|
372 |
|
|
sqlserver.</em>
|
373 |
3591
|
costa
|
</p>
|
374 |
2302
|
costa
|
</td>
|
375 |
|
|
<td>Default:
|
376 |
3214
|
costa
|
<code>postgresql</code>
|
377 |
2302
|
costa
|
<br><br>Other possible values:
|
378 |
3214
|
costa
|
<code>oracle</code>
|
379 |
2302
|
costa
|
<code>sqlserver</code>
|
380 |
|
|
</td>
|
381 |
|
|
</tr>
|
382 |
|
|
<tr>
|
383 |
|
|
<td>jdbc-connect</td>
|
384 |
|
|
<td>The JDBC connection string used to connect to the database.</td>
|
385 |
|
|
<td>Default:
|
386 |
3591
|
costa
|
<code>jdbc:postgresql://localhost/metacat</code>
|
387 |
3214
|
costa
|
<br><br>Example:
|
388 |
|
|
<code>jdbc:oracle:thin:@somehost.university.edu:1521:metacat</code>
|
389 |
2302
|
costa
|
</td>
|
390 |
|
|
<tr>
|
391 |
|
|
<td>jdbc-base</td>
|
392 |
3214
|
costa
|
<td>The base directory for locating JDBC jar files. When using the postgresql database, the default setting of './lib' can be used,
|
393 |
|
|
while oracle and sqlserver databases will require a different setting since these jar files are not included in the Metacat
|
394 |
|
|
distribution.</td>
|
395 |
2302
|
costa
|
<td>Default:
|
396 |
3214
|
costa
|
<code>./lib</code>
|
397 |
2302
|
costa
|
<br><br>Example:
|
398 |
3214
|
costa
|
<code>/usr/oracle/jdbc/lib</code><br>
|
399 |
2302
|
costa
|
</td>
|
400 |
|
|
</tr>
|
401 |
|
|
<tr>
|
402 |
|
|
<td>user</td>
|
403 |
3214
|
costa
|
<td>The database user name that you set up to use Metacat.</td>
|
404 |
2302
|
costa
|
<td>Default:
|
405 |
3214
|
costa
|
<code>metacat</code>
|
406 |
2302
|
costa
|
<br><br>Example:
|
407 |
3214
|
costa
|
<code>metacatuser</code>
|
408 |
2302
|
costa
|
</td>
|
409 |
|
|
</tr>
|
410 |
|
|
<tr>
|
411 |
|
|
<td>password</td>
|
412 |
|
|
<td>The database password that you set up to use Metacat.</td>
|
413 |
|
|
<td>Default:
|
414 |
|
|
<code>yourPasswordHere</code>
|
415 |
|
|
<br><br>Example:
|
416 |
|
|
<code>metacat123</code>
|
417 |
|
|
</td>
|
418 |
|
|
</tr>
|
419 |
|
|
<tr>
|
420 |
|
|
<td>datafilepath</td>
|
421 |
2309
|
jones
|
<td>The datafilepath is the directory to store data files.</td>
|
422 |
2302
|
costa
|
<td>Default:
|
423 |
|
|
<code>/var/metacat/data</code>
|
424 |
|
|
<br><br>Example:
|
425 |
3214
|
costa
|
<code>C:/Tomcat-5.5/data/metacat/data</code>
|
426 |
2302
|
costa
|
</td>
|
427 |
|
|
</tr>
|
428 |
|
|
<tr>
|
429 |
|
|
<td>inlinedatafilepath</td>
|
430 |
2309
|
jones
|
<td>The inlinedatafilepath is the directory to store inline data that
|
431 |
|
|
has been extracted from EML documents.</td>
|
432 |
2302
|
costa
|
<td>Default:
|
433 |
|
|
<code>/var/metacat/inline-data</code>
|
434 |
|
|
<br><br>Example:
|
435 |
3214
|
costa
|
<code>C:/Tomcat-5.5/data/metacat/inlinedata</code>
|
436 |
2302
|
costa
|
</td>
|
437 |
|
|
</tr>
|
438 |
|
|
<tr>
|
439 |
|
|
<td>default-style</td>
|
440 |
|
|
<td>The default-style parameter defines the "style-set" that is to be used
|
441 |
|
|
by default when the qformat parameter is missing or set to "html"
|
442 |
3214
|
costa
|
during a query. It is set to "default", which is one of the styles that
|
443 |
2302
|
costa
|
ships with the default metacat distribution. Other possible settings
|
444 |
|
|
are shown in the examples to the right.</td>
|
445 |
|
|
<td>Default:
|
446 |
3214
|
costa
|
<code>default</code>
|
447 |
|
|
<br><br>Examples:<code>esa kepler knb knb2 knp lter ltss nceas nrs obfs pisco specnet</code>
|
448 |
2302
|
costa
|
</td>
|
449 |
|
|
</tr>
|
450 |
2309
|
jones
|
<tr>
|
451 |
|
|
<td>administrators</td>
|
452 |
|
|
<td>The administrators parameter lists the accounts that are allowed to
|
453 |
|
|
perform administrative actions such as rebuilding indices for
|
454 |
3214
|
costa
|
documents. The list can contain more than one account separated
|
455 |
2309
|
jones
|
by colons.</td>
|
456 |
|
|
<td>Default:
|
457 |
|
|
<code>uid=jones,o=NCEAS,dc=ecoinformatics,dc=org</code>
|
458 |
|
|
<br><br>Examples:
|
459 |
|
|
<code>uid=localadmin,o=ucnrs.org</code>
|
460 |
|
|
</td>
|
461 |
|
|
</tr>
|
462 |
2903
|
harris
|
|
463 |
|
|
<!-- start lsid stuff -->
|
464 |
|
|
<tr>
|
465 |
|
|
<td>authority.context</td>
|
466 |
|
|
<td>This is the context for the (Life Sciences Identifier) LSID authority.
|
467 |
|
|
LSID support is an optional feature which can be configured to provide
|
468 |
|
|
metacat access to LSID clients. For more information on LSID's see <a href="http://wiki.gbif.org/guidwiki/wikka.php?wakka=LSID">TDWG
|
469 |
|
|
site</a>.</td>
|
470 |
3591
|
costa
|
<td>Default: <code>authority</code></td>
|
471 |
2903
|
harris
|
</tr>
|
472 |
|
|
<tr>
|
473 |
|
|
<td>config.lsidauthority</td>
|
474 |
|
|
<td>This is the name of the LSID authority that this metacat should use.
|
475 |
|
|
This authority needs to be defined as SRV record in a DNS.</td>
|
476 |
3591
|
costa
|
<td><p>Default: <code>ecoinformatics.org</code></p>
|
477 |
|
|
<p>Examples: <code>esa.org</code> or <code>sulphur.ecoinformatics.org</code></p></td>
|
478 |
2903
|
harris
|
</tr>
|
479 |
3591
|
costa
|
<tr>
|
480 |
|
|
<td>install.ecogrid</td>
|
481 |
|
|
<td>Enables EarthGrid web services. EarthGrid web services are disabled by default.
|
482 |
|
|
To enable EarthGrid web services (including query, put, authentication and
|
483 |
|
|
identifier interface), set this value to <code>true</code>, and also set the value
|
484 |
|
|
of the <em>metacat.dir</em> property as detailed below.</td>
|
485 |
|
|
<td>
|
486 |
|
|
Default: <code>false</code>
|
487 |
|
|
</td>
|
488 |
|
|
</tr>
|
489 |
|
|
<tr>
|
490 |
|
|
<td>metacat.dir</td>
|
491 |
|
|
<td>If the <em>install.ecogrid</em> property (see above) is set to <code>true</code>, this
|
492 |
|
|
property should be set to the absolute path of the top-level metacat directory.
|
493 |
|
|
If <em>install.ecogrid</em> is set to <code>false</code> (the default setting),
|
494 |
|
|
the value of <em>metacat.dir</em> is ignored.
|
495 |
|
|
</td>
|
496 |
|
|
<td>Default: <code>/home/tao/project/metacat</code></td>
|
497 |
|
|
</tr>
|
498 |
2302
|
costa
|
</table>
|
499 |
3595
|
tao
|
Note: If property "install.ecogrid" is set to be true(EarthGrid is enabled), you need to change the value of "metacatURL" to your metacat url in
|
500 |
|
|
seek/projects/ecogrid/conf/MetacatImpl/classes/metacat.properties file.
|
501 |
2302
|
costa
|
<br>
|
502 |
3591
|
costa
|
|
503 |
989
|
berkley
|
<p>
|
504 |
3591
|
costa
|
Other properties in <code>build.properties</code> that you can (but generally need not) change:
|
505 |
989
|
berkley
|
</p>
|
506 |
3591
|
costa
|
|
507 |
2302
|
costa
|
<table border="1">
|
508 |
|
|
<tr>
|
509 |
|
|
<td><b>Property</b></td>
|
510 |
|
|
<td><b>Description</b></td>
|
511 |
|
|
<td><b>Default value and examples of other values</b></td>
|
512 |
|
|
</tr>
|
513 |
|
|
<tr>
|
514 |
3215
|
costa
|
<td>server</td>
|
515 |
|
|
<td>The server property is the hostname and port number of the server that Metacat uses
|
516 |
|
|
for replicating documents to and from other Metacat servers, which should be with the secure (HTTPS) port.
|
517 |
|
|
Since this property is usually composed of the <code>config.hostname</code> and <code>config.port.https</code> properties (described above),
|
518 |
|
|
the default setting can be used in most cases.
|
519 |
|
|
</td>
|
520 |
3591
|
costa
|
<td>Default: <code>${config.hostname}:${config.port.https}</code></td>
|
521 |
3215
|
costa
|
</tr>
|
522 |
|
|
<tr>
|
523 |
|
|
<td>httpserver</td>
|
524 |
|
|
<td>httpserver is the plain HTTP address and port number that Metacat uses for purposes
|
525 |
|
|
other than replication. Since this property is usually composed of the <code>config.hosthame</code> and <code>config.port</code>
|
526 |
|
|
properties (described above), the default setting can be used in most cases.</td>
|
527 |
|
|
<td>Default: <code>${config.hostname}:${config.port}</code>
|
528 |
|
|
</td>
|
529 |
|
|
</tr>
|
530 |
|
|
<tr>
|
531 |
3591
|
costa
|
<td>http.protocol</td>
|
532 |
|
|
<td>http.protocol is the string used in the leading part of a URL to indicate use of the HTTP protocol.</td>
|
533 |
|
|
<td>Default: <code>http</code>
|
534 |
|
|
</td>
|
535 |
|
|
</tr>
|
536 |
|
|
<tr>
|
537 |
|
|
<td>config.metacatserver</td>
|
538 |
|
|
<td>The URL to the metacat server, composed in part from three other properties (http.protocol, httpserver, and metacat.context).</td>
|
539 |
|
|
<td>Default: <code>${http.protocol}://${httpserver}/${metacat.context}/metacat</code>
|
540 |
|
|
</td>
|
541 |
|
|
</tr>
|
542 |
|
|
<tr>
|
543 |
2302
|
costa
|
<td>inst.cgi.dir</td>
|
544 |
|
|
<td>Installation directory for registry CGI scripts</td>
|
545 |
|
|
<td>Default:
|
546 |
|
|
<code>/var/www/cgi-knb</code>
|
547 |
|
|
</td>
|
548 |
|
|
</tr>
|
549 |
|
|
<tr>
|
550 |
|
|
<td>cgi-prefix</td>
|
551 |
3591
|
costa
|
<td>The URL used for executing CGI scripts</td>
|
552 |
2302
|
costa
|
<td>Default:
|
553 |
3214
|
costa
|
<code>http://${httpserver}/cgi-bin</code>
|
554 |
2302
|
costa
|
</td>
|
555 |
|
|
</tr>
|
556 |
|
|
<tr>
|
557 |
3214
|
costa
|
<td>cvsroot</td>
|
558 |
|
|
<td>CVS access to retrieve latest EML. Only used by
|
559 |
|
|
developers in building the release.</td>
|
560 |
|
|
<td>Default:
|
561 |
|
|
<code><pre>:ext:${env.USER}@cvs.ecoinformatics.org:/cvs</pre></code>
|
562 |
|
|
Example:
|
563 |
|
|
<code><pre>:ext:myaccount@cvs.ecoinformatics.org:/cvs</pre></code>
|
564 |
|
|
</td>
|
565 |
|
|
</tr>
|
566 |
|
|
<tr>
|
567 |
2302
|
costa
|
<td>knb-site-url</td>
|
568 |
|
|
<td>This is the URL to the web context root for the knb site.
|
569 |
|
|
It is used for the qformat=knb skin only.</td>
|
570 |
|
|
<td>Default:
|
571 |
|
|
<code>http://knb.ecoinformatics.org</code>
|
572 |
|
|
</td>
|
573 |
|
|
</tr>
|
574 |
|
|
<tr>
|
575 |
3214
|
costa
|
<td>timedreplication</td>
|
576 |
|
|
<td>Determines whether timed replication to other metacat servers is being used.</td>
|
577 |
|
|
<td>Default:
|
578 |
|
|
<code>false</code>
|
579 |
|
|
<br><br>Other possible values:
|
580 |
|
|
<code>true</code>
|
581 |
|
|
</td>
|
582 |
|
|
</tr>
|
583 |
|
|
<tr>
|
584 |
|
|
<td>firsttimedreplication</td>
|
585 |
|
|
<td>The time for starting first timed replication if timedreplication is true.
|
586 |
|
|
(See comments in build.properties file for additional details.)</td>
|
587 |
|
|
<td>Default:
|
588 |
|
|
<code>10:00 PM</code>
|
589 |
|
|
<code> </code>
|
590 |
|
|
</td>
|
591 |
|
|
</tr>
|
592 |
|
|
<tr>
|
593 |
|
|
<td>timedreplicationinterval</td>
|
594 |
|
|
<td>The interval to next timed replication if timedreplication is true.
|
595 |
|
|
The value is in milliseconds and default value is 48 hours.</td>
|
596 |
|
|
<td>Default:
|
597 |
|
|
<code>172800000</code>
|
598 |
|
|
<code> </code>
|
599 |
|
|
</td>
|
600 |
|
|
</tr>
|
601 |
|
|
<tr>
|
602 |
2302
|
costa
|
<td>forcereplicationwaitingtime</td>
|
603 |
|
|
<td>The waiting time before replication is forced to begin after
|
604 |
|
|
uploading a package. The default value should usually suffice.</td>
|
605 |
|
|
<td>Default:
|
606 |
|
|
<code>30000</code>
|
607 |
|
|
<code> </code>
|
608 |
|
|
</td>
|
609 |
|
|
</tr>
|
610 |
3591
|
costa
|
<tr>
|
611 |
|
|
<td>log.dir</td>
|
612 |
|
|
<td>The directory where replication log files are to be written by Metacat.</td>
|
613 |
|
|
<td>Default: <code>${tomcat}/logs</code></td>
|
614 |
|
|
</tr>
|
615 |
|
|
<tr>
|
616 |
|
|
<td>moderators</td>
|
617 |
|
|
<td>Moderator accounts, in a colon-separated list. Specifies a list of special users who can review a general user's submission.
|
618 |
|
|
Moderators can approve, revise and reject the submission after reviewing. This property is only used in the ESA skin.</td>
|
619 |
|
|
<td>Default: <code>cn=knb-prod,o=NCEAS,dc=ecoinformatics,dc=org</code></td>
|
620 |
|
|
</tr>
|
621 |
|
|
<tr>
|
622 |
|
|
<td>allowedSubmitters</td>
|
623 |
|
|
<td>Specifies the list of users who should be allowed to submit documents.
|
624 |
|
|
If no value is specified (the default setting), all users will be allowed to submit documents.
|
625 |
|
|
</td>
|
626 |
|
|
<td>Default: (no value)</td>
|
627 |
|
|
</tr>
|
628 |
|
|
<tr>
|
629 |
|
|
<td>deniedSubmitters</td>
|
630 |
|
|
<td>Specify the list of users who should not be allowed to submit documents.
|
631 |
|
|
If no value is specified (the default setting), all users will be allowed to submit documents.</td>
|
632 |
|
|
<td>Default: (no value)</td>
|
633 |
|
|
</tr>
|
634 |
|
|
<tr>
|
635 |
|
|
<td>config.metadataLabelLsid</td>
|
636 |
|
|
<td> </td>
|
637 |
|
|
<td>Default: <code>${config.lsidauthority}</code></td>
|
638 |
|
|
</tr>
|
639 |
|
|
<tr>
|
640 |
|
|
<td>build.dir</td>
|
641 |
|
|
<td>The name of the subdirectory that is created when metacat is built by the 'ant' tool.</td>
|
642 |
|
|
<td>Default: <code>build</code></td>
|
643 |
|
|
</tr>
|
644 |
|
|
<tr>
|
645 |
|
|
<td>lsid.build.dir</td>
|
646 |
|
|
<td>The name of the subdirectory for building the LSID component of metacat.</td>
|
647 |
|
|
<td>Default: <code>${build.dir}/lsid</code></td>
|
648 |
|
|
</tr>
|
649 |
|
|
<tr>
|
650 |
|
|
<td>lib.dir</td>
|
651 |
|
|
<td>The name of the subdirectory where library (.jar) files and a number of other important files are located.</td>
|
652 |
|
|
<td>Default: <code>lib</code></td>
|
653 |
|
|
</tr>
|
654 |
|
|
<tr>
|
655 |
|
|
<td>lsid.lib.dir</td>
|
656 |
|
|
<td>The name of the subdirectory where LSID library (.jar) files are located.</td>
|
657 |
|
|
<td>Default: <code>${lib.dir}/lsid_lib</code></td>
|
658 |
|
|
</tr>
|
659 |
|
|
<tr>
|
660 |
|
|
<td>lsid.classes.dir</td>
|
661 |
|
|
<td>The relative path to the location of Java classes that support LSID.</td>
|
662 |
|
|
<td>Default: <code>edu/ucsb/nceas/metacat/lsid</code></td>
|
663 |
|
|
</tr>
|
664 |
|
|
<tr>
|
665 |
|
|
<td>conf.dir</td>
|
666 |
|
|
<td>The name of the directory where LSID configuration files are located.</td>
|
667 |
|
|
<td>Default: <code>lib/lsid_conf</code></td>
|
668 |
|
|
</tr>
|
669 |
|
|
<tr>
|
670 |
|
|
<td>services.dir</td>
|
671 |
|
|
<td>The name of the directory where LSID services configuration files are located.</td>
|
672 |
|
|
<td>Default: <code>${conf.dir}/services</code></td>
|
673 |
|
|
</tr>
|
674 |
|
|
<tr>
|
675 |
|
|
<td>webinf.dir</td>
|
676 |
|
|
<td>The name of the directory where additional LSID web services files are located.</td>
|
677 |
|
|
<td>Default: <code>${conf.dir}/WEB-INF</code></td>
|
678 |
|
|
</tr>
|
679 |
|
|
<tr>
|
680 |
|
|
<td>compile.debug</td>
|
681 |
|
|
<td>Indicates whether Java source should be compiled with debug information.</td>
|
682 |
|
|
<td>Default: <code>true</code></td>
|
683 |
|
|
</tr>
|
684 |
|
|
<tr>
|
685 |
|
|
<td>compile.deprecation</td>
|
686 |
|
|
<td>Indicates whether Java source should be compiled with deprecation information.</td>
|
687 |
|
|
<td>Default: <code>false</code></td>
|
688 |
|
|
</tr>
|
689 |
|
|
<tr>
|
690 |
|
|
<td>compile.optimize</td>
|
691 |
|
|
<td>Indicates whether Java source should be compiled with optimization.</td>
|
692 |
|
|
<td>Default: <code>true</code></td>
|
693 |
|
|
</tr>
|
694 |
|
|
<tr>
|
695 |
|
|
<td>indexPaths</td>
|
696 |
|
|
<td>The <em>indexPaths</em> property specifies a comma-separated (potentially long) list
|
697 |
|
|
of indexed paths that can be utilized to improve the
|
698 |
|
|
performance of metacat queries. Each component of the <em>indexPaths</em> property
|
699 |
|
|
should specify an absolute or relative path (using an XPath-like syntax) to an XML element or
|
700 |
|
|
attribute present in the XML documents being queried. Metacat stores XML
|
701 |
|
|
element and attribute values for indexed paths in a special database table
|
702 |
|
|
that optimizes search performance.
|
703 |
|
|
<p>Metacat queries allow you to specify (using the <pathexpr> tag in search query)
|
704 |
|
|
an exact path to which you want
|
705 |
|
|
to restrict the search. When the <pathexpr> path that is specified in the query
|
706 |
|
|
is a member of the <em>indexPaths</em> list, search results are returned faster
|
707 |
|
|
because metacat can conduct its search using the optimized database table.
|
708 |
|
|
<p>
|
709 |
|
|
The default value for the <em>indexPaths</em> property contains numerous paths to EML
|
710 |
|
|
elements and attributes that are commonly queried by metacat search tools.
|
711 |
|
|
For example, <em>keyword</em> is a
|
712 |
|
|
member of this list because it is common for search tools to query
|
713 |
|
|
the <em>keyword</em> field in EML documents. For most purposes, the default value will
|
714 |
|
|
optimize various types of searches on EML documents and need not be changed.
|
715 |
|
|
<p>
|
716 |
|
|
For more information about metacat queries,
|
717 |
|
|
see <a href="./metacatquery.html">Queries and Results</a>.
|
718 |
|
|
</td>
|
719 |
|
|
<td>Default: <code>organizationName,originator/individualName/surName,...</code></td>
|
720 |
|
|
</tr>
|
721 |
2302
|
costa
|
</table>
|
722 |
|
|
<p>
|
723 |
|
|
Metacat has a number of additional settable properties in file
|
724 |
3214
|
costa
|
<code>lib/metacat.properties</code>. Under most circumstances,
|
725 |
2302
|
costa
|
you will not need to modify this file because the properties of interest
|
726 |
|
|
to you can be controlled by editing <code>build.properties</code> as
|
727 |
|
|
described above. To learn more about Metacat's additional properties,
|
728 |
|
|
see <a href="./properties.html">Metacat Properties File</a>.
|
729 |
|
|
</p>
|
730 |
878
|
berkley
|
<p class="emphasis">
|
731 |
2302
|
costa
|
Note: When setting properties, DO NOT add a trailing slash [/] to the end of any paths that are specified.
|
732 |
|
|
Metacat will not function correctly if you do so.
|
733 |
878
|
berkley
|
</p>
|
734 |
2322
|
jones
|
|
735 |
|
|
</td>
|
736 |
|
|
</tr>
|
737 |
|
|
</table>
|
738 |
|
|
|
739 |
|
|
<table class="tabledefault" width="100%">
|
740 |
3592
|
tao
|
<td class="tablehead" colspan="2"><p><a name="Compilation and Installation"><h2>Compilation and Installation</h2></p></td>
|
741 |
2322
|
jones
|
<tr>
|
742 |
|
|
<td>
|
743 |
|
|
<a name="protocol"></a>
|
744 |
3593
|
tao
|
<p>This section is only for a fresh installation. If you are upgrading an existing Metacat, please skip
|
745 |
|
|
this section and go to the next one - <a HREF="metacatinstall.html#Upgrade">Compilation and Upgrading Existing Metacat</a>
|
746 |
|
|
<p>
|
747 |
3594
|
tao
|
<h3>Run Ant Build</h3></p>
|
748 |
2322
|
jones
|
<p>
|
749 |
|
|
Ant allows compilation and installation to be done in one step.
|
750 |
|
|
Change into the metacat directory and type:
|
751 |
|
|
<pre><b>ant install</b></pre>
|
752 |
|
|
<p>
|
753 |
|
|
You should see a bunch of messages telling you the progress of compilation
|
754 |
|
|
and installation. When it is done you should see the message
|
755 |
|
|
BUILD SUCCESSFUL
|
756 |
|
|
and you should be returned to a UNIX command prompt. If you do not see
|
757 |
|
|
the message BUILD SUCCESSFUL then there was an error that you need to
|
758 |
|
|
resolve.
|
759 |
|
|
This may come up if you are logged in as a user that does not have write
|
760 |
|
|
access to one or more of the directories that are listed in the build.xml
|
761 |
|
|
file, or if any of the paths to files are not configured correctly in the
|
762 |
|
|
"config" target.
|
763 |
|
|
</p>
|
764 |
|
|
<p>
|
765 |
|
|
Note: The 'data' directories that are indicated in the 'datafilepath' and
|
766 |
3593
|
tao
|
'inlinedatafilepath' build properties must be writable
|
767 |
2322
|
jones
|
by user account under which Tomcat runs or you will not be able to upload
|
768 |
|
|
data files to the system.
|
769 |
|
|
</p>
|
770 |
|
|
|
771 |
2905
|
harris
|
<p class="header">To install metacat LSID support, adjust the LSID-related
|
772 |
|
|
properties in the build.properties files and type:
|
773 |
|
|
<p class="header"><b>ant deploy-lsid</b>
|
774 |
3593
|
tao
|
<p>
|
775 |
3594
|
tao
|
<h3>SQL Scripts</h3></p>
|
776 |
878
|
berkley
|
<p>
|
777 |
3593
|
tao
|
You now need to set up the table structure in your database. You can
|
778 |
|
|
do this either using the ant build system, or by manually running the
|
779 |
1827
|
jones
|
scripts using a sql utility.
|
780 |
|
|
</p>
|
781 |
2182
|
jones
|
<p><b>WARNING: Do NOT run this on an existing metacat installation as it
|
782 |
|
|
will delete all of your data. If you have an existing metacat installation,
|
783 |
3593
|
tao
|
see the instructions for <a HREF="metacatinstall.html#Upgrade">"Compilation and Upgrading Existing Metacat"</a> below.</b></p>
|
784 |
2182
|
jones
|
|
785 |
3593
|
tao
|
<p>To run the scripts using ant, type
|
786 |
|
|
<pre><b>ant installdb</b></pre>
|
787 |
1827
|
jones
|
</p>
|
788 |
|
|
<p>To run the scripts manually, change to the
|
789 |
2302
|
costa
|
metacat/build/src directory. Then run you RDBMS's SQL utility. In Oracle it is
|
790 |
878
|
berkley
|
SQLPlus. This tutorial assumes an Oracle database so this example is for
|
791 |
|
|
SQLPlus. Login as the oracle user that was set up for use with Metacat.
|
792 |
1770
|
tao
|
At the SQLPlus prompt type the following: <pre><b>@xmltables.sql;</b></pre>
|
793 |
2182
|
jones
|
For postgres, use a command like:
|
794 |
|
|
<code>psql -U metacat -W -h localhost -f build/src/xmltables-postgres.sql metacat</code>
|
795 |
1827
|
jones
|
</p>
|
796 |
|
|
<p>Either way,
|
797 |
|
|
you should see a bunch of output showing the creation of the Metacat table
|
798 |
878
|
berkley
|
space. The first time you run this script you will get several errors at the
|
799 |
|
|
beginning saying that you cannot drop a table/index/trigger because it
|
800 |
|
|
does not exist. This is normal. Any other errors besides this need to be
|
801 |
1770
|
tao
|
resolved before continuing. The script file name for PostgreSQL is
|
802 |
2302
|
costa
|
xmltables-postgres.sql and for Microsoft SQL server is
|
803 |
1827
|
jones
|
xmltables-sqlserver.sql.
|
804 |
878
|
berkley
|
</p>
|
805 |
|
|
<p>
|
806 |
|
|
If the script has run correctly you should be able to type
|
807 |
2309
|
jones
|
<pre>describe xml_documents</pre> and it should show:
|
808 |
878
|
berkley
|
<pre>
|
809 |
|
|
Name Null? Type
|
810 |
|
|
-------------- ------------ ----------------
|
811 |
|
|
DOCID NOT NULL VARCHAR2(250)
|
812 |
|
|
ROOTNODEID NUMBER(20)
|
813 |
|
|
DOCNAME VARCHAR2(100)
|
814 |
|
|
DOCTYPE VARCHAR2(100)
|
815 |
|
|
DOCTITLE VARCHAR2(1000)
|
816 |
|
|
USER_OWNER VARCHAR2(100)
|
817 |
|
|
USER_UPDATED VARCHAR2(100)
|
818 |
|
|
SERVER_LOCATION NUMBER(20)
|
819 |
|
|
REV NUMBER(10)
|
820 |
|
|
DATE_CREATED DATE
|
821 |
|
|
DATE_UPDATED DATE
|
822 |
|
|
PUBLIC_ACCESS NUMBER(1)
|
823 |
|
|
UPDATED NUMBER(1)
|
824 |
|
|
</pre>
|
825 |
|
|
</p>
|
826 |
3594
|
tao
|
<p><h3>Register schemas and DTDs</h3></p>
|
827 |
2322
|
jones
|
<p>Once the tables have been created, you should also register the Ecological
|
828 |
|
|
Metadata Language (EML) DTDs and schemas. <b>However, note that you should
|
829 |
|
|
NOT do this if you are upgrading an existing installation -- the upgrade
|
830 |
|
|
scripts take care of it for you (see the next section).</b> If you are
|
831 |
|
|
installing new, you can register the schema documents by running:</p>
|
832 |
|
|
<pre><b>ant register-schemas</b></pre>
|
833 |
|
|
<p>This command registers the EML DTDs' and schemas' location in the
|
834 |
|
|
metacat server. Your database username and password have to be set correctly
|
835 |
2324
|
jones
|
for this to work. Also, if for some reason running this script from ant
|
836 |
|
|
does not work, you could instead try running "build/src/loaddtdschema.sql"
|
837 |
|
|
from your sql utility (but be sure to use the version in the 'build' directory
|
838 |
|
|
that has been customized for your installation).
|
839 |
2322
|
jones
|
</p>
|
840 |
3594
|
tao
|
<h3>Restart Tomcat</h3>
|
841 |
1827
|
jones
|
<p>
|
842 |
3593
|
tao
|
Once you have successfully installed Metacat, there is one more step. Tomcat
|
843 |
|
|
(and Apache if you have Tomcat integrated with it) must be restarted. To do
|
844 |
|
|
this, login as the user that runs your tomcat server (often "tomcat"),
|
845 |
|
|
go to $CATALINA_HOME/bin and type:
|
846 |
|
|
<pre>
|
847 |
|
|
<b>
|
848 |
|
|
./shutdown.sh
|
849 |
|
|
./startup.sh
|
850 |
|
|
</b>
|
851 |
|
|
</pre>
|
852 |
|
|
In the Tomcat startup messages you should see something in the log file like:
|
853 |
|
|
<pre>
|
854 |
3627
|
costa
|
Metacat: [WARN]: Metacat (1.8.0) initialized. [edu.ucsb.nceas.metacat.MetaCatServlet]
|
855 |
3593
|
tao
|
</pre>
|
856 |
|
|
If you see that message Tomcat is successfully loading the Metacat servlet.
|
857 |
|
|
Next, try to run your new servlet. Go to a web browser and type:
|
858 |
|
|
<pre>http://yourserver.yourdomain.com/yourcontext/</pre>
|
859 |
|
|
You should substitute your context name for "yourcontext" in the url above.
|
860 |
|
|
If everything is working correctly, you should see a query page followed
|
861 |
|
|
by an empty result set. Note that if you do not have Tomcat integrated with
|
862 |
|
|
Apache you will probably have to type
|
863 |
|
|
<pre>http://yourserver.yourdomain.com:8080/yourcontext/</pre>
|
864 |
|
|
</p>
|
865 |
|
|
<p><b>Troubleshooting</b>: If you see something like java.lang.InternalError:
|
866 |
|
|
Can't connect to X11 window server using 'yourservanme:0.0' as the value of the DISPLAY variable.
|
867 |
|
|
<p>You should add this line:
|
868 |
|
|
<b>JAVA_OPTS="-Djava.awt.headless=true $JAVA_OPTS"</b> at the first line of
|
869 |
|
|
catalina.sh file in tomcat bin directory. The reason is that GeoServer uses X11 windows to draw graphics.
|
870 |
|
|
</p>
|
871 |
|
|
|
872 |
3594
|
tao
|
<h3>Deploy wsdl file (Only for EarthGrid-enabled Metacat installation) </h3>
|
873 |
3593
|
tao
|
<p>
|
874 |
|
|
Once Tomcat is running successfully, there is another step for EarthGrid-enabled Metacat installation.
|
875 |
|
|
In metacat directory, type:
|
876 |
|
|
<pre><b>ant deploy-ecogrid</b></pre>
|
877 |
|
|
It will generate wsdl files for EarthGrid services.
|
878 |
|
|
</p>
|
879 |
|
|
|
880 |
|
|
</td>
|
881 |
|
|
</tr>
|
882 |
|
|
</table>
|
883 |
|
|
|
884 |
|
|
<table class="tabledefault" width="100%">
|
885 |
|
|
<td class="tablehead" colspan="2"><p><a name="Upgrade"><h2>Compilation and Upgrading Existing Metacat</h2></p></td>
|
886 |
|
|
<tr>
|
887 |
|
|
<td>
|
888 |
|
|
<a name="protocol"></a>
|
889 |
|
|
<p>The following instructions are for upgrading an existing Metacat.
|
890 |
3594
|
tao
|
<p><h3>Stop the running Metacat</h3>
|
891 |
3593
|
tao
|
<P>To do this, login as the user that runs your tomcat server (often "tomcat"),
|
892 |
|
|
go to $CATALINA_HOME/bin and type:
|
893 |
|
|
<pre><b>./shutdown.sh</b> </pre>
|
894 |
|
|
<p>
|
895 |
3594
|
tao
|
<h3>Run Ant Build</h3>
|
896 |
3593
|
tao
|
<p>
|
897 |
|
|
Ant allows compilation and upgrading to be done in one step.
|
898 |
|
|
Change into the metacat directory and type:
|
899 |
|
|
<pre><b>ant clean upgrade</b></pre>
|
900 |
|
|
<p>
|
901 |
|
|
You should see a bunch of messages telling you the progress of compilation
|
902 |
|
|
and installation. When it is done you should see the message
|
903 |
|
|
BUILD SUCCESSFUL
|
904 |
|
|
and you should be returned to a UNIX command prompt. If you do not see
|
905 |
|
|
the message BUILD SUCCESSFUL then there was an error that you need to
|
906 |
|
|
resolve.
|
907 |
|
|
This may come up if you are logged in as a user that does not have write
|
908 |
|
|
access to one or more of the directories that are listed in the build.xml
|
909 |
|
|
file, or if any of the paths to files are not configured correctly in the
|
910 |
|
|
"config" target.
|
911 |
|
|
</p>
|
912 |
|
|
<p>
|
913 |
|
|
Note: The 'data' directories that are indicated in the 'datafilepath' and
|
914 |
|
|
'inlinedatafilepath' build properties must be writable
|
915 |
|
|
by user account under which Tomcat runs or you will not be able to upload
|
916 |
|
|
data files to the system.
|
917 |
|
|
</p>
|
918 |
|
|
|
919 |
|
|
<p class="header">To install metacat LSID support, adjust the LSID-related
|
920 |
|
|
properties in the build.properties files and type:
|
921 |
|
|
<p class="header"><b>ant deploy-lsid</b>
|
922 |
|
|
|
923 |
3594
|
tao
|
<p><h3>Upgrade SQL Scripts</h3></p>
|
924 |
3593
|
tao
|
<p>
|
925 |
1827
|
jones
|
If you have an existing metacat installation, you should not run the install
|
926 |
|
|
script because it will replace all of the older tables with new, empty
|
927 |
|
|
copies of the tables. Thus you would lose your data! Instead, you can
|
928 |
|
|
run some upgrade scripts that will change the table structure as needed for
|
929 |
|
|
the new version. If you are skipping versions, run each upgrade script
|
930 |
|
|
for the intermediate versions as well. Currently the upgrade scripts are:
|
931 |
|
|
</p>
|
932 |
|
|
<ul>
|
933 |
2324
|
jones
|
<li>build/src/upgrade-db-to-1.2.sql</li>
|
934 |
|
|
<li>build/src/upgrade-db-to-1.3.sql</li>
|
935 |
|
|
<li>build/src/upgrade-db-to-1.4.sql</li>
|
936 |
2501
|
costa
|
<li>build/src/upgrade-db-to-1.5.sql</li>
|
937 |
3214
|
costa
|
<li>build/src/upgrade-db-to-1.6.sql</li>
|
938 |
|
|
<li>build/src/upgrade-db-to-1.7.sql</li>
|
939 |
3627
|
costa
|
<li>build/src/upgrade-db-to-1.8.sql</li>
|
940 |
1827
|
jones
|
</ul>
|
941 |
|
|
<p>
|
942 |
3627
|
costa
|
For example, if you had an existing metacat 1.5 installation and you were upgrading
|
943 |
|
|
to metacat 1.8, you would need to run three scripts in sequence:
|
944 |
|
|
upgrade-db-to-1.6.sql, upgrade-db-to-1.7.sql, and upgrade-db-to-1.8.sql.
|
945 |
|
|
However, if you were starting from a Metacat 1.7
|
946 |
|
|
installation, you would only need to run the upgrade-db-to-1.8.sql script.
|
947 |
3214
|
costa
|
<em>Be sure to use the version of the scripts from the 'build/src' directory: they
|
948 |
|
|
are customized for your installation in that directory.</em>
|
949 |
1827
|
jones
|
</p>
|
950 |
3649
|
barseghian
|
<p>
|
951 |
|
|
Ant targets exist to do the upgrades, so you can also do the above described upgrade by running:<br />
|
952 |
|
|
</p>
|
953 |
|
|
<p>
|
954 |
|
|
<strong>ant upgrade16</strong><br />
|
955 |
|
|
<strong>ant upgrade17</strong><br />
|
956 |
|
|
<strong>ant upgrade18</strong><br />
|
957 |
|
|
</p>
|
958 |
|
|
|
959 |
1827
|
jones
|
</p>
|
960 |
3594
|
tao
|
<h3>Restart Tomcat</h3>
|
961 |
990
|
tao
|
<p>
|
962 |
878
|
berkley
|
Once you have successfully installed Metacat, there is one more step. Tomcat
|
963 |
|
|
(and Apache if you have Tomcat integrated with it) must be restarted. To do
|
964 |
1770
|
tao
|
this, login as the user that runs your tomcat server (often "tomcat"),
|
965 |
|
|
go to $CATALINA_HOME/bin and type:
|
966 |
878
|
berkley
|
<pre>
|
967 |
3593
|
tao
|
<b>
|
968 |
|
|
./startup.sh
|
969 |
|
|
</b>
|
970 |
878
|
berkley
|
</pre>
|
971 |
3545
|
barseghian
|
In the Tomcat startup messages you should see something in the log file like:
|
972 |
878
|
berkley
|
<pre>
|
973 |
3627
|
costa
|
Metacat: [WARN]: Metacat (1.8.0) initialized. [edu.ucsb.nceas.metacat.MetaCatServlet]
|
974 |
878
|
berkley
|
</pre>
|
975 |
|
|
If you see that message Tomcat is successfully loading the Metacat servlet.
|
976 |
|
|
Next, try to run your new servlet. Go to a web browser and type:
|
977 |
932
|
jones
|
<pre>http://yourserver.yourdomain.com/yourcontext/</pre>
|
978 |
|
|
You should substitute your context name for "yourcontext" in the url above.
|
979 |
878
|
berkley
|
If everything is working correctly, you should see a query page followed
|
980 |
880
|
jones
|
by an empty result set. Note that if you do not have Tomcat integrated with
|
981 |
878
|
berkley
|
Apache you will probably have to type
|
982 |
932
|
jones
|
<pre>http://yourserver.yourdomain.com:8080/yourcontext/</pre>
|
983 |
878
|
berkley
|
</p>
|
984 |
3164
|
tao
|
<p><b>Troubleshooting</b>: If you see something like java.lang.InternalError:
|
985 |
|
|
Can't connect to X11 window server using 'yourservanme:0.0' as the value of the DISPLAY variable.
|
986 |
|
|
<p>You should add this line:
|
987 |
|
|
<b>JAVA_OPTS="-Djava.awt.headless=true $JAVA_OPTS"</b> at the first line of
|
988 |
3214
|
costa
|
catalina.sh file in tomcat bin directory. The reason is that GeoServer uses X11 windows to draw graphics.
|
989 |
3164
|
tao
|
</p>
|
990 |
3520
|
tao
|
|
991 |
3594
|
tao
|
<h3>Deploy wsdl file (Only for EarthGrid-enabled Metacat installation) </h3>
|
992 |
3520
|
tao
|
<p>
|
993 |
|
|
Once Tomcat is running successfully, there is another step for EarthGrid-enabled Metacat installation.
|
994 |
|
|
In metacat directory, type:
|
995 |
|
|
<pre><b>ant deploy-ecogrid</b></pre>
|
996 |
|
|
It will generate wsdl files for EarthGrid services.
|
997 |
|
|
</p>
|
998 |
3066
|
perry
|
|
999 |
878
|
berkley
|
</td>
|
1000 |
|
|
</tr>
|
1001 |
|
|
</table>
|
1002 |
|
|
|
1003 |
|
|
</body>
|
1004 |
|
|
</html>
|