Two geoportals on the same server
Christine White edited this page Sep 10, 2013
·
3 revisions
Pages 202
- Home
- 2009 Esri Federal UC
- 2009 Esri International UC
- 2010 Esri Federal UC
- 2010 Esri International UC
- 2011 Esri Federal UC
- 2012 Esri Federal UC
- 2013 Esri Federal GIS Conference
- 2013 Esri International User Conference
- 2015 SDI Special Interest Group
- Add a Custom Profile
- Add an OpenSearch endpoint for Federated Search
- Add Another Tab to the Geoportal Interface
- Add Custom Link to a Search Result
- Add Custom Search Criteria
- Add the Geoportal Search to a List of Search Providers
- Add v1.1.1 FGDC editor to a previous Geoportal release
- AGP TO AGP Harvesting with the Geoportal
- AGS TO AGP Harvesting with the Geoportal
- All gpt.xml file settings
- An Introduction to vi
- Apache Tomcat geoportal logging
- Being a Good Robot
- Best Practice for Edits to JSP files
- Biological or Remote Sensing FGDC xsds
- Browse Tree
- Cart Processor
- Catalog Service
- Clear the Tomcat Work Folder
- Collections
- Common problems and solutions
- Communities and live examples
- Components
- Configure a Directory Server for the Geoportal
- Configure geoportal User and Schema in the PostgreSQL Database
- Configure Previewable Filetypes
- Configure Searching of YouTube
- Configure the gpt.xml File
- Configure Widgets
- Connecting to a User Directory
- Create a user account
- Create Relationships between Resources
- Customizations
- Customize DCAT output
- Customize Metadata Validation
- Database problems
- Database Tables
- DataDownload Tab
- Deploy and Configure the Geoportal Web Application in Tomcat
- Deploy and Configure the Servlet Web Application
- Deploy the Geoportal Web Application
- Details of Lucene Indexing in the Geoportal
- Development topics
- Discovering Resources
- Eclipse Project from Compiled WAR
- Eclipse Project from Source Code
- Enable Search Using an Ontology Service
- Error Messages in the Geoportal Web Application
- Esri Geoportal Server LiveDVD
- Extending the Web Harvester
- Federated Search in Portal for ArcGIS
- Feedback
- FGDC Biological Profile and Remote Sensing Extension
- FGDC Service Checker Integration
- Geoportal Clients for ArcGIS
- Geoportal CSW Clients
- Geoportal Facets using Apache Solr
- Geoportal genie
- Geoportal Project from Compiled WAR
- Geoportal Publish Client
- Geoportal Server 1.2.5 What's New
- Geoportal Server 1.2.6 What's New
- Geoportal Server 1.2.7 What's New
- Geoportal server as a broker
- Geoportal Server Downloads
- Geoportal Server v 1.0 What's New
- Geoportal Server v 1.1 What's New
- Geoportal Server v 1.1.1 What's New
- Geoportal Server v 1.2 What's New
- Geoportal Server v 1.2.2 What's New
- Geoportal Server v 1.2.4 What's New
- Geoportal SPARQL Sample
- Geoportal User Interface Components
- Geoportal Web Application File Organization
- Geoportal XML Editor
- Get Assistance with an Implementation
- GXE Concepts
- GXE Crash Course
- GXE Structure
- GXE Workflow
- High Availability and Large Number of Records
- How to Browse for Resources
- How to Create and Manage My Profile
- How to find all documents of a particular metadata standard
- How to Leave a Resource Review
- How to Login and Manage my Password
- How to Manage and Edit Resources
- How to Publish Resources
- How to Restrict Access to Resources
- How to Search for Resources
- How to Search with an Ontology Service
- How to Set Up an Esri Geoportal Server on Linux
- How to Use Search Page Results
- How to Use the Data Download Feature
- How to View Resource Relationships
- IDE Topics
- Identity Components LDAP and Single Sign On
- Index All Metadata Content
- Indexing and Searching the Time Period of the Content
- Install Apache Tomcat 6
- Install Desktop Tools
- Install Esri Geoportal Server
- Install PostgreSQL 9.1.2
- Install the JDBC .jar Files
- Installation
- Installation Version 1.0
- Installation Version 1.1
- Installation Version 1.2
- Installation Version 1.2.2
- Installation Version 1.2.4
- Installation Version 1.2.5
- Installation Version 1.2.6
- Installation Version 1.2.7
- Installation Version 1.2.8
- Integrate with a Content Management System
- Integrate with the con terra Security Solution
- Localization
- Log In to the Geoportal
- Logging
- Look and Feel of the User Interface
- Main Page
- Map LDAP Attributes on the Registration Page
- Map Viewer
- Online form editing for all publication methods
- Open source acknowledgements
- Oracle WebLogic geoportal logging
- Orientation to the Create Metadata Page
- Perform Preinstallation Computer Setup
- Portal for ArcGIS Integration
- Post Deployment Actions
- Preinstallation
- Preinstallation 0.9
- Preinstallation 1.0 and 1.1.x
- Preinstallation 1.2
- Preinstallation 1.2.2
- Preinstallation 1.2.4
- Preinstallation 1.2.5
- Preinstallation 1.2.6
- Preinstallation 1.2.7
- Preinstallation 1.2.8
- Preview Function
- Publication Components
- Ratings and Comments for Search Results
- Register ArcGIS for Server with the Geoportal
- Release notes
- REST API Syntax
- Sample FGDC metadata.xml
- Scheduled tasks
- Search Components
- Search Map
- Search Widget for Flex
- Search Widget for HTML
- Search Widget for Silverlight
- Security Concepts
- Set Up Systemwide Environment Variables
- Set up the Geoportal Database
- Share Link
- Single Sign On
- Smoketest the Geoportal
- Standards Support
- Supported CSW Profiles for Synchronization
- Theme Library
- Troubleshooting
- Troubleshooting Tips
- Two geoportals on the same server
- Upgrade 1.x to 1.2 database
- Upgrading file system approach
- Upgrading Read This Overview
- Upgrading SVN approach
- Url filter customization
- Use an XSLT to Render the Details Page
- Use Ant to build Geoportal
- User Functions and Roles
- User Management Interface
- Using a geoportal
- Using Lucene Search Text Queries
- Version 0.9
- Version 1.0
- Version 1.1
- Version 1.1.1
- Version 1.2
- Version 1.2.2
- Version 1.2.4
- Version 1.2.5
- Version 1.2.6
- Version 1.2.7
- Version 1.2.8
- What is a geoportal and the geoportal server
- What is the esri geoportal server
- What's New
- wiki template
- WMC Client
- Show 187 more pages…
Clone this wiki locally
You may want to host two geoportals on the same server for a variety of reasons. One common reason is that you are evaluating a newer version of the Geoportal Server, but want to keep your existing instance running in the meantime.
It is possible to have two geoportals running on the same server. There are several scenarios for how you'd set this up, but these instructions assume the following:
- the geoportal instances are running on the same servlet software (e.g., both running on the same Tomcat)
- the instances are connecting to the same database (note, this is not a requirement - it is actually cleaner for them to each have their own database)
- the instances are connecting to the same user store (e.g., same identity configuration in gpt.xml). Note: do not have two instances connecting to the same database if they use different user stores, as configured in the identity section of the gpt.xml file. This can cause errors if an administrator user in one geoportal attempts to manage records or users found in the other instance's user store.
How to deploy and configure the second instance
For this demonstration, the initial geoportal instance is called 'geoportal_first' and the new instance is called 'geoportal_second'. Instructions are for Tomcat, but keep the same concepts in mind when using other supported servlet application software.
- In the newer Geoportal Server distribution, rename the geoportal.war file to something different than what its called for the 'geoportal_first' instance. In this demonstration, it is renamed to geoportal_second.war.
- Deploy the geoportal_second.war file in the \\Tomcat\webapps folder. When the file is deployed, open the gpt.xml file from the \\geoportal_second\WEB-INF\classes\gpt\config directory, and stop the geoportal_second web application in Tomcat (or stop Tomcat, but your geoportal_first application will then also be stopped).
- Configure the gpt.xml file as desired, except for the following important sections:
- the databaseReference element's jndiName attribute is by default "jdbc/gpt". This must be changed if you have two instances running, as this jndiName will connect your geoportal web application to the database. In this example, we set jndiName="jdbc/gpt2".
- the lucene element's indexLocation attribute should be a different location. Even though the two web applications are indexing the same database, setting different indexing locations prevents conflicts in index scheduling. This also means that your second geoportal index won't be populated right away; the web application will need to time to index the database before you will be able to discover all records through the geoportal search interface.
- the parameter key="assertion.index.location" value should be set to a different location, for the same reason as the lucene indexLocation described above.
- the identity section should be configured the same as the geoportal_first's gpt.xml file's identity section.
- Save the gpt.xml file.
- Now you must configure the jndi for this web application. Go to \\Tomcat\conf\Catalina\localhost and make a copy of the context file used by the geoportal_first web application.
- Rename this copy to match the name of your newer geoportal instance, e.g., geoportal_second.xml
- Open the geoportal_second.xml file.
- You can leave all the database settings the same, but you must change the following settings:
- the Context element's docBase and path variables must be updated to the name of the corresponding geoportal web application. E.g., in this example, it looks like:
<Context docBase="geoportal_second" path="/geoportal_second"...
- the Resource element's name attribute must be updated to match the jndiName attribute from the gpt.xml file. In this example, we update it to
<Resource name="jdbc/gpt2"...
- Save the geoportal_second.xml file.
- Restart your geoportal_second web application.
- Give the geoportal_second web application time to index before testing search, but you can test the login and page display in the meantime.
Back to Installation