ArcGIS Server Installation and start from Donger's blog)

Source: Internet
Author: User
Installing and starting ArcGIS Server

Tags: Miscellaneous
Classification: ArcGIS

1. Install it first.

Because 9.3 is not compatible with ArcGIS of other versions, you should uninstall ArcGIS of all other versions, including ArcGIS Desktop, before installation. If not fully uninstalled, ArcGIS Server 9.3 may not be installed. In addition, arcgiss' uninstallation is quite annoying. If you do not clean the installation, you can go to esri's cleanup tool named 93conflictdetector.exe (uninstall_previus_products_93) to prepare the environment.

 

After installing ArcGIS Server 9.3 for Java, enter the account and password created in post install, and you may not be able to log on. The prompt is "Incorrect login information. The solution is as follows:

Select "folder-option" in the resource manager, remove "enable simple file sharing", and then log on again (you may need to restart or perform other operations ). Http://bbs.esrichina-bj.cn/ESRI/viewthread.php? Tid = 3942 & extra = & page = 1

This is because a special Windows authentication method is enabled for simple file sharing, which is incompatible with the AGS server.

Http://support.microsoft.com/kb/307874/zh-cn

2. When publishing a map in ArcGIS manager, you must create a service with a map before using this service to create an application.

 

3. Before using services in ArcGIS Server to display a map on your HTML page, make the following preparations:

 1) Find the service address: Open http: // rzf: 8399/ArcGIS/rest/services/in the browser to view the list of currently available services.

 Then, you can get the address, for example, http: // rzf: 8399/ArcGIS/rest/services/test_1/test_1/mapserver. Note:

 All service addresses are at the end of mapserver, which is the service name.

 2) Open the two addresses in the browser first.

 Http://serverapi.arcgisonline.com/jsapi/arcgis? V = 1.1

 Http://serverapi.arcgisonline.com/jsapi/arcgis/1.1/js/dojo/dijit/themes/tundra/tundra.css

 After all, save them as files in the current directory and name them in default.jsand tundra.css. These two files will be used when the map is displayed.

4. display a map

 The following code demonstrates how to display a map (from ESRI ):

 <! Doctype HTML public "-// W3C // dtd html 4.01 // en" "http://www.w3.org/TR/html4/strict.dtd">

 <HTML>

 <Head>

 <Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>

 <Title> map of Brazil </title>

 <LINK rel = "stylesheet" type = "text/CSS" href = "tundra.css">

 <SCRIPT type = "text/JavaScript" src = "Default. js"> </SCRIPT>

 <SCRIPT type = "text/JavaScript">

 Dojo. Require ("ESRI. Map ");

 Function Init (){

 VaR map = new ESRI. Map ("map ");

 VaR dynamicmapservicelayer = new ESRI. layers. arcgisdynamicmapservicelAyer ("http: // rzf: 8399/ArcGIS/rest/services/test_1/test_1/mapserver ");

 Map. addlayer (dynamicmapservicelayer );

 }

 Function showextent (extent ){

 VaR S = "";

 S = "xmin:" + extent. xmin + ""

 + "Ymin:" + extent. ymin + ""

 + "Xmax:" + extent. xmax + ""

 + "Ymax:" + extent. Ymax;

 Dojo. byid ("info"). innerhtml = s;

 }

 Dojo. addonload (init );

 </SCRIPT>

 </Head>

 <Body class = "tundra">

 <Div id = "map" style = "width: 100%; Height: 38%; Border: 1px solid #000;"> </div>

 <Div id = "info" style = "display: none"> </div>

 </Body>

</Html>

5. Note that if you copy an example directly from the ESRI website, it is likely that you can display the online map service provided by ESRI, but cannot open your local map.

 This is because the example on ESRI uses the following code in the init function when loading a map:

 Function Init (){

 Esriconfig. defaults. Io. proxyurl = "proxypage_java/Proxy. jsp ";

 VaR map = new ESRI. Map ("map ");

 VaR layer = new ESRI. layers. arcgistiledmapservicelayE ("http://server.arcgisonline.com/ArcGIS/rest

 /Services/esri_streetmap_world_2d/mapserver ");

 Map. addlayer (layer );

 }

 This is a cache loading method that splits the map in advance, and our own map service may not split the map in advance, so we need to use arcgisdynamicmapservicelAyer for dynamic loading.

6. display the map in Tomcat

 In actual applications, this may happen: if an HTML page is opened directly in a browser, the map can be displayed normally, but if it is added to the Tomcat project,

 The map cannot be displayed when the URL is used for access. A simple example:

 I have a page: e: \ soft \ Tomcat 6.0 \ webapps \ jsp_sqlserver \ oper_files \ html_map_test2.html, which is under the Tomcat project directory. When I directly display the map in the browser E: \ soft \ Tomcat 6.0 \ webapps \ jsp_sqlserver \ oper_files \ html_map_test2.html, And when I start the Tomcat service, the URL address: http: // localhost: 8080/jsp_sqlserver/oper_files/html_map_test2.html cannot be displayed.

 To solve this problem, you must first view An ArcGIS javascript API document of ESRI:

 Http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jshelp/ags_proxy.htm#webprint

 It provides specific methods, namely:

 1) first come to snapshot

 Proxy page, decompress it to the current directory.

 2) edit the proxy. jsp file and assign the string [] serverurls to the address of the Service found above. You can view the comments and multiple services.

 3) Add the following sentence to the first sentence of the map init function:

 Esriconfig. defaults. Io. proxyurl = "proxypage_java/Proxy. jsp ";

 Proxypage_java/Proxy. jsp is the proxy. jsp address, which can be absolute or relative.

 When you do this, if there is no problem, you should be able to display the map through the URL address.

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.