ASM Hands-on. What will we learn? ● How to install an ASM-based web-application in gUSE ● How to develop ASM-related parts of an interface for – Importing.

Slides:



Advertisements
Similar presentations
Publication Module using back end interface. Institution Data Entry Add Documents. Edit/Delete Documents that are added but not yet sent to Institution.
Advertisements

17 Copyright © 2005, Oracle. All rights reserved. Deploying Applications by Using Java Web Start.
Development Configuration Guide Using NetBeans IDE
OpenCMS and the MSASS Website. A Note on Terminology Locking a file for editing: No lockNOT locked You have write/edit access Someone else has write.
Web Application Server Apache Tomcat Downloading and Deployment Guide.
DNR-322L & DNR-326.
Sapana Mehta (CS 6V81) Instructions for using Jboss User Manual.
Object-Oriented Enterprise Application Development Tomcat 3.2 Configuration Last Updated: 03/30/2001.
Edit the text with your own short phrases. The animation is already done for you; just copy and paste the slide into your existing presentation. RegisterLogin.
Introductory CMS Training Welcome to the new Montana State University Content Management System!
ECE356 – Database Systems Lab 1 – Building a Web Project with NetBeans Tiuley Alguindigue Lab Instructor – University of Waterloo, E & CE Dept. Fall 2013.
TUTORIAL (1) Software installation Written by: Eng. Ahmed Mohamed Abdel Ghafar, Edited by Eng. Muhammed Hammad, Eng. Hamdy Soltan & Eng. Osama Talaat.
Deployment Management The following screens demonstrate how to: 1. Access and view deployments 2. Create a new local deployment 3. Create and modify a.
How to create a website for free Panagiotis Kafkarkou.
Hosted Exchange The purpose of this Startup Guide is to familiarize you with ExchangeDefender's Exchange and SharePoint Hosting. ExchangeDefender.
The basics of the Online Portal
Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql.
Recruitment Office Procedures Job Posting Requests Creating a Search Committee –Adding Search Committee MembersAdding Search Committee Members –Designating.
Getting started on informaworld™ How do I register my institution with informaworld™? How is my institution’s online access activated? What do I do if.
1 Project 7: My Photo Album Graded Project. 2 Assignment Write a web app to permit users to upload and view photos. User can keep up to five photos on.
Building the Portal. Choosing a Host Computer Select your host computer. o You will need a real IP address for some COG-based portlets o VPN also OK (?)
IT 211 Project Integration and Deployment Lab #11.
Tomcat Spencer Uresk. Notes This is a training NOT a presentation Please ask questions This is being recorded
CS441 CURRENT TOPICS IN PROGRAMMING LANGUAGES LECTURE 5_1 George Koutsogiannakis/ Summer
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.
School District U-46 Metadot Portal Training. Agenda Intro – Objective Useful Terms Main Page Login Help/Support My Website Enable Editing Edit Your Home.
Java Server Pages A JSP page is a text-based document that contains two types of text: static template data, which can be expressed in any text-based format,
Plug-in Development Environment. Session Outline Tools Installation Configuration New Project Basic Debugging Remote Debugging.
Java Servlets example using NetBeans 6. Pre-requirements: Install Java JDK 1.6 Install NetBeans IDE 6 (we will use version NetBeans IDE update 16)
SCI-BUS is supported by the FP7 Capacities Programme under contract nr RI Creating the Autodock gateway from WS-PGRADE/gUSE and making it cloud-enabled.
1 ITI 1120 Lab # 1 An Introduction to the Lab Environment Contributors: G. Arbez, M. Eid, D. Inkpen, A. Williams, D. Amyot.
Execute Workflow. Home page To execute a workflow navigate to My Workflows Page.
Go to your school’s web locker site school name.schoolweblockers.com) Your user name is the first letter of your first name, the first 4.
LDAP Authentication Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Application Specific Module Tutorial Akos Balasko 02/07/
Convert generic gUSE Portal into a science gateway Akos Balasko 02/07/
Liferay Installation Prepared by: Do Xuan Hai 8 August 2011.
1 Creating Web Services from a existing tool Presented by Ashraf Memon Hands-on Ashraf Memon, Ghulam Memon.
SCI-BUS is supported by the FP7 Capacities Programme under contract no. RI CloudBroker Platform Tutorial Wibke Sudholt CloudBroker GmbH Technoparkstrasse.
Table of Contents TopicSlide Administrator Login 2 Administrator Navigations 3 Managing AlternativeDr.com Blogs 4 Managing Dr. Lloyd May Blogs 5 Managing.
Introduction to Taverna Online and Interaction service Aleksandra Pawlik University of Manchester.
Installing and Configuring Tomcat SSE. Downloading Tomcat l Download url: 4.0/release/v4.1.24/bin/
Convert generic gUSE Portal into a science gateway Akos Balasko.
Application Specific Module Tutorial Zoltán Farkas, Ákos Balaskó 03/27/
If you don’t have Google Earth downloaded already, you can go to to get it.
JAVA, JEE Training Introduction to Web Harinath Mallepally
School District U-46 Metadot Portal Training. Agenda Intro – Objective Planning Main Page Login Help/Support My Website Enable Editing Edit Your Home.
Google App Engine using Java 1. Outline Getting started Guestbook example Todo example Simplified Madlib 2.
Remote Api Tutorial How to call WS-PGRADE workflows from remote clients through the http protocol?
WMarket For Adminstrators Manual Installation. Basic Dependencies To install your own WMarket instance, you are required to install the following software:
Development of portlets for special jobs: parametric, collections, workflows Mario Torrisi National Institute of Nuclear Physics.
1.Switch on the computer and wait for loading. 2.Select the Windows 7 OS at the end of the list. 3.Click on the link ‘Administrator’ 4.Enter the administrator.
DCI BRIDGE Introduction its Native Access Hands-On Akos Balasko
SCI-BUS is supported by the FP7 Capacities Programme under contract nr RI CloudBroker usage Zoltán Farkas MTA SZTAKI LPDS
Google App Engine using Java 1. Outline Getting started Guestbook example Todo example Simplified Madlib 2.
1.Switch on the computer and wait for loading. 2.Select the Windows 7 OS at the end of the list. 3.Click on the link ‘Administrator’ 4.Enter the administrator.
Upgrading PD² Archiving Utility Name: Semarria Rosemond Title: Systems Analyst, Lead Date: December 8, 2011.
Development of portlets for special jobs: parametric, collections, workflows Mario Torrisi Istituto Nazionale di Fisica Nucleare.
Convert generic gUSE Portal into a science gateway Akos Balasko.
Convert generic gUSE Portal into a science gateway Akos Balasko.
How to use Drupal Awdhesh Kumar (Team Leader) Presentation Topic.
CACI Proprietary Information | Date 1 Upgrading to webMethods Product Suite Name: Semarria Rosemond Title: Systems Analyst, Lead Date: December 8,
WS-PGRADE + ASM Basic hands-on Zoltán Farkas, MTA SZTAKI
Basic hands-on Zoltán Farkas, MTA SZTAKI
CCA Skill Certification
Adding and editing users
Activating your account and navigating through TIDE
Create a Portlet Project in RAD
SOAP web services in Microsoft Azure
Module 1.3 Introduction to the HFR Administration Module
Presentation transcript:

