PROBLEM

ArcGIS Server Java - REST Directory Errors

Last Published: April 25, 2020

Description

When using ArcGIS Server 9.3 Java on any platform, the REST Services directory may fail to start correctly, and may exhibit one of the following problems:

• The REST Services Directory fails to display or renders a 404 error

• Errors display when exporting the REST Services Handler

• Errors display when configuring default settings for the Services Handler

Cause

The /arcgis/java/web_output/rest/WEB-INF/classes/server.properties file is malformed and as such the REST Services web application fails to start.

Solution or Workaround

This may be due to a malformed server.properties file, found in the following location:

/arcgis/java/web_output/rest/WEB-INF/classes/

This can be addressed by performing the following steps:

  1. Using a text editor, open the file:

    /arcgis/java/web_output/rest/WEB-INF/classes/server.properties

  2. In the server.properties file, look for the line:

    Code:
    com.esri.rest.HOST=${HOST}

  3. Change this line to read:

    Code:
    com.esri.rest.HOST=servername

    where 'servername' is the name of the GIS server system.
  4. Restart all ArcGIS server components:

    Linux/Unix Environment:

    /arcgis/scripts/stopserver
    /arcgis/scripts/startserver

    Windows Environment:

    Go to Start > Control Panel > Administrative Tools > Services >

    • Restart the 'ArcGIS Server Object Manager' Windows service
    • Restart the 'ArcGIS Server Manager Service' Windows service

Article ID:000010593

Software:
  • ArcGIS Server

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic