h1. Introduction
This document is a section of the [Installation Guide|WIP LJJ LexEVS 5.x Installation Guide]. 


This section provides requirements, instructions, and troubleshooting information for installing LexEVS Grid Services. 

h1. Preliminary considerations

* The [LexEVS 5.x Supported Platforms] are the same for this environment as they are for the Local Runtime and the Remote API.

* Before installing the LexEVS Grid Services environment you must have both a [Installing LexEVS 5.x Local Runtime] installed and a [Installing LexEVS 5.x Remote API] working.

* Just like the Remote API install, it is not required that you load a terminology into the Local Runtime in order to complete the installation of the Grid Services environment.  However, the Grid services are not very useful if they have nothing in the underlying Local Runtime to query against.

* This environment currently has no additional [Prerequisite Software|LexEVS 5.x Prerequisite Software Supported] beyond that of the the Remote API.

* Complete the [Downloading and installing the LexEVS Data or Analytical Grid Services|WIP LJJ Installing LexEVS 5.x Grid Services#Downloading and Installing the LexEVS Data or Analytical Grid Services] steps below.

Once you have completed the Grid Services environment install steps and the verification test as described in this guide then you should be ready to start using the Grid Services features to meet the needs of your application.  Not counting prerequisite software products the installation and verification should not take more than 30 minutes.

h1. Downloading and installing the LexEVS Data or Analytical Grid Services

|| Step || Action ||
| 1. Download the latest version of the LexEVS Analytical or Data Services ZIP file from the right.  You have a choice between ZIP files tailored for JBoss or Apache Tomcat installations.  The location you have chosen to save this on your computer will be referred to as the {{SAVE_DIRECTORY}}.  Our command examples will use {{scratch}} as this directory.
*Note:* Access to the downloads does not require an account.  If you are having trouble downloading files then you may need to disable pop-up blockers or check any firewall settings at your site. | {{:LexEVS Grid Service Downloads}} |
| 2. Unzip the file or files you have downloaded to {{{SAVE_DIRECTORY}}}


!Warning.jpg!
WARNING: Each ZIP contains a file by the same name.  This is by design because you can not deploy the Data or Analytical Grid Services to the same server.  Therefore you must do these one at a time or unzip them to multiple locations.

*Note:* Windows typically understands ZIP files and can extract files.  Unix has an {{unzip}} command.  Other utilities can be used such as WinZip or 7-Zip. | !Unzip_lexevs_services.png_!.  The command to do the shut down will be web server specific.  See the documentation for your web server for information on how to do this.  There may be many alternatives.

JBoss example:

Windows:

{{shutdown.bat -S}}

Unix:

{{./shutdown.sh -S}}

If you experience Java errors then the server may already be down. | [[Image:jboss_shutdown.PNG | frameless | center | 600px |
| 4. Create a directory for the web archive.
Create a directory called {{wsrf.war}} inside this directory *_{WEB_SERVER_HOME}\{DEPLOYMENT_HOME}_*

where _{WEB_SERVER_HOME}_ is your application server home directory

_{DEPLOYMENT_HOME}_ is the Web Archive deployment directory for your application server
JBoss example:

Windows:

{{c:\jboss-4.0.5.GA\server\default\deploy}}

Unix:

{{/jboss-4.0.5.GA/server/default/deploy}}


For example:

Windows:

{{mkdir wsrf.war}}

Unix:

{{mkdir wsrf.war}} | [[Image:Create_wsrf_war_dir.png | frameless | center | 600px |
| 5. Unzip the {{wsrf.war}} file to the {{wsrf.war}} directory.

JBoss example:

Windows:

From: {{c:\scratch\wsrf.war}}

To: {{c:\jboss-4.0.5.GA\server\default\deploy\wsrf.war}}

Unix:

From: {{/scratch/wsrf.war}}

To: {{/jboss-4.0.5.GA/server/default/deploy\wsrf.war}}

Windows does not see WAR files as compressed files, therefore you must obtain an unzip utility such as [7-zip|http://www.7-zip.org] or [WinZip|http://www.winzip.com].  In Unix you should be able to use the unzip command. | !GridService_deploy.PNG_!