JHU/EP Server Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/csajsp2.html



Similar documents
& JSP Technology Originals of Slides and Source Code for Examples:

Android Programming: Installation, Setup, and Getting Started

Debugging Ajax Pages: Firebug

Building Web Services with Apache Axis2

Web Applications. For live Java training, please see training courses at

Web Applications. Originals of Slides and Source Code for Examples:

The Google Web Toolkit (GWT): Overview & Getting Started

Virtual Machine (VM) For Hadoop Training

Java with Eclipse: Setup & Getting Started

Android Programming Basics

2011 Marty Hall An Overview of Servlet & JSP Technology Customized Java EE Training:

Advanced Java Client API

Application Security

Official Android Coding Style Conventions

Hadoop Streaming coreservlets.com and Dima May coreservlets.com and Dima May

Struts 2 - Practical examples

Hadoop Distributed File System (HDFS) Overview

What servlets and JSP are all about

The Google Web Toolkit (GWT): The Model-View-Presenter (MVP) Architecture Official MVP Framework

HDFS Installation and Shell

Map Reduce Workflows

Android Programming: 2D Drawing Part 1: Using ondraw

An Overview of Servlet & JSP Technology

HBase Java Administrative API

RETRIEVING NMR DATA JB Stothers NMR Facility Materials Science Addition 0216 Department of Chemistry Western University

HBase Key Design coreservlets.com and Dima May coreservlets.com and Dima May

Apache Pig Joining Data-Sets

Install FileZilla Client. Connecting to an FTP server

Instructions for Setup and Connecting to Department of Education Secure FTP(SFTP) server January 23, 2013

SFTP Server User Login Instructions. Open Internet explorer and enter the following url:

