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

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

Embed Size (px)

DESCRIPTION

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

Citation preview

Page 1: Installing RandoNode Starter Kit OPEN Development Conference September 17, 2008 Kasi Perumal Consultant

Installing RandoNode Starter Kit

OPEN Development ConferenceSeptember 17, 2008

Kasi PerumalConsultant

Page 2: Installing RandoNode Starter Kit OPEN Development Conference September 17, 2008 Kasi Perumal Consultant

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

Page 3: Installing RandoNode Starter Kit OPEN Development Conference September 17, 2008 Kasi Perumal Consultant

9/17/08 Installing RandoNode Starter Kit 3

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

Page 4: Installing RandoNode Starter Kit OPEN Development Conference September 17, 2008 Kasi Perumal Consultant

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

Page 5: Installing RandoNode Starter Kit OPEN Development Conference September 17, 2008 Kasi Perumal Consultant

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.

Page 6: Installing RandoNode Starter Kit OPEN Development Conference September 17, 2008 Kasi Perumal Consultant

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)

Page 7: Installing RandoNode Starter Kit OPEN Development Conference September 17, 2008 Kasi Perumal Consultant

9/17/08 Installing RandoNode Starter Kit 7

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

Page 8: Installing RandoNode Starter Kit OPEN Development Conference September 17, 2008 Kasi Perumal Consultant

9/17/08 Installing RandoNode Starter Kit 8

Unzip Project to Eclipse Workspace

Page 9: Installing RandoNode Starter Kit OPEN Development Conference September 17, 2008 Kasi Perumal Consultant

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

Page 10: Installing RandoNode Starter Kit OPEN Development Conference September 17, 2008 Kasi Perumal Consultant

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.

Page 11: Installing RandoNode Starter Kit OPEN Development Conference September 17, 2008 Kasi Perumal Consultant

9/17/08 Installing RandoNode Starter Kit 11

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

Page 12: Installing RandoNode Starter Kit OPEN Development Conference September 17, 2008 Kasi Perumal Consultant

9/17/08 Installing RandoNode Starter Kit 12

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

Page 13: Installing RandoNode Starter Kit OPEN Development Conference September 17, 2008 Kasi Perumal Consultant

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”

Page 14: Installing RandoNode Starter Kit OPEN Development Conference September 17, 2008 Kasi Perumal Consultant

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

Page 15: Installing RandoNode Starter Kit OPEN Development Conference September 17, 2008 Kasi Perumal Consultant

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

Page 16: Installing RandoNode Starter Kit OPEN Development Conference September 17, 2008 Kasi Perumal Consultant

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”

Page 17: Installing RandoNode Starter Kit OPEN Development Conference September 17, 2008 Kasi Perumal Consultant

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

Page 18: Installing RandoNode Starter Kit OPEN Development Conference September 17, 2008 Kasi Perumal Consultant

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

Page 19: Installing RandoNode Starter Kit OPEN Development Conference September 17, 2008 Kasi Perumal Consultant

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