Guidelines for Homework 6. Getting Started Homework 6 requires that you complete Homework 5. –All of HW5 must run on the GridFarm. –HW6 may run elsewhere.

Slides:



Advertisements
Similar presentations
AppViewXS Installation Infrastructure Overview Web Server Application Server.
Advertisements

17 Copyright © 2005, Oracle. All rights reserved. Deploying Applications by Using Java Web Start.
A1.1 Assignment 1 “Deploying a Simple Web Service” ITCS 4010/5010 Grid Computing, UNC-Charlotte B. Wilkinson, 2005.
Development Configuration Guide Using NetBeans IDE
Barry Wilkinson and Mark Holliday, 2004A1.1 Assignments Preliminaries Several computers are configured at WCU for the assignments. Here, terra.cs.wcu.edu.
A1.1 Assignment 1 “Deploying a Simple Web Service”
Wrapping Scientific Applications as Web Services Gopi Kandaswamy (RENCI) Marlon Pierce (IU)
Web Application Server Apache Tomcat Downloading and Deployment Guide.
Object-Oriented Enterprise Application Development Tomcat 3.2 Configuration Last Updated: 03/30/2001.
Chapter Apache Installation in Linux- Mandrake. Acknowledgment The following information has been obtained directly from
XMAS installation instructions Windows Version: 1.0 4/22/2008.
Apache Tomcat Representation and Management of Data on the Web.
Apache Tomcat Server Typical html Request/Response cycle
Building and Deploying a Simple Web Application. Tomcat and JSP Tomcat is an application server, commonly used to host JSP applications Applications are.
CGI programming Using Apache. Concepts Browser prepares parameter list List is attached to name of program to run on server "submit" button sends string.
Julien Thibault / Phil Brewster / Kristina Doing-Harris
Java web development Servlet & Java server pages.
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
SERVLETS.
WebServer & Tomcat By B. Venkateswarlu M.Tech Assoc Prof IT(Dept) Newton’s Institute of Engineering.
Tomcat Celsina Bignoli History of Tomcat Tomcat is the result of the integration of two groups of developers. – JServ, an open source.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
ProSense BELGRADE Deploying SunSPOT SDK and Emulator on your Desktop or Laptop Computer Author: Stanislava Stanković, B.Sc. student of the School of Electrical.
Using Opal to deploy a real scientific application as a Web service Sriram Krishnan
Installing and Configuring Tomcat A quick guide to getting things set up on Windows.
Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
WaveMaker Visual AJAX Studio 4.0 Training Studio Overview.
Servlets Environment Setup. Agenda:  Setting up Java Development Kit  Setting up Web Server: Tomcat  Setting up CLASSPATH.
WIDAR Prototype Testing User Interface Software Kevin Ryan NRAO-DRAO Face-to-Face Meeting April 3, 2006.
Presentation: SOAP in a distributed object framework, Application Servers & AXIS SOAP.
IT 211 Project Integration and Deployment Lab #11.
Apache + Tomcat. Apache + Tomcat Download mod_webapp.so:
Skinning uPortal: For Developers Matthew Polizzotti Senior UX Developer Unicon, Inc. Westin Westminster Standley I 25-May-2011 © Copyright Unicon, Inc.,
CS441 CURRENT TOPICS IN PROGRAMMING LANGUAGES LECTURE 5_1 George Koutsogiannakis/ Summer
Geo CE-XM ch 4 Edited 10/14/05 1 The XM is the newest of the rovers, and unlike other units, it comes with software installed on the unit as well as using.
Working With Apache Axis. Axis Information See guide.html for the basic user guide.
Mail merge I: Use mail merge for mass mailings Perform a complete mail merge Now you’ll walk through the process of performing a mail merge by using the.
Installing Apache Axis Setting up your Tomcat server to use Web Services.
Alice 2.0 Introductory Concepts and Techniques Project 1 Exploring Alice and Object-Oriented Programming.
Basic Setup Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Client – Server Application Can you create a client server application: The server will be running as a service: does not have a GUI The server will run.
Presentation: SOAP/WS in a distributed object framework, Application Servers & AXIS SOAP.
Presentation: SOAP/WS in a distributed object framework, Application Servers & AXIS SOAP.
Java server pages. A JSP file basically contains HTML, but with embedded JSP tags with snippets of Java code inside them. A JSP file basically contains.
SAFARI ODBC INSTALLATION Go to the TRECA home WEB page.
1 Creating Web Services from a existing tool Presented by Ashraf Memon Hands-on Ashraf Memon, Ghulam Memon.
Deploying a service. Talk titledate2 Talk titledate3 Section SOAP Deployment.
1 G52IWS: Example Web-services Chris Greenhalgh. 2 Contents Software requirements AXIS web service run-time components Getting started with Jetty & AXIS.
Creating Web Services Presented by Ashraf Memon Presented by Ashraf Memon.
NJIT 1 Apache Tomcat (Version 6.0) THETOPPERSWAY.COM.
® IBM Software Group © 2006 IBM Corporation Rational Asset Manager v7.2 Using Scripting Tutorial for using command line and scripting using Ant Tasks Carlos.
Installing RandoNode Starter Kit OPEN Development Conference September 17, 2008 Kasi Perumal Consultant.
Net-centric Computing Web Services. Lecture Outline  What is Web Service  Web Service Architecture  Creating and using Java Web Services  Apache Axis.
INTERNET APPLICATIONS CPIT405 Install a web server and analyze packets.
Your current Moodle 1.9 Minimum Requirements Ability to do a TEST RUN! Upgrading Moodle to Version 2 By Ramzan Jabbar Doncaster College for the Deaf By.
WMarket For Adminstrators Manual Installation. Basic Dependencies To install your own WMarket instance, you are required to install the following software:
Using Opal to deploy a real scientific application as a Web service Sriram Krishnan, Ph.D.
1 Adding a Model. We have created an MVC web app project Added a controller class. Added a view class. Next we will add some classes for managing movies.
Setting Up First, install tomcat and axis as described elsewhere. Then copy Tomcat into a second folder. –I’ve named mine jakarta- tomcat-server and jakarta-
Perform a complete mail merge Lesson 14 By the end of this lesson you will be able to complete the following: Use the Mail Merge Wizard to perform a basic.
9/21/04 James Gallagher Server Installation and Testing: Hands-on ● Install the CGI server with the HDF and FreeForm handlers ● Link data so the server.
Labs: Create, deploy and test a simple web service
Checking the Server.
Hyrax Configuration.
Writing simple Java Web Services using Eclipse
Outline SOAP and Web Services in relation to Distributed Objects
Outline SOAP and Web Services in relation to Distributed Objects
Checking the Server.
slides borrowed and adapted from Alex Mariakis and CSE 390a
Presentation transcript:

Guidelines for Homework 6

Getting Started Homework 6 requires that you complete Homework 5. –All of HW5 must run on the GridFarm. –HW6 may run elsewhere (like your desktop). –Write a simple Java program to invoke the Simpson code and verify it works. –Install Tomcat on one of the GridFarm machines. Make sure you change the port numbers –Install Axis 1.1 into Tomcat. –Convert your java program into a service Rename SimpsonWrapper.java to SimpsonWrapper.jws Copy the file to the Axis directory

Next, Write the Client Following the April 25 th lectures –Install Tomcat again, on a different host Can be a local PC –Install Axis 1.1 as before –Download the WSDL file for your service URL is something like this: Save it onto your PC –Generate client stubs on your PC from this WSDL and compile these java programs. See owework6.ppt for complete details. owework6.ppt –Use your client stubs to write a JSP page See also the URL above

A Picture Tomcat + Axis On JSU PC Tomcat + Axis On IU Linux The ClientThe Server Stubs Service SOAP

If You Make It This Far… Note if you follow the SimponWrapper code example, the 2D String array value returned by execLocalCommand returns standard output and standard error. –You can print this out in your JSP page. Send me a screen shot to verify that you were able to do this. Make zips of your client and service to verify that it works. –Don’t ! Put it on a web server and send me the URL.