ASM Hands-on

What will we learn? ● How to install an ASM-based web-application in gUSE ● How to develop ASM-related parts of an interface for – Importing a workflow – Submiting a workflow – And so on...

AutoDock workflow ● Run docking simulations ● AutoGrid: – Role: generator (n job instances) – Creates inputs for AutoDock ● AutoDock: – Runs as a PS job – Performs the docking simulations ● Collector: – Examines the results – Collects m best results Inputs to be uploaded receptor.pdb placed in port 0 Number of job instances to be created as Command Line Argument Output placed to port 1 of Collector job

Introduction Would like to have : 4

Open the development framework and compile Autodock portlet ● Login to your cloud image: – ssh -X – (here you will have a pre-installed WS-PGrade/gUSE 3.5.6) ● Get a copy of ASM based on Maven from Sourceforge – mkdir asm – cd asm – svn export svn://svn.code.sf.net/p/guse/svn/asm/branches/asm-3.4.4_mvn asm-3.4.4_mvn ● Start netbeans: – Netbeans – Close the 3 projects by selecting them all in Projects panel, then right click-> close – Open project ASM: Right click on Project panel -> open Project -> asm-3.4.4_mvn – Click to Open project – Click to Modules → Then right click on AutoDockPortlet and select Open Project – then navigate in Autodock Portlet go to Source Packages – hu.sztaki.lpds.autodock package – and finally click AutoDockPortlet.java for edition 5

Open the development framework and Autodock portlet ● Login to your cloud image: – ssh 3 times (one for editing, one for commands, one for logs) – (here you will have a pre-installed WS-PGrade/gUSE 3.5.6) ● Get a copy of ASM based on Maven from Sourceforge – mkdir asm – cd asm – svn export svn://svn.code.sf.net/p/guse/svn/asm/branches/asm-3.4.4_mvn asm-3.4.4_mvn ● Open an exitor (mcedit/nano whatever) – mcedit asm _mvn/samples/AutoDockPortlet/src/main/java/hu/sztaki/lpds/autodock/AutoDockPortlet.java 6

