%@ 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: tao $' * '$Date: 2016-01-23 00:44:08 +0000 (Sat, 23 Jan 2016) $' * '$Revision: 9501 $' * * 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"); %>
All of the following sections must be in a configured state for Metacat to run properly:
configured | Metacat Global Properties | Reconfigure Now | |
unconfigured | Metacat Global Properties | Configure Now | |
configured | Authentication Configuration | Reconfigure Now | |
unconfigured | Authentication Configuration | Configure Now | |
configured | Skins Specific Properties | Reconfigure Now | |
unconfigured | Skins Specific Properties | Configure Now | |
configured | Database Installation/Upgrade | Version: <%=databaseVersion.getVersionString()%> | |
unconfigured | Database Installation/Upgrade | <% if (propsConfigured != null && propsConfigured) { %>Configure Now | <% } else { %>Configure Global Properties First | <% } %>
configured | Geoserver Configuration | Reconfigure Now | |
bypassed | Geoserver Configuration | <% if (propsConfigured != null && propsConfigured) { %>Reconfigure Now | <% } else { %>Configure Global Properties First | <% } %>
unconfigured | Geoserver Configuration | <% if (propsConfigured != null && propsConfigured) { %>Configure Now | <% } else { %>Configure Global Properties First | <% } %>
configured | Dataone Configuration | Reconfigure Now | |
bypassed | Dataone Configuration | <% if (propsConfigured != null && propsConfigured) { %>Reconfigure Now | <% } else { %>Configure Global Properties First | <% } %>
unconfigured | Dataone Configuration | <% if (propsConfigured != null && propsConfigured) { %>Configure Now | <% } else { %>Configure Global Properties First | <% } %>
configured | Replication Configuration | <% if (propsConfigured != null && propsConfigured) { %>Reconfigure Now | <% } else { %>Configure Global Properties First | <% } %>
configured | EZID Configuration for DOIs | Reconfigure Now | |
bypassed | EZID Configuration for DOIs | <% if (propsConfigured != null && propsConfigured) { %>Reconfigure Now | <% } else { %>Configure Global Properties First | <% } %>
unconfigured | EZID Configuration for DOIs | <% if (propsConfigured != null && propsConfigured) { %>Configure Now | <% } else { %>Configure Global Properties First | <% } %>
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 { %>