Installing RandoNode Starter Kit OPEN Development Conference September 17, 2008 Kasi Perumal...

Preview:

DESCRIPTION

9/17/08 Installing RandoNode Starter Kit 3 Download RandoNode Starter Kit Save the RandoNode.zip onto the desktop

Citation preview

Installing RandoNode Starter Kit

OPEN Development ConferenceSeptember 17, 2008

Kasi PerumalConsultant

9/17/08 Installing RandoNode Starter Kit 2

Install RandoNode Starter Kit - Steps• Download RandoNode starter kit from www.ctsu.org/open/

• RandoNode Configurations

• Create Eclipse Workspace

• Unzip RandoNode project to Eclipse Workspace

• Start Eclipse

• Configure Eclipse Workspace

• Create project using build.xml

• Build the RandoNode project

• Locate the local JBoss server

• Deploy the RandoNode application

• Verify server deployment

9/17/08 Installing RandoNode Starter Kit 3

Download RandoNode Starter Kit• Save the RandoNode.zip onto the desktop

9/17/08 Installing RandoNode Starter Kit 4

RandoNode Configurations• All these configurations have been set on the lab machines.

• Setup system environment variable CTSU_HOME to “C:/CTSU/Applications/” as shown below

9/17/08 Installing RandoNode Starter Kit 5

RandoNode Configurations (continued…)• Create a repository folder under %CTSU_HOME%\RandoNode\meta

for storing meta data files as shown below

• Metadata can found on the OPEN Portal website (www.ctsu.org/open) or also can be download through OPEN Portal’s data service which will be covered in the later sessions.

9/17/08 Installing RandoNode Starter Kit 6

RandoNode Configurations (continued…)• Create a “config” folder under %CTSU_HOME%\RandoNode\config

for holding the application files.

• Then copy over the Application.xml under that newly created config folder (This application.xml can be found inside the RandoNode.zip under “config” folder)

9/17/08 Installing RandoNode Starter Kit 7

Create Eclipse Workspace• Create a new folder “C:\Sandbox\EclipseWorkspace3.3”

9/17/08 Installing RandoNode Starter Kit 8

Unzip Project to Eclipse Workspace

9/17/08 Installing RandoNode Starter Kit 9

Start Eclipse• Eclipse should be pre-installed on the lab machines

• They can be found under “C:\IDE\Eclipse”

• Click on eclipse.exe to start the java editor

9/17/08 Installing RandoNode Starter Kit 10

Configure Eclipse Workspace• Before opening the editor, eclipse will ask for the default workspace to

work it. Set it to the newly created folder as below.

9/17/08 Installing RandoNode Starter Kit 11

Create a project using build.xml• Click on File => New => Project

9/17/08 Installing RandoNode Starter Kit 12

Create Project Using build.xml (continued…)• Select “Java Project from Existing Ant Buildfile” as below

9/17/08 Installing RandoNode Starter Kit 13

Create Project Using build.xml (continued…)• Next, rename the Project Name to “RandoNode” and point ant build

file to the RandoNode build.xml as below and click “Finish”

9/17/08 Installing RandoNode Starter Kit 14

Build the RandoNode• Expand the project and right click on build.xml to run the build as

below

9/17/08 Installing RandoNode Starter Kit 15

Build the RandoNode (continued…)• The build should be successful and the editor’s log console would

show the location of the war file for deployment

9/17/08 Installing RandoNode Starter Kit 16

Locate JBoss Server• Pre-installed JBoss server can be found under “C:\Servers\jboss-

4.0.5.GA”

9/17/08 Installing RandoNode Starter Kit 17

Deploy RandoNode War• Copy RandoNode.war to your JBoss server deployment

directory as shown in the previous slide

• The war should be placed under C:\Servers\jboss-4.0.5.GA\server\default\deploy

• If using tomcat (not provided), the war is copied to %CATALINA_HOME%\webapps where %CATALINA_HOME% is the tomcat home directory

9/17/08 Installing RandoNode Starter Kit 18

Verify Server Deployment• Start the JBoss server by clicking run.bat which can be found under

%JBOSS_HOME%\bin

• The server command console after successful startup

9/17/08 Installing RandoNode Starter Kit 19

Verify Server Deployment (continued…)• Open a new browser window and type in

http://localhost:8080/RandoNode/ should open the RandoNode’s home page as shown below