Google App Engine f r o r J av a a v a (G ( AE A / E J / )

IRF2000 IWL3000 SRC1000 Application Note - Develop your own Apps with OSGi - getting started

Session Tracking Customized Java EE Training:

Managed Beans II Advanced Features

Handling the Client Request: Form Data

College of Continuing Education Video Production Room

Preface. Motivation for this Book

Localization and Resources

Hudson configuration manual

How To Load Data Into An Org Database Cloud Service - Multitenant Edition

The Google Web Toolkit (GWT): Declarative Layout with UiBinder Basics

Google Apps for Sharing Folders and Collecting Assignments

Ad Hoc (Temporary) Accounts Instructions

Upgrading Redwood Engine Software. Version 2.0.x to 3.1.0

Erie 1 BOCES/WNYRIC. Secure File Transfer. Upload/Download Wizard

Access Instructions for United Stationers ECDB (ecommerce Database) 2.0

WinSCP for Windows: Using SFTP to upload files to a server

CrownPeak Java Web Hosting. Version 0.20

For live Java EE training, please see training courses

What means extensibility?

Guide to the Configuration and Use of SFTP Clients for Uploading Digital Treatment Planning Data to ITC

freesshd SFTP Server on Windows

WA2102 Web Application Programming with Java EE 6 - WebSphere RAD 8.5. Classroom Setup Guide. Web Age Solutions Inc. Web Age Solutions Inc.

ICE Futures Europe. MFT Technical Guide for Position Reporting V1.2

Epidefender Studio Installation notice

Accessing the FTP Server - User Manual

POC Exchange Migration Guide Feb 2013 POC HOSTED EXCHANGE MIGRATION GUIDE

Java (J2SE & J2EE) and Web Development Training Catalog

Secure File Transfer Protocol User Guide. Date Created: November 10, 2009 Date Updated: April 14, 2014 Version: 1.7

NGASI Shared-Runtime Manager Administration and User Guide WebAppShowcase DBA NGASI

Crystal Reports for Eclipse

Configuring for SFTP March 2013

Installation Guidelines (MySQL database & Archivists Toolkit client)

Lets Get Started In this tutorial, I will be migrating a Drupal CMS using FTP. The steps should be relatively similar for any other website.

Connecting to the School of Computing Servers and Transferring Files

OCAN - Ontario Common Assessment of Need

Guidance for IA DMM: Connecting Your Computer to FSU Video File Server

Programming on the Web(CSC309F) Tutorial: Servlets && Tomcat TA:Wael Aboelsaadat

MapReduce on YARN Job Execution

Migrating Applications From IBM WebSphere to Apache Tomcat

Guide to the Configuration and Use of SFTP Clients for Uploading Digital Treatment Planning Data to IROC RI

Servlet and JSP Filters

NMR Processing on PCs outside the NMR laboratory

PingFederate. Identity Menu Builder. User Guide. Version 1.0

WebSphere Application Server v8 Primer

Secure Shell. The Protocol

RemoteTM Web Server User Guide. Copyright Maxprograms

Secure File Transfer Protocol User Guide

WinSCP Tutorial 01/28/09: Y. Liow

Demo of Data transferring (.CSV Files) from EGX300 to Our local PC/Laptop using- FTP

1 Building, Deploying and Testing DPES application

Using WinSCP to Transfer Data with Florida SHOTS

Web and Enterprise Applications Developer Track

MiraCosta College now offers two ways to access your student virtual desktop.

Export & Backup Guide

Workshop for WebLogic introduces new tools in support of Java EE 5.0 standards. The support for Java EE5 includes the following technologies:

Introduction to Stanford Box

Livezilla How to Install on Shared Hosting By: Jon Manning

CASHNet Secure File Transfer Instructions

Java/J2EE or Web Developer. Formal Education. Technical knowledge. Spoken Languages

Portals, Portlets & Liferay Platform

Instructions for Accessing the Advanced Computing Facility Supercomputing Cluster at the University of Kansas

IBM Bluemix Tutorial Connecting Eclipse to Bluemix v2.0

IUCLID 5 Guidance and Support

Installing and Running Tomcat 5.5

How to use

Transcription:

2010 Marty Hall Deploying Apps to the JHU/EP Server Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/csajsp2.html 2 Customized Java EE Training: http://courses.coreservlets.com/ 2010 Marty Hall For live Java EE training, please see training courses at http://courses.coreservlets.com/. Servlets, JSP, Struts, JSF 1.x, JSF 2.0, Ajax (with jquery, Dojo, Prototype, Ext-JS, Google Closure, etc.), GWT 2.0 (with GXT), Java 5, Java 6, SOAP-based and RESTful Web Services, Spring, Hibernate/JPA, and customized combinations of topics. Taught by the author of Core Servlets and JSP, More Servlets and JSP, and this tutorial. Available at public venues, Customized or customized Java EE Training: versions http://courses.coreservlets.com/ can be held on-site at your organization. Contact hall@coreservlets.com for details.

Agenda Installing an sftp client Making a WAR file Uploading WAR file to JHU Tomcat server Trying an example 4 Installing File Transfer Software Install an sftp client Google free sftp client You want a drag-and-drop tool that let you use mouse to drag files from PC to remote server Eclipse also supports sftp via Remote System Explorer perspective. See http://www.eclipse.org/dsdp/tm/ I use FileZilla, but there are many other reliable free clients (e.g., Putty, WinSCP) that support drag-and-drop In FileZilla, File Site Manager lets you save locations If you are prompted, sftp port is 22 5

Creating WAR Files The Art of WAR: Learn to create WAR files R-click project, Export, WAR file, pick location, Finish (Or Export, Web, WAR file in some Eclipse configurations) You can deploy this WAR file to any Java-capable server But, server must support servlets 3.0 for this class 6 Or, find location Eclipse uses for Web apps Deploy a project, go to eclipse-workspace/.metadata/ and search for a wtpwebapps folder in that project On my system it is \.metadata\.plugins\...\tmp1\wtpwebapps Can deploy project folder from here or deploy WAR file, but I personally find it simpler to create WAR file 7 Sending Apps to Tomcat on web4.apl.jhu.edu edu Make project starting with your name/nickname E.g., name your Eclipse project hall-intro it Use similar naming scheme all semester Deploy from Eclipse and test at home http://localhost/hall-intro/some-file.html http://localhost/hall-intro/some-servlet Send app to web4 Find project Build WAR file (e.g., hall-intro.war ) Find deployed project folder (e.g., wtpwebapps/hall-intro ) Connect to web4.apl.jhu.edu (username/pw given in class) Copy WAR file or project folder to /usr/local/tomcat/webapps This is the exact pathname. Do not replace /usr with your id. Test (only hostname changes!) http://web4.apl.jhu.edu/hall-intro/some-file.html http://web4.apl.jhu.edu/hall-intro/some-servlet

Example: test-app project 8 Testing on local PC R-click Tomcat at bottom, Add and Remove, select test-app, restart Tomcat http://localhost/test-app/test1 Deploying to web4 Started FileZilla Created test-app.war, copied to /usr/local/tomcat/webapps Tomcat expands WAR Testing on web4 http://web4.apl.jhu.edu/ test-app/test1 Summary 9 Create and test project on your PC Deploy to local Tomcat. R-click Tomcat at bottom, Add and Remove, select test-app, R-click Tomcat, Restart Use http://localhost/some-app-name/some-url Create WAR file R-click project, Export, WAR file Start FileZilla or other sftp client Connect to web4.apl.jhu.edu. Drag WAR file to /usr/local/tomcat/webapps Test project on web4 Use http://web4.apl.jhu.edu/some-app-name/some-url / / l All URLs should be same except for replacing localhost with web4.apl.jhu.edu

2010 Marty Hall Questions? 10 Customized Java EE Training: http://courses.coreservlets.com/