Next Steps We will come back to your JSP client in a second. First, we will see how to convert a generic JSP into a portlet. We will use uPortal as our portlet container.

Next Steps All of the following steps should be done on your PC –Use the same Tomcat server from the GridFarm, just copy it over to your desktop. You will need to download the following stuff onto your PC –Apache Ant: –uPortal 2.4.2: –Be sure to get the “uPortal-only” version. –HSQLDB, a lightweight java DB: Get hsqldb_1_7_3_3.zip

Install uPortal Unpack Apache Ant, HSQLDB, and uPortal on your PC. –Add bin/ant to your path. Start HSQDB –In the hsqldb folder, run this command: –java -cp lib/hsqldb.jar org.hsqldb.Server -database uPortal -port 8887 In the uPortal directory, edit build.properties –You will need to change server.home to point to your Tomcat server on your PC. –All other properties should be OK. Install uPortal with ant –From the uPortal_rel folder, run the command “ant initportal” –If ant is not in your PATH, just use the entire path

If You Made It This Far… Fire up Tomcat on your PC Point your browser to Portal Portal You should see uPortal. Send me a screen shot.

Doing Stuff with uPortal First you will notice that you can log into uPortal and do all sorts of things, like customizing the user interface and adding “channels” or portlets. See docs/uportal_info.html for examples. docs/uportal_info.html

Now Some Portlets uPortal’s various channels are actually portlets, as we discussed in the March 30 th lecture. You can add your own portlets. I have some sample portlets that you should install first. –Get them here: aterial/OGCESamplePortlet.tar.gz. –Read the README file to see how to install into uPortal. –After you have done this, log into uPortal and make the test portlet available –Detailed instructions are here: ogce.org/nmi/ogce2-docs/uPortal_portlets.html. ogce.org/nmi/ogce2-docs/uPortal_portlets.html When you are done, you will have a portlet application in your Tomcat’s webapp directory. –It will be called OGCESamplePortlet

Now at Last If you have made it this far, you are now ready to convert your Simpson’s Rule Web Service client into a portlet. But how do you do this? Well, you already have an installed portlet from the previous step. I recommend replacing my test portlet’s JSP page with your JSP page. But there’s more –You will need to copy over the jars and classes from your axis client to the OGCESamplePortlet directory. Jars go in OGCESamplePortlet/WEB-INF/lib. Classes go in OGCESamplePortlet/WEB-INF/classes Shutdown tomcat while you do this. Restart and your SimpsonWrapper portlet should be available.

Doing It the Right Way The previous slide provides a short cut for getting your JSP+axis stuff into a portlet. Actually, the full way of doing this is to do the following: –Develop the portlet code for loading your JSP, as described in the March 30 th lectures. –Compile this (along with the stub code) and create a war file. Use the command “jar -cf MyClient.war *” at the top level of your webapp. –Deploy your WAR file into uPortal, as described here: ortlets.html. ortlets.html –Add your portlet to your portal display as described here: docs/uPortal_portlets.html

How to Turn in HW5 Homework 5 –Send me URLs of your running services on the GridFarm. –Send me a screen shot of your JSP client that shows it working Should be able to display the Simpson run results. –Zip up your client code, put it on your web server, and send me the URL so that I can download it.

How to Turn in Homework 6 Send me a screen shot of your uPortal installation. –You should do this for partial credit, before attempting the portlet installation. Send me a screen shot that shows me that you have installed the sample portlets. –Do this for partial credit. Send me a screen shot that shows you have converted your SimpsonWrapper client JSP page from homework #5 into a portlet.