-
Notifications
You must be signed in to change notification settings - Fork 70
Building my first Social Application
-
Eclipse IDE for Java EE Developers (Kepler)
-
Apache Tomcat (7.0.50)
-
Please set Java → Compiler → JDK Compliance Level: 1.6
-
Launch Eclipse and switch to the "Git Repository Exploring" perspective
-
Select option to "Clone a Git repository"
-
Enter following URI: https://github.com/OpenNTF/SocialSDK.git
-
Select Next and Next again
-
Optional: Edit the Destination directory: \SocialSDK
-
Select Finish
Note: This process will take ~5 mins depending on your network connection
-
Switch to the "Java EE" perspective
-
Open the Servers view
-
Click the link to create a new server
-
Create an Tomcat v7.0 Server using your locally install Apache Tomcat
-
Open the newly create server in the Project Explorer view
-
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" />
- 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
- 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
-
Right click on Server and use Add and Remove to add the two projects to Tomcat server
-
Start Tomcat
-
Open browser and navigate to: http://localhost:8080/mysocial.webapp/
-
You will be prompted to log on using your Greenhouse credentials