Project

General

Profile

Revision 8265

Refer to metacat.war deployments since those are now the default. https://projects.ecoinformatics.org/ecoinfo/issues/6082

View differences:

bbaker_diff_metacat.txt
226 226
> org.ietf.jgss.<span class="tooltip" title="included in standard JRE/JDK libraries">GSSCredential</span> credential = server.get(<span class="tooltip" title="MyProxy username">username</span>, <span class="tooltip" title="MyProxy passphrase">passphrase</span>, <span class="tooltip" title="Credential lifetime in seconds">lifetime</span>);
227 227
> 
228 228
> // 2. Connect to Metacat via GSI+HTTPS
229
> String metacatUrl = "https://&lt;metacat server&gt;:8443/knb/metacat/";
229
> String metacatUrl = "https://&lt;metacat server&gt;:8443/metacat/metacat/";
230 230
> edu.ucsb.nceas.metacat.client.Metacat client 
231 231
>     = edu.ucsb.nceas.metacat.client.MetacatFactory.createMetacatConnection(metacatUrl);
232 232
> String loginResult = client.login(credential);
......
243 243
>       IDs, which will generally be LDAP DNs.  You can do this in a map
244 244
>       file that starts out in
245 245
>       <code>metacat/src/gsimap.properties</code> and gets deployed to
246
>       Tomcat's <code>webapps/knb/WEB-INF/</code> directory.  You can
246
>       Tomcat's <code>webapps/metacat/WEB-INF/</code> directory.  You can
247 247
>       modify it in either place, but it will be overwritten each time
248 248
>       you redeploy Metacat if you change it in Tomcat's installation
249 249
>       directory.</p>
......
275 275
> 
276 276
>       <p>Short answer: replace "<code>https</code>" with
277 277
>       "<code>httpg</code>".</p>
278
>       <blockquote><pre><code><i>https</i>://&lt;metacat server&gt;:8443/knb/metacat/</code></pre></blockquote>
278
>       <blockquote><pre><code><i>https</i>://&lt;metacat server&gt;:8443/metacat/metacat/</code></pre></blockquote>
279 279
>       <p>becomes</p>
280
>       <blockquote><pre><i>httpg</i>://&lt;metacat server&gt;:8443/knb/metacat/</pre></blockquote>
280
>       <blockquote><pre><i>httpg</i>://&lt;metacat server&gt;:8443/metacat/metacat/</pre></blockquote>
281 281
> 
282 282
>       <p>Long answer: The URL in the example above,
283
>       <code>https://&lt;metacat server&gt;:8443/knb/metacat/</code>,
283
>       <code>https://&lt;metacat server&gt;:8443/metacat/metacat/</code>,
284 284
>       uses the <code>HTTPS</code> protocol.  However, actually
285 285
>       handling that connection requires a protocol handler that
286 286
>       understands GSI+HTTPS instead of plain HTTPS.  Fortunately,

Also available in: Unified diff