CaGrid:Tutorials:1.2:DataService:caCORE SDK 4:Deployment

From caGridWiki

Jump to: navigation, search

Once a caGrid data service has been created following the creation portion of this tutorial, it must be deployed to a service container so it can be invoked.

Contents

Cleaning Up The Container

This tutorial will deploy the generated grid data service to the Tomcat container. If other caGrid services (especially other data services) have been deployed to the container, class path conflicts can arise in the running service. If this is the case, before deploying the service, make sure the Tomcat container is totally clean of all other caGrid services. You can do this by removing the wsrf directory under the webapps directory inside the Tomcat base directory:

Linux / Unix

 

 %> cd $CATALINA_HOME
 %> rm -rf webapps/wsrf

Windows

 

 cd %CATALINA_HOME%
 rmdir /S webapps\wsrf

Deploying Globus

Once the wsrf folder has been removed, deploy Globus to Tomcat:

Linux / Unix

 

 %> cd $GLOBUS_LOCATION
 %> ant -f share/globus_wsrf_common/tomcat/tomcat.xml deployTomcat -Dtomcat.dir="$CATALINA_HOME"

Windows

 

 cd %GLOBUS_LOCATION%
 ant -f share\globus_wsrf_common\tomcat\tomcat.xml deployTomcat -Dtomcat.dir="%CATALINA_HOME%"

Deploying the Service

Now the generated grid service may be deployed to the Tomcat container. The tutorial uses C:\caGrid\generatedServices\Sdk4Example; if you selected a different directory, substitute it appropriately. The following command will recompile the service and deploy it to the tomcat container residing at $CATALINA_HOME:

 

 cd C:\caGrid\generatedServices\Sdk4Example
 ant all deployTomcat

Starting Tomcat

Start the Tomcat container so that the service can be invoked using grid calls.

Linux / Unix

 

 %> cd $CATALINA_HOME
 %> bin/startup.sh

Windows

 

 cd %CATALINA_HOME%
 bin\startup.bat

Invocation

This tutorial continues to invoke the grid service.

Personal tools