The purpose of these samples is to demonstrate how to develop JSP applications for ArcWeb Services using Apache Axis 1.4. The set up instructions cover how to deploy the sample files and how to configure Web servers and servlet engines for the samples.
These samples assume you have Apache Axis 1.4, WebServer / ServletEngine to serve JSP Web applications and JDK 1.4.x. or greater running on your machine. You can download and install JDK from the Sun Developers Web site. They also assume you have an activated ArcWeb account and a program to unzip the sample code.
For more information on getting started with ArcWeb Services, see Getting started with ArcWeb Services and the SOAP toolkit tutorials.
NOTE: The <JSP Axis Sample installation directory>/jspaxissamples/src directory contains the Java package esri.aws.v2006_1.axisstubs. This package includes a set of Axis-created Java stubs. The class files, which are the part of the esri.aws.v2006_1.axisstubs package included in the JSP Axis samples download, were generated using the Axis wsdl2java utility.
For example, by typing in the command prompt,
you generate a series of class files.
C:\>java org.apache.axis.wsdl.WSDL2Java http://www.arcwebservices.com/services/v2006_1/AddressFinder?wsdl
-p esri.aws.v2006_1.axisstubs -v
See the Apache Axis Web site for more information on Apache Axis and the wsdl2java tool.
NOTE: For convenience, the Axis 1.4 JAR files that are required for these samples are included in the ZIP file.
NOTE: (from the Apache Axis Web site): Axis needs to be able to find an XML parser. If your application server or Java runtime does not make one visible to Web applications, you need to download and add it. Java 1.4 includes the Crimson parser, so you can omit this stage, though the Axis team prefer Xerces.
NOTE: After installing the sample, your directory structure should look like the following:
>jspaxissamples
>AXIS.LICENSE
>jspaxissamples.war
>src
>webapp
>jsp
>WEB-INF
>lib
(all AXIS related .jar files)
>classes
>esri
>aws
>v2006_1
>axisstubs
NOTE: See How to Configure Your Web Server and Servlet Engine for information on deploying the samples.
NOTE for SUNONE Web/Application server: Make sure you have specified a valid directory path for web-app. Invalid entries for web-app will prevent your Sun Java System Web/Application server from starting.
http://<localhost>[:port]/jspaxissamples/
For example:
http://myhostname:8080/jspaxissamples/
This section explains how to configure the following Web servers and servlet engines to deploy JSP Axis samples.
<WEBAPP uri="/jspaxissamples" path="<JSP Axis Sample installation directory>/jspaxissamples/webapp" enabled="true" />
For example
<vs>
..
<WEBAPP uri="/jspaxissamples" path="c:/jspaxissamples/webapp"
enabled="true"/>
</vs>
<web-module enabled="true" location="<JSP Axis Sample installation directory>/jspaxissamples/webapp" name="jspaxissamples" context-root="jspaxissamples "virtual-servers="server1"/>
For example
<applications dynamic-reload-enabled="false"
dynamic-reload-poll-interval-in-seconds="2">
..
<web-module enabled="true" location="c:\jspaxissamples\webapp"
name="jspaxissamples" context-root=" jspaxissamples"
virtual-servers="server1"/>
</applications>
NOTE: This is the name you will use to run jspaxissamples.
NOTE: You should now have a "jspaxissamples" folder under \<Tomcat_Home>\webapps. This folder is the working folder for your JSP Axis samples.
Visit the Feedback page to give comments or suggestions about the ArcWeb Developer's Guide.