How to build an ArcGIS Web Project in Eclipse


Summary The ArcGIS Server Web ADF Plug-in for Eclipse provides several templates and projects to help you quickly get started building applications and running samples. With the ArcGIS Server for Java 10 release of the Web ADF, we have simplified the Web ADF Project wizard experience. Experienced users of the Web ADF Eclipse plug-in should take note of some subtle changes to the template naming structure and wizard workflow described in this topic. After reading this topic you will be able to create a Java Web ADF Web Mapping Application (WMA) through the Eclipse plug-in.

If you have not already installed the plug-ins, refer to the Installing ArcGIS Plug-ins document.

Creating A Web ADF Project

You will start by creating a Web ADF Project using Eclipse.  This sample ArcGIS Web ADF Map Application displays a map, toolbar, table of contents, map overview, results, results details, and an empty task pane. 
The following steps detail how to create an ArcGIS Server for Java Web ADF project in Eclipse:  
  1. Create an ArcGIS Web ADF Project.  There are many ways to start the wizard.  The simplest way is to use your keyboard and click 'Ctrl +N'.  Alternatively, you can use the Eclipse toolbar 'File > New > Project' or right click in the Project Explorer and select 'New > Project'. 
  2. Navigate the New Project wizard to ESRI Templates and select 'Web ADF > Web ADF Project' from the list and click Next.
  1. In the Dynamic Web Project dialog, name your project, select your target runtime, and accept the default Configuration for your server runtime.  Click Next. 
  1. In the ArcGIS Web Project dialog, double click the 'Add GIS Server' icon to enter your own ArcGIS Server credentials or click 'ArcGIS Server Internet' to select a service from ArcGIS Online. 
  1. The 'Add GIS Server' dialog allows you to add multiple types of Server connections ranging from a local ArcGIS Server to OGC (WMS) Services.  To use a local ArcGIS Server, input valid server information for the GIS Server Host, User Name, Password, and Domain.  If you set up your preferences from the toolbar menu at 'Window->Preferences->ArcGIS->Server'.  The connection information set there will be used by all ESRI project windows. 
  1. Select 'ArcGIS Server Internet' to use the Web ADF Web Services connection to choose your service from a list of services made available through a web service. 
  1. Click the OK button to connect to the GIS Server and see a list of valid services.  Double click on the service you wish to use and the service will be added under Selected Services on the right hand side.  Click Finish to build the project. 
  1. The workbench will now show your newly created ArcGIS Web Project in the Java EE perspective.
Your application is now ready for deployment in a supported web application server.  Simply right click on the project and choose 'Run As > Run on Server' to start the deployment wizard where you can choose the appropriate server to deploy to.  You can also now use this project to extend with a custom task or functionality.