The purpose of these samples is to demonstrate how to develop JSP applications for ArcWeb Services using webMethods Glue. The set up instructions cover how to deploy the sample files and how to configure Web servers and servlet engines for the samples.
Glue is a distributed computing platform for Java. These samples assume you have one of the editions of webMethods Glue version 5.0.2 toolkit running on your machine and an activated ArcWeb account. They also assume you have a program to unzip the sample code.
You can obtain an evaluation version of Glue by contacting webMethods.
For more information on getting started with ArcWeb Services, see Getting started with ArcWeb Services and the SOAP toolkit tutorials.
NOTE: The class files and map files, which are the part of the esri.aws.v2006_1.gluestubs package included in the JSP Glue samples download, were generated using the Glue wsdl2java utility. The wsdl2java command line tool generates a Java interface, helper class, data structures and a .map file from the WSDL.
For example, by typing in the command prompt,
"C:\>wsdl2java http://www.arcwebservices.com/services/v2006_1/glue/PlaceFinderSample.wsdl -p aws.v2006_1.gluestubs -g", you generate a series of class and map files.
See the Glue User Guide for more information on Glue and the wsdl2java tool.
NOTE: Separate WSDLs are available for Glue users. This is due to webMethods' diminished support for its Glue toolkit.
NOTE: After installing the sample, your directory structure should look like the following:
>jspgluesamples
>jspgluesamples.war
>src
>webapp
>jsp
>WEB-INF
>lib
(for all .jar files)
>maps
(all MapFiles)
>classes
([webMethods-license.xml])
>esri
>aws
>v2006_1
>gluestubs
NOTE: See How to Configure Your Web Server and Servlet Engine for information on deploying the samples. Tomcat users can skip the following steps and you can go directly to the step on configuring Tomcat.
NOTE: GLUE.jar and standard Java extension libraries dom.jar,jnet.jar,jcert.jar and jsse.jar are part of your Glue download and by default located at <glue install dir>\lib directory.
NOTE: You only need to add the license file to the classpath if it was not to the GLUE.jar file.
http://<localhost>[:port]/jspgluesamples/
For example:
http://myhostname:8080/jspgluesamples/
This section explains how to configure the following Web servers and servlet engines to deploy JSP Glue samples. NOTE: Servlet engines should comply with Servlet 2.3 specification for Glue 5.x to work properly.
<WEBAPP uri="/jspgluesamples" path="<sample Installation Directory>/jspgluesamples/webapp" enabled="true" />
For example
<vs>
..
<WEBAPP uri="/jspgluesamples" path="c:/jspgluesamples/webapp
" enabled="true"/>
</vs>
NOTE: Make sure you specify a valid directory path for web-app. Invalid entries for web-app will prevent your Sun Java System Web server from starting.
<web-module enabled="true" location="<Sample installation directory>\jspgluesamples\webapp" name="jspgluesamples" context-root="jspgluesamples" virtual-servers="server1"/>
For example
<applications dynamic-reload-enabled="false"
dynamic-reload-poll-interval-in-seconds="2">
..
<web-module enabled="true" location="c:\jspgluesamples\webapp"
name="jspgluesamples" context-root="jspgluesamples"
virtual-servers="server1"/>
</applications>
NOTE: This is the name you will use to run jspgluesamples.
NOTE: GLUE.jar and standard Java extension libraries dom.jar,jnet.jar,jcert.jar and jsse.jar are part of your Glue download and by default located at <glue install dir>\lib directory.
NOTE: You only need to add the license file to the classpath if it was not to the GLUE.jar file.
http://<localhost>[:port]/jspgluesamples/
For example:
http://myhostname:8080/jspgluesamples/
Visit the Feedback page to give comments or suggestions about the ArcWeb Developer's Guide.