Implement method for workflow import //// EXCERCISE 1: Import a workflow, implement doImport method ### //// // Predefinitely we know on what prefix used for the exported workflow name String workflowPrefix = "autoDock_" + userId; // Predefinitely we know who exported the workflow String developerID = "10196"; // get the type of the workflow exported (it's been exported as Application) String impWfType = RepositoryItemTypeConstants.Application; // get the instance of ASMService singleton ASMService asmService = ASMService.getInstance(); // get the workflow ID to be imported Vector list = asmService.getWorkflowsFromRepository(developerID, impWfType); // it returns a list, grab the last one, the list is ordered according to time ASMRepositoryItemBean workflowToImport= list.lastElement(); // invoke ImportWorkflow method with the parameters asmService.ImportWorkflow(userId, workflowPrefix, developerID, impWfType, workflowToImport.getId().toString()); 7

Upload an input file //// ### EXCERCISE 2.: Upload and associate inputs and command line interfaces ### //// // get instance of ASMService singleton ASMService asmService = ASMService.getInstance(); // get the name of the job which has the input file to be set String jobName = "AutoGrid"; // upload the file to the portal server once File uploadedFile = asmService.uploadFiletoPortalServer(file,userId,fileName); // than upload it to the storage and associate it to the given job's given port asmService.placeUploadedFile(userId, uploadedFile, workflowName, jobName, portNumber); 8

Implement a method to submit a workflow //Implement doSubmit method (can be found by searching for Excercise 3 in the code) try { // get userID from ActionRequest object String userID = (String) request.getRemoteUser(); // get the ASMService instance ASMService asmService = ASMService.getInstance(); String workflowName = request.getParameter("selectedWorkflow"); // notifytext and notifyType can be added as empty strings. String notifyText = ""; String notifyType = ""; // invoke its submit function with the parameters asmService.submit(userID, workflowName, notifyText, notifyType); // catch all exceptions } catch (ClassNotFoundException ex) { Logger.getLogger(AutoDockPortlet.class.getName()).log(Level.SEVERE, null, ex); } catch (InstantiationException ex) { Logger.getLogger(AutoDockPortlet.class.getName()).log(Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { Logger.getLogger(AutoDockPortlet.class.getName()).log(Level.SEVERE, null, ex); } 9

Compilation Compile all the Maven project by right-clicking to the name of the project in the Project panel and selecting Clean and build. The web archive will be created in /samples/AutoDockPortlet/target 10

Compilation Navigate to AutoDockPortlet folder (where you can find a pom.xml) Then type : mvn package [INFO] Building war: /home/lpds/asm/asm-3.4.4_mvn/samples/AutoDockPortlet/target/AutoDockPortlet.war [INFO] WEB-INF/web.xml already added, skipping [INFO] [INFO] BUILD SUCCESS [INFO] [INFO] Total time: s [INFO] Finished at: Fri Jul 05 09:38:34 UTC 2013 [INFO] Final Memory: 18M/44M The web archive will be created in /samples/AutoDockPortlet/target 11

Deployment and execution

Add new page for AutoDock portlet go to the portal: – :8080/liferay- portal-6.1.0/ Sign in : – username: – Password: lpds On the upper menu click to Add, then select Page link Name the page to AutoDock

Import workflow Get workflow from Select „Workflow” / „Upload” Browse the downloaded workflow file Click „Upload” „The upload is successful!”

Deploy the compiled web archive On the upper menu click to Go to, then Control Panel finally select Plugins installation down on the left hand side. Click to Install more portlets button Click to Upload File link Choose the compiled web archive file : (asn.3.4.4_mvn/samples/AutoDockPortlet/target AutoDockPortlet.war) Click to Install Note: In the terminal you should see this among the lines: 1 portlet for AutoDockPortlet is available for use

Deploy the compiled web archive Use HotDeploy possibility of Liferay: Copy AutoDockPortlet.war to $HOME/guse/deploy folder In target folder type this: cp AutoDockPortlet.war $HOME/guse/deploy

