AnsweredAssumed Answered

Register ArcGIS for Server with the Geoportal - HTTP status code {302 - Redirect} received from server

Question asked by Azghar on Jul 7, 2018

Hello Everybody,

 

Please help me.

I have installed Geoportal 1.2.6 on Windows machine.

I have enabled simpleAdapter identity.

 

Following is the content of my gpt.xml

<?xml version="1.0" encoding="UTF-8"?>
<!--
    See the NOTICE file distributed with
    this work for additional information regarding copyright ownership.
    Esri Inc. licenses this file to You under the Apache License, Version 2.0
    (the "License"); you may not use this file except in compliance with
    the License.  You may obtain a copy of the License at
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->
<gptConfig version="1.2.8">
    <databaseReference name="gpt" jndiName="jdbc/gpt"/>
   
    <!-- Mail server configuration.
        - smtpHost: mail server SMTP host
        - smtpPort: mail server SMPT port (optional)
        - siteEmailAddress: portal contact E-Mail address
        - emailAddressRegexp: a regular expression for validating input E-Mail addresses   
        - smptAuth: configuration for a mail server requiring authentication credentials
        - username: the username credential
        - password: the password credential
        - encrypted: "true" or "false" (indicates if this password is encrypted) -->
    <mail
        smtpHost="mail_server_smtp_host" 
        smtpPort=""
        siteEmailAddress="portal_contact_email_address"
        emailAddressRegexp="^[a-zA-Z0-9,!#\$%&amp;'\*\+/=\?\^_`\{\|}~-]+(\.[a-zA-Z0-9,!#\$%&amp;'\*\+/=\?\^_`\{\|}~-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*$">
        <smtpAuth
            username=""
            password=""
            encrypted="false"/>
    </mail>
   <!-- Base map configuration. (used in search page, preview, details page, editor)
        - jsapiUrl: URL to the JavaScript API
        - mapServiceUrl: URL for a map service
           Types: ArcGIS REST, WMS, WMTS. (This can be empty for openstreet map).
        - mapServiceType: A type of map service
           Values: dynamic | tiled | wms | wmts | openstreet
        - mapVisibleLayers: An array of visible WMS layer names.
           This parameter should be defined when WMS is used as a map service.
           (from <name> element of WMS GetCapabilities xml) 
           Example: "['name1','name2','name3','name4']"
        - geometryServiceUrl: REST URL to an ArcGIS Server GeometryServer service.
        - locatorUrl: REST URL to an ArcGIS Server GeocodeServer service, e.g. locatorUrl="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Locators/ESRI_Geocode_USA/GeocodeServer"
        - locatorSingleFieldParameter: field for the GeocodeServer service upon which locations can be searched
        - the urls start with "//" without the protocol (http: or https:).
    -->
   
    <interactiveMap
        jsapiUrl="//js.arcgis.com/3.13/"
        mapServiceUrl="//services.arcgisonline.com/arcgis/rest/services/ESRI_StreetMap_World_2D/MapServer"
        mapServiceType="dynamic"
        geometryServiceUrl="//tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"
        locatorUrl="//geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"
        locatorSingleFieldParameter = "Address"/>
 
    <catalog gptTablePrefix="GPT_">      
    <!-- Lucene configuration.
        - indexLocation: path to the folder that will hold indexed documents
            (e.g. c:/geoportal/lucene-index/catalog1)
        - writeLockTimeout: the wait time in milli-seconds for acquiring a write lock
        - useNativeFSLockFactory: if true a NativeFSLockFactory is used otherwise use a SimpleFSLockFactory
        - analyzerClassName: the class name for the Lucene analyzer
        - adaptor: parameters that define the optional OntologyService configuration, as per geoportal webhelp at      
            http://help.arcgis.com/en/geoportal_extension/10.0/help/index.html#/Enable_Search_Using_an_Ontology_Service/00t00000003v000000/
    -->
     
    <lucene
        indexLocation="C:\lucene"
        writeLockTimeout="60000"
        useNativeFSLockFactory="true"
        analyzerClassName="org.apache.lucene.analysis.standard.StandardAnalyzer">
    <!--
        <adaptor name="like" className="com.esri.gpt.catalog.lucene.StandardNetworkParserAdaptor">
        <attribute key="baseUrl" value="http://serverName/OntologyService/query?threshold=0.25&term="/>
        </adaptor>
    -->
    </lucene>
 
    <!-- Additional configuration for Lucene
        - lucene.alwaysStoreXmlInIndex:
   true if the full document xml should be store within the index
        - lucene.force.isPartOf:
   force all Lucene queries to have an isPartOf field equal to the supplied value
        - lucene.useSingleSearcher:
   true if a single Lucene searcher is preferred across all threads
        - lucene.useSingleWriter:
   true if a single Lucene writer is preferred across all threads
        - lucene.useRemoteWriter:
   true if documents should be indexed remotely
        - lucene.remoteWriterUrl:
   the URL to be used when indexing documents remotely
    -->     
    <parameter key="lucene.alwaysStoreXmlInIndex" value="false"/>
    <parameter key="lucene.force.isPartOf" value=""/>
    <parameter key="lucene.useSingleSearcher" value="true"/>
    <parameter key="lucene.useSingleWriter" value="true"/>
    <parameter key="lucene.useLocalWriter" value="true"/>
    <parameter key="lucene.useRemoteWriter" value="false"/>
    <parameter key="lucene.remoteWriterUrl" value=""/>
         
    <!--  Lucene index based assertions (resource ratings and comments). 
        - assertion.index.enabled: indicates if ratings and comments should be enabled.
        - assertion.index.location: path to the folder that will hold the indexed comments and ratings.
            NOTE: This assertion.index.location should not be the same location as the lucene\indexLocation value.
            These indexes should not be deleted and should be on a file backup/restore plan.
            Example: c:/geoportal/lucene_assertion_index_location/catalog1
        - assertion.index.allowNonLocalResourceIds: if true, comments and ratings can be made about resources that do not exist
            in the local catalog.
        - assertion.rating.enabled: allow users to rate resources.
        - assertion.comment.enabled: allow users to leave comments for resources.
        - assertion.comment.maxLength: maximum characters allowed for one comment. 
    -->
    <parameter key="assertion.index.enabled" value="true"/>
    <parameter key="assertion.index.location" value="C:\lucene\assertion"/>
    <parameter key="assertion.index.allowNonLocalResourceIds" value="false"/>
    <parameter key="assertion.rating.enabled" value="true"/>
    <parameter key="assertion.comment.enabled" value="true"/>
    <parameter key="assertion.comment.maxLength" value="2048"/>
         
    <!-- Map Viewer configuration.
    Optional. You can use the following section to integrate a map viewer with your geoportal,
    According to the Integrate a Map Viewer webhelp documentation at:
     http://help.arcgis.com/en/geoportal_extension/10.0/help/index.html#/Integrate_a_Map_Viewer/00t00000000s000000/ 
    Below is the flex map viewer configuration.
        - url = Url of the Flex viewer. {contextPath} parameter will be replaced with the application server contextpath.
   NOTE: For other clients to use "Add to Map" link in REST response, the absolute URL to your Flex Viewer needs to be configured in the url parameter.
        - className: class name of the map viewer instance, e.g., for Flex example is com.esri.gpt.catalog.search.MapViewerFlex.
   NOTE: The MapViewerFlex must be in the same domain and port in order for layering of resources to work
    -->
    <!-- The Geoportal Flex widget configuration for ArcGIS View for Flex 2.2 -->
    <mapViewer>
        <instance
            url="{contextPath}/viewer/index.jsp"
            className="com.esri.gpt.catalog.search.MapViewerFlex_2_4">
        <parameter key="width" value="1000"/>
        <parameter key="height" value="700"/>
        <parameter key="regexCanConsumeUrl" value=""/>
        </instance>
    </mapViewer>
     
    <!-- The map viewer configuration for Portal for ArcGIS 
    <mapViewer>
        <instance
            url="[agsportal]/home/webmap/viewer.html"
            className="com.esri.gpt.catalog.search.MapViewerAgsPortal">
            <parameter key="wmsBaseMapUrl" value="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"/>
        </instance>
    </mapViewer>
    -->
           
    <!-- Search settings.
  - searchTimeoutMillisecs: length of time allotted to a search attempt before a timeout error occurs
  - distributedSearchTimeoutMillisecs: length of time allotted to a federated search attempt before a timeout error occurs
  - distributedSearchMaxSelectedSites: maximum number of sites allowed to be searched in one federated search attempt
  - searchResultsPerPage: number of results to show on a page.  If more results are returned than this value, page navigation will be visible
  - searchResultsReviewsShown: How should the reviews be shown on the results page.  Options are "none", "only-reviewed" or "all"
  - maxSavedSearches: maximum number of allowed searches in storage, per user.
  - allowExternalSiteSearch: Flag enabling federated search
                - allowTemporalSearch: Flag enabling temporal search on metadata fields
    -->  
       
    <search
        searchTimeoutMillisecs="10000"
        distributedSearchTimeoutMillisecs="5000"
        distributedSearchMaxSelectedSites="5"
        searchResultsPerPage="10"
        searchResultsReviewsShown="only-reviewed"
        maxSavedSearches="10"
        allowExternalSiteSearch="true"
        allowTemporalSearch="true">
        <!-- Settings for repositories available in federated search
            - key: regular expression, can be used to identify the rid for the repository.
            - class: search engine instance, a Java class that will process the search request.
            - labelResourceKey: text that appears in the federated search list.
    If no key is given, the repository will not be visible in the federated search list.
            - abstractResourceKey: text that appears on the REST distributed search, describing the repository. -->
        <repositories>
            <repository
                key="local"
                class="com.esri.gpt.catalog.search.SearchEngineLocal"
                labelResourceKey="catalog.search.searchSite.defaultsite"
                abstractResourceKey="catalog.search.searchSite.defaultsite.abstract"/>  
            <!--  Default search engine that catches blank rids -->  
            <repository key="^$"
                class="com.esri.gpt.catalog.search.SearchEngineLocal"
                labelResourceKey=""
                abstractResourceKey=""/>
            <!-- arcgis.com rid.  Optional. -->   
            <repository key="arcgis.com" 
                class="com.esri.gpt.catalog.search.SearchEngineRest"
                labelResourceKey="catalog.search.searchSite.agsonline"
                abstractResourceKey="catalog.search.searchSite.agsonline.abstract">
                <parameter key="endPointSearchUrl"
                    value="http://www.arcgis.com/sharing/search?q={searchTerms}&amp;start={startIndex}&amp;num={count}&amp;f=json"/> 
                <parameter key="defaultParamValues"
                    value="q&#x2714;access:shared || access:public || access:private "/> 
                <parameter key="profileId"
                    value="urn:esri:gpt:HTTP:JSON:ESRI:AGSONLINE" />
            </repository>
             <repository
                 key="dataGov"
                 class="com.esri.gpt.catalog.search.SearchEngineExternalCsw"
                 labelResourceKey="catalog.search.searchSite.dataGov"
                 abstractResourceKey="catalog.search.searchSite.dataGov.abstract"
                >
                <parameter key="profileId"
                    value="urn:ogc:CSW:2.0.2:HTTP:APISO:PYCSW" />
                <parameter key="url"
                    value="http://catalog.data.gov/csw-all?service=CSW&version=2.0.2&request=GetCapabilities" />
            </repository>
            <repository
                 key="geodab"
                 class="com.esri.gpt.catalog.search.SearchEngineExternalCsw"
                 labelResourceKey="catalog.search.searchSite.geoDab"
                 abstractResourceKey="catalog.search.searchSite.geoDab.abstract"
                >
                <parameter key="profileId"
                    value="urn:ogc:CSW:2.0.2:HTTP:APISO:GICAT" />
                <parameter key="url"
                    value="http://production.geodab.eu/gi-cat-StP/services/cswiso?request=GetCapabilities&service=CSW&version=2.0.2" />
            </repository>
            <!-- For the registered CS-W repositories flagged for viewing in federated search -->
            <repository key="*"
                 class="com.esri.gpt.catalog.search.SearchEngineExternalCsw"/>
        </repositories>
     
        <!-- Class registration to produce search result in a custom format.
            - regexFormat: output format name that is used in REST search URL.
                Example: if output format value is csv, the REST URL will be http://geoportal/rest/find/document?f=csv      
            - class: location of the custom class to generate the output format.
        --> 
        <searchResultFormat>
            <format regexFormat="csv" class="com.esri.gpt.control.georss.CsvWriter">
            </format>
            </searchResultFormat>
        </search>   
                   
        <!-- Metadata Access Policy Configuration
            For Ldap identity adapter, single group restriction policy configure as below,
            if not configured then publisher selects from all ldap groups
            type="unrestricted"
         or
            type="public-protected" protectedGroupDN="distinguishedName(E.g. cn=gpt_administrators,ou=groups,ou=system)"
            or
            type="restricted"
        --> 
        <metadataAccessPolicy type="unrestricted"/>
       
        <!-- Sitemap parameters
            - sitemap.baseUrl: the base URL for sitemap files
                default = auto-generated, e.g. http://host:port/[contextPath]/sitemap
            - sitemap.documentUrlPattern: the default URL pattern referencing documents within a sitemap,
                {0} will be replaced with the document's UUID,
                default = /sitemap/document/{0}?f=html  
            - sitemap.documentUrlPattern.[format]: response format specific document URL patterns,
                {0} will be replaced with the document's UUID,
                e.g.
                    http://host:port/[contextPath]/sitemap?f=xml
                    will produce specific document references with the following pattern
                    http://host:port/[contextPath]/sitemap/document/{0}?f=xml
            - sitemap.urlsPerIndexFile: the maximum number of sitemap files to be referenced within
                the sitemap index file (should not exceed 1000), default = 1000
            - sitemap.urlsPerSitemapFile: the maximum number of documents to be referenced within
                an individual sitemap file (should not exceed 50000), default = 1000
            - sitemap.namespaceUri: the sitemap namespace URI,
                default = http://www.sitemaps.org/schemas/sitemap/0.9
            - sitemap.changefreg: the change frequency to be listed per document reference,
                hourly daily weekly monthly yearly , default = weekly
            - sitemap.priority: the priority to be listed per document reference, 0.0 -> 1.0,
                default = none  
        -->
        
        <parameter key="sitemap.baseUrl" value=""/>
        <parameter key="sitemap.documentUrlPattern" value="/sitemap/document/{0}?f=html"/>
        <parameter key="sitemap.documentUrlPattern.html" value="/sitemap/document/{0}?f=html"/>
        <parameter key="sitemap.documentUrlPattern.htmlfragment" value="/sitemap/document/{0}?f=htmlfragment"/>
        <parameter key="sitemap.documentUrlPattern.xml" value="/sitemap/document/{0}?f=xml"/>
        <parameter key="sitemap.documentUrlPattern.kml" value="/sitemap/document/{0}?f=kml"/>
        <parameter key="sitemap.urlsPerIndexFile" value="1000"/>
        <parameter key="sitemap.urlsPerSitemapFile" value="1000"/>
        <parameter key="sitemap.namespaceUri" value="http://www.sitemaps.org/schemas/sitemap/0.9"/>
        <parameter key="sitemap.changefreq" value="weekly"/>
        <parameter key="sitemap.priority" value=""/>
   
        <!-- Web Harvester parameters.
            - webharvester.active: flag for if synchronization is active at startup. Default: true
            - webharvester.queueEnabled: flag to enable task queue.
    Default: current webharvester.active value.
    Note! its is not possible to set this flag to false if webharvester.active is true
            - webharvester.poolsize: pool size of the Threads. Default: 4
            - webharvester.autoSelectFrequency: Resources auto-selection frequency. Default: 1[HOUR]
            - webharvester.autoSelectSuspendPeriod: period for how long can repository be suspended from
                                                    harvesting after unsuccessful harvest. Default: 1[Day]
            - webharvester.watchDogFrequency: Watch-dog activation frequency. Default: 1[MINUTE]
            - webharvester.baseContextPath: Base context path used inside email notifications. Default: none (no report link in the notification)
            - webharvester.maxRepRecords: Maximum number of records to report. Default: 10000. -1 to remove limit.
            - webharvester.maxRepErrors: Maximum number of errors to report. Default: 5000. -1 to remove limit
            - webharvester.resource.autoApprove: Autoapprove newly registered resources. Default: false
            - webharvester.updateindex: Update the Lucene index following document publication. Default: true
            - webharvester.cleanup: Delete documents that no longer exist on the remote server. Default: true
            - webharvester.policy.class: Manages policy of the harvester; currently only manages how frequently enforce 'full harvest'.
    Default: com.esri.gpt.control.webharvest.engine.DefaultHarvestPolicy
            - webharvester.policy.simple.frequency: frequency how often 'full harvest' should be enforced.
    For example, if the value is 3, every third harvest for a site will be a full harvest.
            - webharvester.agp2agp.maxItems: maximum number of items to harvest through Agp2Agp protocol.
        -->   
        <parameter key="webharvester.active" value="true"/>
        <parameter key="webharvester.queueEnabled" value=""/>
        <parameter key="webharvester.poolsize" value=""/>
        <parameter key="webharvester.autoSelectFrequency" value=""/>
        <parameter key="webharvester.autoSelectSuspendPeriod" value=""/>
        <parameter key="webharvester.watchDogFrequency" value=""/>
        <parameter key="webharvester.baseContextPath" value=""/>
        <parameter key="webharvester.maxRepRecords" value="70"/>
        <parameter key="webharvester.maxRepErrors" value="7"/>
        <parameter key="webharvester.resource.autoApprove" value=""/>    
        <parameter key="webharvester.updateindex" value="true"/>
        <parameter key="webharvester.cleanup" value="true"/>
        <parameter key="webharvester.policy.class" value="com.esri.gpt.control.webharvest.engine.SimpleHarvestPolicy"/>
        <parameter key="webharvester.policy.simple.frequency" value="1"/>
        <parameter key="webharvester.agp2agp.maxItems" value="2000"/>
       
        <!-- Robot parameters.
            - bot.robotstxt.enabled: use of robots.txt during harvesting is enabled. Default: true
            - bot.robotstxt.override:  allows user to override bot.robotstxt.enabled. Default: true;
            - bot.agent: name of the user agent for interpreting content of robots.txt. Default: "GeoportalServer"
        -->
        <parameter key="bot.robotstxt.enabled" value=""/>
        <parameter key="bot.robotstxt.override" value=""/>
        <parameter key="bot.agent" value=""/>
       
        <!-- Additional Parameters.
            - catalog.enableEditForAllPubMethods:
    true if document editing should be enabled for all publication methods,
    false if only documents created by the editor should be editable
            - catalog.enableEditForAdministrator:
                true if document editing should be enabled for administrator even
                if he is not an owner of the metadata
            - catalog.enableDuplicate:
                true to enable "Duplicate" operation on metadata
            - catalog.admin.allowApplyToAll:
    true if an administrator should be able to apply an action to
    all matching records
            - catalog.useCollections:
    true enables collections (experimental, should be false by default)
            - database.isCaseSensitive:
    true if the database is case sensitive (set this to false for MySQL)
            - publicationRequest.autoApprove:
    true if newly published documents should be approved by default
            - publicationRequest.allowFileIdForUuid
        true if an xml's internal file identifier should used as the document uuid
            - spatialRelevance.ranking.maxDoc:
    turn spatial relevance ranking off when the catalog exceeds the supplied maximum document number
            - rssProviderUrl:
    URL to include as the provider within RSS responses
            - reverseProxy.baseContextPath:
    the URL prefix to use when the application is deployed behind a reverse proxy (e.g. http://somehost/geoportal); should be the user-facing URL. Best practice is to set this even if not using a reverse proxy
            - RestServlet.printXml.stripStyleSheets:
    true if references to XSLs and DOCTYPEs would be stripped from
    document XMLs when requesting the full XML from the rest end-point
            - Administration.viewMetadata.stripStyleSheets:
    true if references to XSLs and DOCTYPEs would be stripped from
    document XMLs when requesting a full XML view from the administration page
            - httpClientRequest.connectionTimeout: connection timeout for HTTP requests to the remote endpoints using Apache HTTP client.
    If no value is provided, the default value is infinitive.                 
                Possible values:  If no unit is given, number of milliseconds,
     [SECOND] – number of seconds
     [MINUTE] – number of minutes
     [HOUR] – number of hours
            - httpClientRequest.responseTimeout: response timeout for HTTP requests to the remote endpoints using Apache HTTP client.
    If no value is provided, the default value is infinitive.
                Possible values:  If no unit is given, number of milliseconds,
     [SECOND] – number of seconds
     [MINUTE] – number of minutes
     [HOUR] – number of hours
            - httpClient.alwaysClose: forces to always close socket connection for requests to the remote endpoints using Apache HTTP client.
    Default: false.  
            - AllowDuplicateResourceURL:
                true to allow registration of web resources with the URL which
                already has been registered
            - AllowonlyAuthenticatedUser:
                true to disable access to the search and browse pages for users
                which has not been authenticated
        --> 
        <parameter key="catalog.enableEditForAllPubMethods" value="false"/>
        <parameter key="catalog.enableEditForAdministrator" value="false"/>
        <parameter key="catalog.enableDuplicate" value="true"/>
        <parameter key="catalog.admin.allowApplyToAll" value="true"/>
        <parameter key="catalog.useCollections" value="false"/>
        <parameter key="database.isCaseSensitive" value="true"/>
        <parameter key="publicationRequest.autoApprove" value="false"/>
        <parameter key="publicationRequest.allowFileIdForUuid" value="false"/>
        <parameter key="spatialRelevance.ranking.maxDoc" value="1000000"/>
        <parameter key="rssProviderUrl" value=""/>
        <parameter key="reverseProxy.baseContextPath" value=""/>
        <parameter key="RestServlet.printXml.stripStyleSheets" value="true"/>
        <parameter key="Administration.viewMetadata.stripStyleSheets" value="true"/>
        <parameter key="httpClientRequest.connectionTimeout" value="2[MINUTE]"/>
        <parameter key="httpClientRequest.responseTimeout" value="2[MINUTE]"/>
        <parameter key="httpClient.alwaysClose" value="false"/>
        <parameter key="AllowDuplicateResourceURL" value="false"/>  
        <parameter key="AllowOnlyAuthenticatedUser" value="false"/>  
       
      <!-- Resource Link Builder
         - resourceLinkBuilder.preview.filter: regular expression disabling ‘preview’ link on search result
          for all records having resource URL matching template.
      --> 
        <parameter key="resourceLinkBuilder.preview.filter" value="^ftp://.*|^ftps://.*|.*\.zip$|.*\.e00$|.*\.lpk$|.*\.pkinfo$|.*\.gz$|.*\.tgz$|.*\.tar$|.*\.rar$|.*\.shp$|.*\.dbf$|.*\.xls$|.*\.dwg$|.*\.dxf$|.*\.dgn$|.*\.mxd$|.*\.lyr$|.*\.nmf$|.*f=lyr.*|.*f=nmf.*|.*/globeserver.*|.*/gpserver.*|.*/geocodeserver.*|.*/geometryserver.*|.*/networkserver.*|.*/geodataserver.*|.*service=wfs.*|.*wfsserver.*|.*service=wcs.*|.*wcsserver.*|.*service=csw.*|.*cswserver.*|.*mobileserver.*|.*naserver.*"/>
 
        <!-- This parameter is used to enable managing user role in ldap identity store. -->
        <parameter key="ldap.identity.manage.userRoleEnabled" value="true"/>   
        <!-- This parameter is used to restrict managing user roles to roles configured in geoportal. -->
        <parameter key="ldap.identity.restrictToConfiguredRoles" value="true"/>    
        <!-- This parameter is used to restrict number to matches to be returned on searching ldap users. -->
        <parameter key="ldap.identity.search.maxResults" value="1000"/> 
        <!--
     This configuration is to connect FGDC Service Checker services to monitor registered live services in geoportal site.
     To enable this feature, it is required to get API key from FGDC Service Checker site.
     Please visit http://registry.gsdi.org/statuschecker/ and sign up for your Geoportal Server site.
        Service checker parameters:
            - servicechecker.enabled: enables or disables service checker. Default: false
            - servicechecker.token: service checker token.
    Contact FGDC.GOV to obtain token for your specific deployment.
            - servicechecker.checkUrl: service checker URL
            - servicechecker.infoUrl: service info URL
        -->
        <parameter key="servicechecker.enabled" value="false"/>
        <parameter key="servicechecker.token" value=""/>
        <parameter key="servicechecker.checkUrl" value="http://registry.fgdc.gov/statuschecker/api/v2/results"/>
        <parameter key="servicechecker.infoUrl" value="http://registry.fgdc.gov/statuschecker/ServiceDetail.php"/>
        <!--
        Item cart parameters:
     This is a sample processor, a specific processor can be created based upon the usecase.
            - catalog.cart.enabled: enables or disables the cart. Default: false
            - catalog.cart.maxItems: maximum number of items in the cart. Default: 10
            - catalog.cart.processor: the Java class used to process items Default: none
            - catalog.cart.processor.whitelist: comma-separated list of processors allowed to pass as an argument
            - catalog.cart.xslt.whitelist: comma-separated list of xslt allowed to pass as an argument
            - catalog.cart.tryhandler.class: class name of the "/try" handler
        -->
        <parameter key="catalog.cart.enabled" value="false"/>
        <parameter key="catalog.cart.maxItems" value="100"/>
        <parameter key="catalog.cart.processor" value="com.esri.gpt.control.cart.ZipXmls"/>
        <parameter key="catalog.cart.processor.whitelist" value="com.esri.gpt.control.cart.ZipXmls"/>
        <parameter key="catalog.cart.xslt.whitelist" value=""/>
        <parameter key="catalog.cart.tryhandler.class" value=""/>
       
        <!-- example of custom 'tryhandler'
        <parameter key="catalog.cart.tryhandler.class" value="com.esri.gpt.control.cart.VolumeTryHandler"/>
        <parameter key="catalog.cart.volumetryhandler.commaSeparatedFields" value="dcat.size"/>
        <parameter key="catalog.cart.volumetryhandler.max" value="100000"/>
        -->
  <!-- Mapping file to map dcat fields to lucene index fields -->
  <parameter key="dcat.mappings" value="gpt/metadata/dcat-mappings.xml"/>
        <!-- DCAT cache directory -->
        <parameter key="dcat.cache.path" value=""/>
        <!-- DCAT landing page default to metadata details -->
        <parameter key="dcat.landingPage.default.details" value="false"/>
        <!-- DCAT "rights" attribute printed out regardless of the "accessLevel" value-->
        <parameter key="dcat.rights.writeAlways" value="false"/>
    </catalog>
   
    <!-- customization of web harvester -->
    <!--webharvester>
  <dataProcessorFactory enabled="true" className="com.esri.gpt.control.webharvest.extensions.localfolder.LocalFolderDataProcessorFactory" name="localfolder" rootFolder="c:\data"/>
    </webharvester-->
   
    <!-- Download data configuration.
        - taskUrl: geoprocessing task URL
        - mapServiceUrl: map service URL used by geoprocessing task
        - mapServiceType: The caching scheme for the map service. The value can be "dynamic" or "tiled" 
    -->
 
    <downloadData
        taskUrl=""
        mapServiceUrl=""
        mapServiceType="">
        <features>
            <feature key="File Geodatabase - GDB - .gdb" alias="gdb" resKey="catalog.download.feature.gdb"/>
            <feature key="Shapefile - SHP - .shp" alias="shp" resKey="catalog.download.feature.shp"/>
            <feature key="Autodesk AutoCAD - ACAD - .dxf" alias="dxf" resKey="catalog.download.feature.dxf"/>
            <feature key="Autodesk AutoCAD - ACAD - .dwg" alias="dwg"  resKey="catalog.download.feature.dwg"/>
            <feature key="Bentley Microstation Design (V8) - DGN_V8 - .dgn" alias="dgn"  resKey="catalog.download.feature.dgn"/>
        </features>
        <rasters>
            <raster key="ESRI GRID - GRID" alias="grd" resKey="catalog.download.raster.grd"/>
            <raster key="File Geodatabase - GDB - .gdb" alias="gdb" resKey="catalog.download.raster.gdb"/>
            <raster key="ERDAS IMAGINE - IMG - .img" alias="img"  resKey="catalog.download.raster.img"/>
            <raster key="Tagged Image File Format - TIFF - .tif" alias="tif"  resKey="catalog.download.raster.tif"/>
            <raster key="Graphic Interchange Format - GIF - .gif" alias="gif"  resKey="catalog.download.raster.gif"/>
            <raster key="Joint Photographics Experts Group - JPEG - .jpg" alias="jpg"  resKey="catalog.download.raster.jpg"/>
            <raster key="Joint Photographics Experts Group - JPEG 2000 - .jp2" alias="jp2"  resKey="catalog.download.raster.jp2"/>
            <raster key="Bitmap - BMP - .bmp" alias="bmp"  resKey="catalog.download.raster.bmp"/>
            <raster key="Portable Network Graphics - PNG - .png" alias="png"  resKey="catalog.download.raster.png"/>
        </rasters>
      
        <!-- To support backward compatibility for the Geoportal 9.3.x data download customizations,
            these projections and format sections are provided. These are not used in the Geoportal
            10 data download customization
        -->
        <!--
        <projections>
            <projection key="Mercator (world)" alias="54004" resKey="catalog.download.projection.54004"/>
            <projection key="WGS 1984 UTM Zone 10N" alias="32610" resKey="catalog.download.projection.32610"/>
            <projection key="WGS 1984 Web Mercator" alias="102113" resKey="catalog.download.projection.102113"/>
            <projection key="WGS 1984" alias="4326" resKey="catalog.download.projection.4326"/>
        </projections>
        <formats>
            <format key="GML - (.gml)" alias="gml" resKey="catalog.download.outputFormat.gml"/>
            <format key="GMLSF - (.gmlsf)" alias="gmlsf" resKey="catalog.download.outputFormat.gmlsf"/>
            <format key="MIF - (.mif)" alias="mif" resKey="catalog.download.outputFormat.mif"/>
            <format key="ACAD - (.dwg)" alias="dwg" resKey="catalog.download.outputFormat.acad"/>
            <format key="IGDS - (.dgn)" alias="dgn" resKey="catalog.download.outputFormat.igds"/>
        </formats>
        -->       
    </downloadData>
 
    <!-- User Management configuration. simpleAdapter OR ldapAdapter.
        - simpleAdpater: configures geoportal with one administrative user
        - ldapAdapter: configures geoportal to connect to LDAP user directory store.
    -->
    <identity encKey="PtkESRI" realm="Geoportal"> 
      
        <simpleAdapter>
            <account username="gptaccount" password="gpt.account" encrypted="false"/>
            <roles>
                <role key="gptRegisteredUser"/>
                <role key="gptPublisher"/>
                <role key="gptAdministrator"/>
            </roles>
        </simpleAdapter>
     
       
    <!--
     Identity adapter when using ArcGIS Online or Portal as the identity store.
     appId: application id (Geoportal app registered at ArcGIS Online or Portal)
     authorizeUrl: OAuth2 authorize url (e.g. https://myorg.maps.arcgis.com/sharing/oauth2/authorize)
     expirationMinutes: token expiration minutes
     gptAdministratorsGroupId: group id for Geoportal administrators (optional)
     gptPublishersGroupId: group id for Geoportal publishers (optional)
     allUsersCanPublish: true or false, if true all authenticated users can publish items to Geoportal
    -->
    <!--
        <arcgisPortalAdapter
         appId=""
         authorizeUrl=""
         expirationMinutes="120"
         gptAdministratorsGroupId=""
         gptPublishersGroupId=""
          allUsersCanPublish="true"
        />
        -->
     
       
          
    </identity>
 
    <!-- Scheduled Background Threads -->
    <scheduler active="true" corePoolSize="0">
        <!-- Catalog synchronization (sync Lucene index with the database) -->
        <thread class="com.esri.gpt.catalog.context.CatalogSynchronizer" at="01:00"/>
      
        <!-- Index optimization -->
        <!-- <thread class="com.esri.gpt.catalog.lucene.LuceneIndexOptimizer" at="03:30"/>-->
       
        <!-- DCAT cache generation -->
        <thread class="com.esri.gpt.control.georss.dcatcache.DcatCacheTask" period='1[DAY]' delay="15[SECOND]"/>
    </scheduler>
   
    <!-- Harvesting protocols configuration.
         default      - if true, the default configuration will be loaded first,
         factoryClass - canonical name of the protocol factory class,
         resourceKey  - resource key of the protocol name.
    -->
    <protocols default="false">
      <protocol factoryClass="com.esri.gpt.control.webharvest.protocol.factories.ResourceProtocolFactory"
                resourceKey="catalog.harvest.manage.edit.protocol.resource"/>
      <protocol factoryClass="com.esri.gpt.control.webharvest.protocol.factories.ArcGISProtocolFactory"
                resourceKey="catalog.harvest.manage.edit.protocol.arcgis"/>
      <protocol factoryClass="com.esri.gpt.control.webharvest.protocol.factories.ArcImsProtocolFactory"
                resourceKey="catalog.harvest.manage.edit.protocol.arcims"/>
      <protocol factoryClass="com.esri.gpt.control.webharvest.protocol.factories.OaiProtocolFactory"
                resourceKey="catalog.harvest.manage.edit.protocol.oai"/>
      <protocol factoryClass="com.esri.gpt.control.webharvest.protocol.factories.WafProtocolFactory"
                resourceKey="catalog.harvest.manage.edit.protocol.waf"/>
      <protocol factoryClass="com.esri.gpt.control.webharvest.protocol.factories.CswProtocolFactory"
                resourceKey="catalog.harvest.manage.edit.protocol.csw"/>
      <protocol factoryClass="com.esri.gpt.control.webharvest.protocol.factories.ThreddsProtocolFactory"
                resourceKey="catalog.harvest.manage.edit.protocol.thredds"/>
      <protocol factoryClass="com.esri.gpt.control.webharvest.protocol.factories.AtomProtocolFactory"
                resourceKey="catalog.harvest.manage.edit.protocol.atom"/>
<!--     
      <protocol factoryClass="com.esri.gpt.control.webharvest.protocol.factories.Agp2AgpProtocolFactory"
               resourceKey="catalog.harvest.manage.edit.protocol.agp2agp"/> 
-->
<!--     
      <protocol factoryClass="com.esri.gpt.control.webharvest.protocol.factories.Agp2AgpRelaxedProtocolFactory"
               resourceKey="catalog.harvest.manage.edit.protocol.agp2agp"/> 
-->
<!--     
      <protocol factoryClass="com.esri.gpt.control.webharvest.protocol.factories.Gpt2AgpProtocolFactory"
               resourceKey="catalog.harvest.manage.edit.protocol.gpt2agp"/> 
-->
<!--     
      <protocol factoryClass="com.esri.gpt.control.webharvest.protocol.factories.Ags2AgpProtocolFactory"
               resourceKey="catalog.harvest.manage.edit.protocol.ags2agp"/> 
-->
      <protocol factoryClass="com.esri.gpt.control.webharvest.protocol.factories.DCATProtocolFactory"
               resourceKey="catalog.harvest.manage.edit.protocol.dcat"/> 
    </protocols>
</gptConfig>

 

 

 

Following is content of geoportal.xml

<!-- Context configuration file for the Geoportal Web App -->
<Context docBase="geoportal" path="/geoportal" debug="1" reloadable="true" crossContext="true">
          <Resource name="jdbc/gpt" auth="Container" type="javax.sql.DataSource"
                 driverClassName="org.postgresql.Driver"
                 url="jdbc:postgresql://localhost:5432/postgres"
                 username="geoportaluser"
                 password="geoportal"
                 maxActive="20"
                 maxIdle="10"
                 maxWait="-1" />
         </Context>
When I try to register the ArcGIS server by giving REST URL and SOAP URL I get an error message like below.
HTTP status code {302 - Redirect} received from server 
When I click on test it is giving the following success message 
  • Connection successfully verified.

Outcomes