Access Keys:
Skip to content (Access Key - 0)

caGrid 1.3


Deploy Photosharing Service


Table of Contents

Deploying the PhotoSharing Service


So far, we have installed caGrid, presented a scenario, and configured a secure Tomcat container. Now we will deploy the completed PhotoSharing service that was provided in the hackthon.zip. Once the service has been deployed to a container, it can then be invoked and used to fulfill the needs in our scenario.

Deploy the PhotoSharing Service:

  1. Open Introduce:

    %> cd c:\hackathon\caGrid
    %> ant introduce

  2. Click the Deploy Service button
  3. Browse to the completed photoSharing service: C:\hackathon\PhotoSharing-solution and click Open
  4. Verify that Tomcat is selected in the deployment location
  5. Verify the container location is C:\hackathon\apache-tomcat-5.5.27

Service Properties


Disable the automatic service registration:

  1. Select the Advanced Deployment tab
  2. Uncheck the Perform Registration checkbox

Set the service properties for deployment:

  1. Select the Service Properties tab
  2. Verify that the serviceStemSystemName ends with your machine name
  3. Select the General Deployment tab
  4. Click the Deploy button

Get Your IP Address


We've just finished developing our service and deploying it to Tomcat. Since our hostnames are not registered in DNS, we need to obtain our machine's IP address so that we or our neighbors can access the service.

To obtain your IP Address:

  1. Open a Windows Command Prompt
  2. Run the following command:
    %> ipconfig
  3. Note your IP address

Registering the PhotoSharing Service


Before we can start the PhotoSharing service, we need to register it via our provided gallery viewer.

Register the PhotoSharing Service:

  1. Open a Windows Command Prompt
  2. Change directory to your Hackathon directory
    %> cd C:\hackathon
  3. Start the gallery application
    %> ant gallery

We'll now need to configure the Image Browser to know about our service

  1. Select Window->Preferences
  2. Expand Photo Sharing
  3. Select Photo Sharing Service(s)
  4. Set the Display Name to MyLaptop
  5. Set the Service URL to https://<YOUR IP ADDRESS>:8443/wsrf/services/cagrid/PhotoSharing
  6. Click + Add
  7. Click Save

8. Open the Register for the Tutorial Panel via the Photo Sharing menu and select the Register for the Tutorial menu item.
9. Select your machine's hostname
10. Click Register

Starting Tomcat


Start the Tomcat container so that the service can be invoked.

  1. Using a Windows Command Prompt
  2. Change directory to your Tomcat directory
    %> cd C:\hackathon\apache-tomcat-5.5.27\bin
  3. Start Tomcat
    %> startup.bat

A new Windows command window will open and will contain the startup information from your Tomcat.

Verifying the PhotoSharing Service


Verify Service Deployment

  1. Open Internet Explorer
  2. Go to: https://<YOUR IP ADDRESS>:8443/wsrf/services/cagrid/PhotoSharing
  3. Click Yes (or Continue to this website) if prompted for a "Security Alert" to access our secured service.
Last edited by
Sarah Honacki (744 days ago) , ...
Adaptavist Theme Builder Powered by Atlassian Confluence