1 |
4080
|
daigle
|
<%@ page language="java" import="edu.ucsb.nceas.metacat.DBVersion,edu.ucsb.nceas.metacat.MetaCatVersion" %>
|
2 |
|
|
|
3 |
|
|
<%
|
4 |
|
|
/**
|
5 |
|
|
* '$RCSfile$'
|
6 |
|
|
* Copyright: 2008 Regents of the University of California and the
|
7 |
|
|
* National Center for Ecological Analysis and Synthesis
|
8 |
|
|
* For Details: http://www.nceas.ucsb.edu/
|
9 |
|
|
*
|
10 |
|
|
* '$Author$'
|
11 |
|
|
* '$Date$'
|
12 |
|
|
* '$Revision$'
|
13 |
|
|
*
|
14 |
|
|
* This program is free software; you can redistribute it and/or modify
|
15 |
|
|
* it under the terms of the GNU General Public License as published by
|
16 |
|
|
* the Free Software Foundation; either version 2 of the License, or
|
17 |
|
|
* (at your option) any later version.
|
18 |
|
|
*
|
19 |
|
|
* This program is distributed in the hope that it will be useful,
|
20 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
21 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
22 |
|
|
* GNU General Public License for more details.
|
23 |
|
|
*
|
24 |
|
|
* You should have received a copy of the GNU General Public License
|
25 |
|
|
* along with this program; if not, write to the Free Software
|
26 |
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
27 |
|
|
*/
|
28 |
|
|
%>
|
29 |
|
|
|
30 |
|
|
<%
|
31 |
|
|
MetaCatVersion metacatVersion = (MetaCatVersion)request.getAttribute("metaCatVersion");
|
32 |
|
|
DBVersion databaseVersion = (DBVersion)request.getAttribute("databaseVersion");
|
33 |
|
|
Boolean propsConfigured = (Boolean)request.getAttribute("propsConfigured");
|
34 |
|
|
Boolean ldapConfigured = (Boolean)request.getAttribute("ldapConfigured");
|
35 |
|
|
Boolean skinsConfigured = (Boolean)request.getAttribute("skinsConfigured");
|
36 |
|
|
Boolean dbConfigured = (Boolean)request.getAttribute("dbConfigured");
|
37 |
|
|
Boolean metacatConfigured = (Boolean)request.getAttribute("metacatConfigured");
|
38 |
|
|
%>
|
39 |
|
|
|
40 |
|
|
<html>
|
41 |
|
|
<head>
|
42 |
|
|
<title>Metacat Configuration</title>
|
43 |
|
|
<link rel="stylesheet" type="text/css"
|
44 |
|
|
href="<%= request.getContextPath() %>/admin/admin.css"></link>
|
45 |
|
|
</head>
|
46 |
|
|
|
47 |
|
|
<body>
|
48 |
|
|
<img src="<%= request.getContextPath() %>/metacat-logo.png" width="100px" align="right"/>
|
49 |
|
|
<h2>MetaCat Configuration</h2>
|
50 |
|
|
|
51 |
|
|
All of the following sections must be in a configured state for Metacat to run properly:
|
52 |
|
|
<br class="main-header">
|
53 |
|
|
|
54 |
|
|
<%@ include file="page-message-section.jsp"%>
|
55 |
|
|
<hr class=config>
|
56 |
|
|
|
57 |
|
|
<table class=configuration-table>
|
58 |
|
|
<%
|
59 |
|
|
if (ldapConfigured != null && ldapConfigured) {
|
60 |
|
|
%>
|
61 |
|
|
<tr>
|
62 |
|
|
<td class=configured-tag>[configured] </td>
|
63 |
|
|
<td class=property-title> LDAP Configuration </td>
|
64 |
|
|
<td class=configure-link> <a href="<%= request.getContextPath() %>/admin?configureType=ldap">Reconfigure Now</a> </td>
|
65 |
|
|
</tr>
|
66 |
|
|
<%
|
67 |
|
|
} else {
|
68 |
|
|
%>
|
69 |
|
|
<tr>
|
70 |
|
|
<td class=unconfigured-tag>[unconfigured] </td>
|
71 |
|
|
<td class=property-title> LDAP Configuration </td>
|
72 |
|
|
<td class=configure-link> <a href="<%= request.getContextPath() %>/admin?configureType=ldap">Configure Now</a> </td>
|
73 |
|
|
</tr>
|
74 |
|
|
<%
|
75 |
|
|
}
|
76 |
|
|
%>
|
77 |
|
|
|
78 |
|
|
<%
|
79 |
|
|
if (propsConfigured != null && propsConfigured) {
|
80 |
|
|
%>
|
81 |
|
|
<tr>
|
82 |
|
|
<td class=configured-tag>[configured] </td>
|
83 |
|
|
<td class=property-title> Metacat System Properties </td>
|
84 |
|
|
<td class=configure-link> <a href="<%= request.getContextPath() %>/admin?configureType=properties">Reconfigure Now</a> </td>
|
85 |
|
|
</tr>
|
86 |
|
|
<%
|
87 |
|
|
} else {
|
88 |
|
|
%>
|
89 |
|
|
<tr>
|
90 |
|
|
<td class=unconfigured-tag>[unconfigured] </td>
|
91 |
|
|
<td class=property-title> Metacat System Properties </td>
|
92 |
|
|
<td class=configure-link> <a href="<%= request.getContextPath() %>/admin?configureType=properties">Configure Now</a> </td>
|
93 |
|
|
</tr>
|
94 |
|
|
<%
|
95 |
|
|
}
|
96 |
|
|
|
97 |
|
|
if (skinsConfigured != null && skinsConfigured) {
|
98 |
|
|
%>
|
99 |
|
|
<tr>
|
100 |
|
|
<td class=configured-tag>[configured] </td>
|
101 |
|
|
<td class=property-title> Skins Specific Properties </td>
|
102 |
|
|
<td class=configure-link> <a href="<%= request.getContextPath() %>/admin?configureType=skins">Reconfigure Now</a> </td>
|
103 |
|
|
</tr>
|
104 |
|
|
<%
|
105 |
|
|
} else {
|
106 |
|
|
%>
|
107 |
|
|
<tr>
|
108 |
|
|
<td class=unconfigured-tag>[unconfigured] </td>
|
109 |
|
|
<td class=property-title> Skins Specific Properties </td>
|
110 |
|
|
<td class=configure-link> <a href="<%= request.getContextPath() %>/admin?configureType=skins">Configure Now</a> </td>
|
111 |
|
|
</tr>
|
112 |
|
|
<%
|
113 |
|
|
}
|
114 |
|
|
|
115 |
|
|
if ((dbConfigured != null && dbConfigured) ||
|
116 |
|
|
(metacatVersion != null && databaseVersion != null &&
|
117 |
|
|
metacatVersion.compareTo(databaseVersion) == 0)) {
|
118 |
|
|
%>
|
119 |
|
|
<tr>
|
120 |
|
|
<td class=configured-tag>[configured] </td>
|
121 |
|
|
<td class=property-title> Database Installation/Upgrade </td>
|
122 |
|
|
<td class=configure-link> Version: <%= databaseVersion.getVersionString() %> </td>
|
123 |
|
|
</tr>
|
124 |
|
|
<%
|
125 |
|
|
} else {
|
126 |
|
|
%>
|
127 |
|
|
<tr>
|
128 |
|
|
<td class=unconfigured-tag>[unconfigured] </td>
|
129 |
|
|
<td class=property-title> Database Installation/Upgrade </td>
|
130 |
|
|
<%
|
131 |
|
|
if (propsConfigured != null && propsConfigured) {
|
132 |
|
|
%>
|
133 |
|
|
|
134 |
|
|
<td class=configure-link> <a href="<%= request.getContextPath() %>/admin?configureType=database">Configure Now</a> </td>
|
135 |
|
|
|
136 |
|
|
<%
|
137 |
|
|
} else {
|
138 |
|
|
%>
|
139 |
|
|
<td class=configure-link> Configure System Properties First </td>
|
140 |
|
|
<%
|
141 |
|
|
}
|
142 |
|
|
%>
|
143 |
|
|
</tr>
|
144 |
|
|
<%
|
145 |
|
|
}
|
146 |
|
|
%>
|
147 |
|
|
</table>
|
148 |
|
|
<hr class=config>
|
149 |
|
|
|
150 |
|
|
<%
|
151 |
|
|
if (metacatConfigured != null && metacatConfigured) {
|
152 |
|
|
%>
|
153 |
|
|
<br>
|
154 |
|
|
<h3>Configuring Geoserver</h3>
|
155 |
|
|
<p>Metacat ships with <a href="http://docs.codehaus.org/display/GEOS/Home">Geoserver</a> to handle the spatial functionality.
|
156 |
|
|
Regardless of whether you plan on using the spatial functionality you should,
|
157 |
|
|
for security purposes, configure geoserver initially so that it doesn't use
|
158 |
|
|
the default password.
|
159 |
|
|
To configure geoserver with a new admin password:
|
160 |
|
|
<ol>
|
161 |
|
|
<li> Point your browser to
|
162 |
|
|
<a href="<%= request.getScheme() + "://" +
|
163 |
|
|
request.getServerName() + ":" + request.getServerPort() +
|
164 |
|
|
request.getContextPath() %>/geoserver.jsp"><%= request.getScheme() + "://" +
|
165 |
|
|
request.getServerName() + ":" + request.getServerPort() +
|
166 |
|
|
request.getContextPath() %>/geoserver.jsp</a>. </li>
|
167 |
|
|
<li> Login using the default username and password ( <em>admin</em> / <em>geoserver</em> ) </li>
|
168 |
|
|
<li> Point your browser to
|
169 |
|
|
<a href="<%= request.getScheme() + "://" +
|
170 |
|
|
request.getServerName() + ":" + request.getServerPort() +
|
171 |
|
|
request.getContextPath() %>/config/loginEdit.do"><%= request.getScheme() + "://" +
|
172 |
|
|
request.getServerName() + ":" + request.getServerPort() +
|
173 |
|
|
request.getContextPath() %>/config/loginEdit.do</a>, enter a new user and password then submit. </li>
|
174 |
|
|
<li> In the upper-left, click <em>Apply</em> then <em>Save</em> to save your new password.
|
175 |
|
|
|
176 |
|
|
|
177 |
|
|
</ol>
|
178 |
|
|
</p>
|
179 |
|
|
|
180 |
|
|
<hr class=config>
|
181 |
|
|
<br clear="right"/>
|
182 |
|
|
<h3>Restarting Metacat</h3>
|
183 |
|
|
<p>The simplest way to restart metacat is to restart the entire servlet engine.
|
184 |
|
|
For Tomcat, this would mean calling "$TOMCAT_HOME/bin/tomcat.sh restart" or
|
185 |
|
|
an equivalent command appropriate to your operating system. After restarting,
|
186 |
|
|
you can access your new Metacat server at the URL:
|
187 |
|
|
<a href="<%= request.getScheme() + "://" +
|
188 |
|
|
request.getServerName() + ":" + request.getServerPort() +
|
189 |
|
|
request.getContextPath() %>"><%= request.getScheme() + "://" +
|
190 |
|
|
request.getServerName() + ":" + request.getServerPort() +
|
191 |
|
|
request.getContextPath() %></a>
|
192 |
|
|
</p>
|
193 |
|
|
|
194 |
|
|
<hr class=config>
|
195 |
|
|
<%@ include file="./login-footer-section.jsp"%>
|
196 |
|
|
|
197 |
|
|
</body>
|
198 |
|
|
</html>
|
199 |
|
|
<%
|
200 |
|
|
}
|
201 |
|
|
%>
|