English

Error: [Fatal Error] Server.dat:42:1: XML document structures must start and end within the same entity

Error Message

After running the server_diag_tool, the following error message is returned:

"[Fatal Error] Server.dat:42:1: XML document structures must start and end within the same entity.

==================================================
ArcGIS Server Machines
==================================================
(1) server.domain.com (SOM,SOC)
==================================================
(0) QUIT
=================================================="

Cause

The '<arcgis_dir>/server/system/Server.dat' file is missing its closing '</Server>' tag.

In rare cases, this issue has been reported upon upgrading ArcGIS Server Java from 9.3 Service Pack 1 to version 9.3.1.

Solution or Workaround

Add the closing '</Server>' tag within the '<arcgis_dir>/server/system/Server.dat' file.

  1. $ vi <arcgis_dir>/server/system/Server.dat

    Add the following line at the end of the 'Server.dat file': </Server>
  2. Save the file.
  3. Restart ArcGIS Server:

    $ <arcgis_dir>/scripts/stopserver
    $ <arcgis_dir>/scripts/startserver