In the logs you should see something like this: 09:41:39,399 INFO [AutoDeployDir:167] Processing AutoDockPortlet.war 09:41:39,587 INFO [PortletAutoDeployListener:71] Copying portlets for /home/lpds/guse/deploy/AutoDo ckPortlet.war Expanding: /home/lpds/guse/deploy/AutoDo ckPortlet.war into /home/lpds/guse/apache- tomcat /temp/ Copying 1 file to /home/lpds/guse/apache- tomcat /temp/ /WEB-INF/classes Copying 1 file to /home/lpds/guse/apache- tomcat /temp/ /WEB-INF/jsp Copying 103 files to /home/lpds/guse/apache- tomcat /webapps/AutoDockPortle t Copying 1 file to /home/lpds/guse/apache- tomcat /webapps/AutoDockPortle t Deleting directory /home/lpds/guse/apache- tomcat /temp/ :41:41,552 INFO [PortletAutoDeployListener:81] Portlets for /home/lpds/guse/deploy/AutoDo ckPortlet.war copied successfully. Deployment will start in a few seconds. Jul 5, :41:48 AM org.apache.catalina.startup.Hos tConfig deployDirectory INFO: Deploying web application directory AutoDockPortlet 09:41:55,702 INFO [PluginPackageUtil:1099] Reading plugin package for AutoDockPortlet 09:41:55,712 WARN [PluginPackageUtil:1058] Plugin package on context AutoDockPortlet cannot be tracked because this WAR does not contain a liferay-plugin- package.xml file 09:41:57,581 INFO [PortletHotDeployListener:614] Registering portlets for AutoDockPortlet 09:41:57,736 WARN [PortletLocalServiceImpl:720] Portlet with the name AutoDockPortlet_WAR_AutoDo ckPortlet is described in portlet.xml but does not have a matching entry in liferay- portlet.xml 09:41:58,185 INFO [PortletHotDeployListener:433] 1 portlet for AutoDockPortlet is available for use

Register AutoDock Portlet as gUSE Component Note: You must do this only at first time! Click to Settings, then to Internal Services, finally click New to add new gUSE component represents ASM-based webapp. Type of component: portal Service group: guse URL of Component: :8080/AutoDockPortlet URL to initialize Component: :8080/AutoDockPortlet/init Public URL of Component: :8080/AutoDockPortlet State: active Click to Save

Register AutoDock Portlet as gUSE Component Click to Copy component properties Set Component from to :8080/wspgrade Set Component to to :8080/AutoDockPortlet Click to copy Don't worry it is the good response :) : Sytem message???servicecall.propertyimport??? In the logs you should see this : :8080/AutoDockPortlet-- :8080/wspgrade

Restart the portal EXAMPLE: ps aux | grep java lpds pts/3 R+ 08:46 0:00 grep --color=auto java lpds ? Sl Jun25 19:15 /usr/bin/java - Djava.util.logging.config.file=/home/lpds/guse/apache-tomcat /conf/logging.properties - Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -server -Xms256m -Xmx1024m - XX:MaxPermSize=512m -Dfile.encoding=UTF8 -Duser.timezone=UTC - Djava.security.auth.login.config=/home/lpds/guse/apache-tomcat /conf/jaas.config - DcrlUpdateInterval=0s -DcrlEnabled=false -Dorg.globus.tcp.port.range=20000, Djava.endorsed.dirs=/home/lpds/guse/apache-tomcat /endorsed -classpath /home/lpds/guse/apache- tomcat /bin/bootstrap.jar -Dcatalina.base=/home/lpds/guse/apache-tomcat Dcatalina.home=/home/lpds/guse/apache-tomcat Djava.io.tmpdir=/home/lpds/guse/apache- tomcat /temp org.apache.catalina.startup.Bootstrap start kill go to terminal./guse/apache-tomcat /bin/shutdown.sh ps aux | grep java kill -9./guse/apache-tomcat /bin/startup.sh NOTE : please do not use start.sh

Then start the portal with start.sh Check startup process: tailf ~/guse/apache-tomcat /logs/catalina.out After a time you should see this as last line: INFO: Server startup in ms Then in the browser the initialization process must be invoked. Please follow its instructions. :8080/information – Username: admin – Password: admin – JDBC Driver: org.gjt.mm.mysql.Driver – URI: jdbc:mysql://localhost:33 06/guse (IP must be changed to localhost) – User: guse – Password: guse – Please do NOT accept to provide my portal's location information :)

Then go back to the portal : – :80 80/life ray- portal / – And sign in... #Add weba pplic ation Click to Auto Dock menu item Add - > More -> undef ined - -> Auto Dock Portl et #Set Layo ut Mana ge -> Page Layo ut -> 1 colu mn - > Save

Finally check your application by – Uploading receptor.pdb located in /test folder of AutoDock web application – Creating new measurement – Executing it – Checking its status (by clicking to AutoDock link) – Downloading the results

End of Hands-On Thanks for your attention! Questions?