The rest service of ArcGIS Server cannot be opened, and the 404 solution is displayed.

Source: Internet
Author: User
Tags log log

Http://www.cnblogs.com/ayanmw/archive/2011/12/27/2303086.html

When ArcGIS is doing Soe, due to ArcGIS problems, the computer name cannot contain "-", so after the computer name is changed, ArcGIS Server will become invalid.

That is, when http: // localhost: 8399/ArcGIS/rest/services is enabled, 404 is displayed, and the three services of SOM socmonitor SMS (Server Manager Service) are enabled. the opening sequence is first som (SOM depends on SOC, so SOC will automatically open), and then SMS. this is more reliable. the three service calling files are as follows:

Management Service for ArcGIS Server - Java Platform Edition"E:\Program Files\ArcGIS\Server10.0\java\manager\service\lib\manager.exe"SOM => SOC MonitorE:\Program Files\ArcGIS\Server10.0\bin\ArcSOM.exeSOC MonitorE:\Program Files\ArcGIS\Server10.0\bin\ArcSOCMon.exe

 

The ArcGIS/rest/Services Directory shows 404, so I am in a hurry and can only view it in the ArcGIS directory. E: \ Program Files \ ArcGIS \ server10.0 \ Java \ Manager \ service \ logs ArcGIS Server's website (core tomcat, also under this Java directory) to find the cause, the logs directory of this service contains logs. If there are logs for today, check the managerappserver.2011-12-27.log log file and find:

2011-12-27 9:12:12 COM. ESRI. arcGIS. server. servercluster3 a severe: SOM machine angle7pc is not available 2011-12-27 9:12:12 COM. ESRI. rest. contextlistener contextinitialized severe: unable to add server from file: Server. properties COM. ESRI. rest. AGS. agsexception: Error connecting to host

Compared with the computer name, it is found that it cannot be resolved that angle7pc is the computer.

The solution is to add 127.0.0.1 angle7pc to the file of windows \ system32 \ drivers \ etc \ hosts, so that ArcGIS can resolve this angle7pc as a local device (it is really troublesome, it's better to set ArcGIS to localhost directly. I don't know why they designed it like this ). restart the SOM service and you can access it.

 

Http: // localhost: 8399 and http: // localhost: 8099 are the main web services managed by ArcGIS Server, both of which are based on Tomcat. In E: \ Program Files \ ArcGIS \ server10.0 \ Java \ Manager \ service \ libhas manager.exe
The arcgis_manager.jar file in the Java (JVM. dll Virtual Machine) and the local directory is called.

The Tomcat directory is in E: \ Program Files \ ArcGIS \ server10.0 \ Java \ Manager \ service \ tomcat. I think ArcGIS wrote a Web application server on the Tomcat layer... specifically, I am not very familiar with Java.

The 8099 website directory is: e: \ Program Files \ ArcGIS \ server10.0 \ Java \ Manager \ service \ managerserver \ webapps \ arcgismanager

The 8399 website directory is: e: \ Program Files \ ArcGIS \ server10.0 \ Java \ Manager \ web_output

It must have a corresponding tomcat configuration file. You can use the File Content Search Tool to search for it. I only know a little about tomcat, not too deep.

 

======================================

Supplement

Today, we encountered another 404 error. In win7 server (win2008 R2), we disabled the firewall and restarted the ArcGIS Server Service. OK!

I am using ArcGIS server10, and there is also a problem that will be encountered in version 9. x. You can refer to the following link:

Http://www.cnblogs.com/OnLun99/archive/2010/06/22/1762893.html

Reprinted please indicate the source: http://www.cnblogs.com/ayanmw Thank you

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.