Metacat Properties File |
Back | Home | Next |
Metacat Server has properties that are stored in two general locations. Global properties are held in:
<CONTEXT_DIR>*/WEB_INF/metacat.properties.
Skin specific properties are set on a per-skin basis in:<CONTEXT_DIR>*/WEB_INF/style/skins/<SKIN_NAME>/<SKIN_NAME>.properties
The most dynamic properties are modified using the internal Metacat configuration utility . However, it may be necessary to manually edit a configuration file to update more static values.
The list of properties shown on this page gives the following information about each property:
(* CONTEXT_DIR refers to the directory where the Metacat application code lives. This is a combination of the web application directory and the metacat context directory. This usually looks something like /usr/local/tomcat/webapps/knb. However, your webapps directory could be somewhere besides the tomcat directory and your context could be something other than knb.)
localhost
Configuration Utility
The network host name that will be used to access Metacat. Note that this is not necessarily the physical name of the server running Metacat. The host name should not include the protocol prefix (http://).
knb.ecoinformatics.org
80
Configuration Utility
The network port that will be used to access Metacat for non-secure (standard) connections. This is usually 80 if Apache web server is running (typical install), and 8080 if Tomcat is running alone, but both Apache and Tomcat could have been configured to listen on alternate ports.
80
443
Configuration Utility
The network port that will be used to access Metacat for secure connections. This is usually 443 if Apache web server is running (typical install), and 8443 if Tomcat is running alone, but both Apache and Tomcat could have been configured to listen on alternate ports.
443
1.9.0
Manual
The Metacat version number. usually, this should never be changed. It is set by the build engineer at build time.
1.9.0
none
Manual
This allows for some more detailed information about the release for display purposes. Typically it is used during the release candidate cycle to let users know which candidate they are downloading.
Release Candidate 1
(none)
Configuration Utility
The directory where web applications are deployed. Many times this is in a directory named "webapps" in the Tomcat installation directory. However, Tomcat may be configured to look in a different directory.
/usr/local/tomcat/webapps
(none)
Configuration Utility
Applications run in individual directories in the applicaton deployment directory. The name of the application directory is the application context. This corresponds to the first part of the war file name (the part before .war). Most commonly, this is "knb", but it can be changed to other things.
knb
default
Configuration Utility
There are some custom web skins available in Metacat. Typically these are associated with an organizational theme. If there is not a custom skin for your organization, you should leave it as "default".
default
http://knb.ecoinformatics.org
Configuration Utility
The KNB site to redirect to.
http://knb.ecoinformatics.org
/var/metacat/data
Configuration Utility
This is the directory whera data files will be stored. This should be some directory outside the Metacat installation directories so data files will not get lost when Metacat is upgraded. The data file directory must be writable by the user that starts Tomcat (and thus Metacat).
/var/metacat/data
/var/metacat/inline-data
Configuration Utility
This is the directory where inline data files will be stored. Inline data files are created from data that is embedded in EML metadata. This should be some directory outside the Metacat installation directories so data files will not get lost when Metacat is upgraded. For clarity of data, this should probably not be the same as application.datafilepath. The data file directory must be writable by the user that starts Tomcat (and thus Metacat).
/var/metacat/inline-data
/var/metacat/documents
Configuration Utility
This is the directory where metadata document files will be stored. This should be some directory outside the Metacat installation directories so document files will not get lost when Metacat is upgraded. For clarity of organization, this should probably not be the same as application.datafilepath or application.inlinedatafilepath. The data file directory must be writable by the user that starts Tomcat (and thus Metacat).
/var/metacat/documents
/var/metacat/temporary
Manual
This is the directory that Metacat data registry uses to store temporary files. This should not be the same as application.datafilepath or application.inlinedatafilepath (or any other persistant file path) since all files in this may be purged programatically. The temporary file directory must be writable by the user that starts Apache.
/var/metacat/temporary
/cgi
Manual
This is the directory that is configured in
Apache web server to point to Metacat cgi executables. The directory is given
relative to the Metacat context directory since the Metacat cgi scripts
are installed with the application code. For example, if Metacat is installed
in /usr/local/tomcat/knb, then an application.cgiDir of /cgi would point to
 /usr/local/tomcat/knb/cgi-dir
/cgi-bin
none
Manual
If you are using replication, you will need to specify where you would like the replication log to be written. You must choose a directoy that is writable by the user that starts Tomcat.
/usr/locat/tomcat/logs
jdbc:postgresql://localhost/metacat
Configuration Utility
The jdbc connection URI for the main
database instance of Metacat. The uri is formatted like:
jdbc:<database_type>:thin@<your_server_name>:1521:<metacat_database_name>
An empty database must have been created prior to Metacat
configuration.
jdbc:postgresql://yourserver.yourdomain.edu/metacat
(none)
Configuration Utility
The user for the main database instance of Metacat. The user must have already been created on the database.
metacat-user
(none)
Configuration Utility
The password of the user for the main database instance of Metacat. The password must have already been created for the user.
securepassword4843
(none)
Configuration Utility
The type of database you are running. Currently, there are two supported types, Oracle and Postgres.
postgres
(none)
Configuration Utility
The JDBC driver to be used to access the main database instance of Metacat. There is one of these associated with each type of database.
org.postgresql.Driver
(none)
Configuration Utility
The adapter class that allows Metacat to access your database type. There is one of these associated with each type of database.
edu.ucsb.nceas.dbadapter.PostgresqlAdapter
database.scriptsuffix.postgres=postgres.sql
database.scriptsuffix.oracle=oracle.sql
Configuration Utility
There is a database.scriptsuffix entry for every supported type of database. These tell the system which database scripts to run when installing or updating database schema.
postgres.sql
database.upgradeVersion.0.0.0=xmltables,loaddtdschema
database.upgradeVersion.1.2.0=upgrade-db-to-1.2
database.upgradeVersion.1.3.0=upgrade-db-to-1.3
database.upgradeVersion.1.4.0=upgrade-db-to-1.4
database.upgradeVersion.1.5.0=upgrade-db-to-1.5
database.upgradeVersion.1.6.0=upgrade-db-to-1.6
database.upgradeVersion.1.7.0=upgrade-db-to-1.7
database.upgradeVersion.1.8.0=upgrade-db-to-1.8
database.upgradeVersion.1.9.0=upgrade-db-to-1.9
Configuration Utility
There is a database.scriptsuffix entry for every metacat database schema version. (Note that a schema version corresponds to an application version.) These tell the system which database scripts to run when installing or updating database schema.
upgrade-db-to-1.2
5
Manual
The number of initial connection that Metacat creates to the database.
5
5
Manual
The number of connections that are created when Metacat needs more connections.
5
25
Manual
The maximum number of database connections Metacat can make.
25
120000
Manual
The maximum time in milliseconds that a database connection can live.
120000
60000
Manual
The maximum time in milliseconds that a database connection can accumulate in actual connection time.
60000
100
Manual
The maximum number of times a single connection can be used.
100
5
Manual
The number of threads available for indexing.
5
604800000
Manual
The time in milliseconds between indexing.
604800000
3600000
Manual
The delay in milliseconds before first indexing is executed.
3600000
5000
Manual
The time in milliseconds that an indexing thread will wait when it can't get a doc id before retrying the indexing.
5000
off
Manual
Determines whether the database connection pool should run a thread to recycle connections. Possible values are "on" and "off"
off
30000
Manual
The time in milliseconds between connection recycling runs.
30000
enableediting,foo
Manual
Parameters to ignore in a structured xml query.
enableediting
true
Manual
Determines whether to use xml indexes when finding documents. Possible values are true and false.
true
7000
Manual
Determines the number of results that get sent back to an application from a query.
7000
7000
Manual
Determines the number of results that get sent back to a web browser from a query.
7000
0
Manual
If the results of a query have been returned more times than database.xmlReturnfieldCount, then those results will be inserted into the xml_queryresult table in the database.
0
500000
Manual
This is used to set the max size of the query result string in the queryresult table. This should be set to some number less than 4000 if an Oracle database is being used.
500000
500
Manual
The number of query results that will be cached.
500
on
Manual
Determines whether query caching is turned on. Acceptible values are "on" and "off"
on
edu.ucsb.nceas.metacat.AuthLdap
Configuration Utility
The class that is used for user authentication. Currently, only the AuthLdap class is included in the Metacat distribution, but it is possible for an admin to implement other authentication strategies by implementing a Java class that extends the AuthInterface interface and rebuilding Metacat. Change this to be the fully qualified class name of your custom authentication mechanism.
edu.ucsb.nceas.metacat.AuthLdap
180
Manual
The number of minutes that a user will stay logged in to Metacat without any activity.
180
(none)
Configuration Utility
A colon separated list of The ldap users or groups that have administrative privileges to Metacat. Note that during the intial installation of Metacat, the installer will be asked to enter this value. At least one user or group must be entered and all accounts must exist in LDAP, or the installer will not be allowed to continue with the configuration.
uid=youruser,o=NCEAS,dc=ecoinformatics,dc=org
cn=yourgroup,o=NCEAS,dc=ecoinformatics,dc=org
ldap://ldap.ecoinformatics.org:389/
Configuration Utility
The url of the server that Metacat should use for authentication.
ldap://ldap.ecoinformatics.org:389/
ldap://ldap.ecoinformatics.org:389/
Configuration Utility
The url of the server that Metacat should use for secure authentication.
ldap://ldap.ecoinformatics.org:389/
(none)
Configuration Utility
A colon delimited list of users who should be allowed to submit documents. If no value is specified, all users will be allowed to submit documents.
uid=youruser,o=NCEAS,dc=ecoinformatics,dc=org
(none)
Configuration Utility
A colon delimited list of users who should not be allowed to submit documents. If no value is specified, all users will be allowed to submit documents.
uid=youruser,o=NCEAS,dc=ecoinformatics,dc=org
5000
Manual
The time in milliseconds allowed for ldap server connections.
5000
30000
Manual
The time in milliseconds allowed for ldap server searches.
30000
30000
Manual
the count of return entries allowed for ldap server searches.
30000
follow
Manual
The type of ldap referrals to use. Acceptible values are "follow", "throw" or "none". Refer to ldap documentation for further information.
follow
false
Manual
Determines whether to only use secure ldap server. Acceptible values are "true" and "false".
false
false
Manual
Determines whether to only use secure referral server. Acceptible values are "true" and "false".
false
org.apache.xerces.parsers.SAXParser
Manual
The SAX parser used to parse XML documents. See: SAX parser documentation.
org.apache.xerces.parsers.SAXParser
eml://ecoinformatics.org/eml-2.0.0
Manual
The namespace of EML 2.0.0 documents.
eml://ecoinformatics.org/eml-2.0.0
eml://ecoinformatics.org/eml-2.0.1
Manual
The namespace of EML 2.0.1 documents.
eml://ecoinformatics.org/eml-2.0.1
eml://ecoinformatics.org/eml-2.1.0
Manual
The namespace of EML 2.1.0 documents.
eml://ecoinformatics.org/eml-2.1.0
-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN, -//ecoinformatics.org//eml-dataset-2.0.0beta4//EN
Manual
The doctype of a package file. The system will only recognize documents of this type as package files. See: package documentation.
-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN, -//ecoinformatics.org//eml-dataset-2.0.0beta4//EN
-//ecoinformatics.org//eml-access-2.0.0beta6//EN, -//ecoinformatics.org//eml-access-2.0.0beta4//EN
Manual
The doctype of an access control list (ACL) file. The system will only recognize documents of this type as access files. See: access control documentation.
-//ecoinformatics.org//eml-access-2.0.0beta6//EN, -//ecoinformatics.org//eml-access-2.0.0beta4//EN