Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Building my first Social Application

Mark Wallace edited this page Apr 3, 2014 · 15 revisions

Pre-requisites

  1. Eclipse IDE for Java EE Developers (Kepler)

  2. Apache Tomcat (7.0.50)

  3. Please set Java → Compiler → JDK Compliance Level: 1.6

Clone the SocialSDK Git repository

  1. Launch Eclipse and switch to the "Git Repository Exploring" perspective

  2. Select option to "Clone a Git repository"

  3. Enter following URI: https://github.com/OpenNTF/SocialSDK.git

  4. Select Next and Next again

  5. Optional: Edit the Destination directory: \SocialSDK

  6. Select Finish

Note: This process will take ~5 mins depending on your network connection

Configure Tomcat server

  1. Switch to the "Java EE" perspective

  2. Open the Servers view

  3. Click the link to create a new server

  4. Create an Tomcat v7.0 Server using your locally install Apache Tomcat

  5. Open the newly create server in the Project Explorer view

  6. Edit the context.xml file and add the following lines at the bottom:

    <!-- Configures the location of a sbt.properties file which 
         contains the configuration properties for use with the Social Business Toolkit -->
    
    <Resource name="url/ibmsbt-sbtproperties" auth="Container" type="java.net.URL" 

	      factory="com.ibm.commons.runtime.naming.UrlFactory" url="sbt.properties" />
  1. Create a new file under the server called sbt.properties and include the following lines:
    connectionsBasic.url=https://greenhouse.lotus.com

    connectionsBasic.apiVersion=4.0

Import Required Projects

  1. Use Import -> Maven -> Maven Existing Projects to import the following two projects
    <Local Git repository path>\SocialSDK\sdk\com.ibm.sbt.web

    <Local Git repository path>\SocialSDK\samples\j2ee\templates\mysocial.webapp

Run Projects on Tomcat

  1. Right click on Server and use Add and Remove to add the two projects to Tomcat server

  2. Start Tomcat

  3. Open browser and navigate to: http://localhost:8080/mysocial.webapp/

  4. You will be prompted to log on using your Greenhouse credentials

My Social Sample