<%@ page language="java" %> <%@ page import="edu.ucsb.nceas.metacat.database.DBVersion,edu.ucsb.nceas.metacat.MetacatVersion" %> <%@ page import="edu.ucsb.nceas.metacat.properties.PropertyService" %> <% /** * '$RCSfile$' * Copyright: 2008 Regents of the University of California and the * National Center for Ecological Analysis and Synthesis * For Details: http://www.nceas.ucsb.edu/ * * '$Author$' * '$Date$' * '$Revision$' * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ %> <% MetacatVersion metacatVersion = (MetacatVersion)request.getAttribute("metaCatVersion"); DBVersion databaseVersion = (DBVersion)request.getAttribute("databaseVersion"); Boolean propsConfigured = (Boolean)request.getAttribute("propsConfigured"); Boolean orgsConfigured = (Boolean)request.getAttribute("orgsConfigured"); Boolean authConfigured = (Boolean)request.getAttribute("authConfigured"); Boolean skinsConfigured = (Boolean)request.getAttribute("skinsConfigured"); Boolean dbConfigured = (Boolean)request.getAttribute("dbConfigured"); Boolean replicationConfigured = (Boolean)request.getAttribute("replicationConfigured"); String dataoneConfigured = (String)request.getAttribute("dataoneConfigured"); String geoserverConfigured = (String)request.getAttribute("geoserverConfigured"); String ezidConfigured = (String)request.getAttribute("ezidConfigured"); Boolean metacatConfigured = (Boolean)request.getAttribute("metacatConfigured"); Boolean metacatServletInitialized = (Boolean)request.getAttribute("metcatServletInitialized"); String contextURL = (String)request.getAttribute("contextURL"); %> Metacat Configuration <%@ include file="./head-section.jsp"%> <%@ include file="./header-section.jsp"%>

Metacat Configuration

All of the following sections must be in a configured state for Metacat to run properly:


<%@ include file="page-message-section.jsp"%> <% if (propsConfigured != null && propsConfigured) { %> <% } else { %> <% } if (authConfigured != null && authConfigured) { %> <% } else { %> <% } if (skinsConfigured != null && skinsConfigured) { %> <% } else { %> <% } if ((dbConfigured != null && dbConfigured) || (metacatVersion != null && databaseVersion != null && metacatVersion.compareTo(databaseVersion) == 0)) { %> <% } else { %> <% if (propsConfigured != null && propsConfigured) { %> <% } else { %> <% } %> <% } if (geoserverConfigured != null && geoserverConfigured.equals(PropertyService.CONFIGURED)) { %> <% } else if (geoserverConfigured != null && geoserverConfigured.equals(PropertyService.BYPASSED)){ %> <% if (propsConfigured != null && propsConfigured) { %> <% } else { %> <% } %> <% } else { %> <% if (propsConfigured != null && propsConfigured) { %> <% } else { %> <% } %> <% } %> <% if (dataoneConfigured != null && dataoneConfigured.equals(PropertyService.CONFIGURED)) { %> <% } else if (dataoneConfigured != null && dataoneConfigured.equals(PropertyService.BYPASSED)){ %> <% if (propsConfigured != null && propsConfigured) { %> <% } else { %> <% } %> <% } else { %> <% if (propsConfigured != null && propsConfigured) { %> <% } else { %> <% } %> <% } %> <% if (propsConfigured != null && propsConfigured) { %> <% } else { %> <% } %> <% if (ezidConfigured != null && ezidConfigured.equals(PropertyService.CONFIGURED)) { %> <% } else if (ezidConfigured != null && ezidConfigured.equals(PropertyService.BYPASSED)){ %> <% if (propsConfigured != null && propsConfigured) { %> <% } else { %> <% } %> <% } else { %> <% if (propsConfigured != null && propsConfigured) { %> <% } else { %> <% } %> <% } %>
configured Metacat Global Properties
unconfigured Metacat Global Properties
configured Authentication Configuration
unconfigured Authentication Configuration
configured Skins Specific Properties
unconfigured Skins Specific Properties
configured Database Installation/Upgrade
unconfigured Database Installation/Upgrade
configured Geoserver Configuration
bypassed Geoserver Configuration
unconfigured Geoserver Configuration
configured Dataone Configuration
bypassed Dataone Configuration
unconfigured Dataone Configuration
configured Replication Configuration
configured EZID Configuration for DOIs
bypassed EZID Configuration for DOIs
unconfigured EZID Configuration for DOIs
<% if (metacatConfigured != null && metacatConfigured) { %>
<% if (metacatServletInitialized != null && metacatServletInitialized) { %>

Restarting Metacat

Since this is a reconfiguration, you will need to restart Metacat after any changes.

The simplest way to restart metacat is to restart the entire servlet engine. For Tomcat, this would mean calling "sudo /etc/init.d/tomcat6 restart" or an equivalent command appropriate to your operating system. After restarting, you can access your new Metacat server at the URL: <%= contextURL %>

<% } else { %>
Configuration of Metacat is complete. Please restart Tomcat so that the webapps are initialized with these settings. Note that this may take some time while the system initializes with the new configuration values.
<% } } %>
<%@ include file="./footer-section.jsp"%>