Tutorial: setting up a web application



Similar documents
ENABLE LOGON/LOGOFF AUDITING

Eclipse installation, configuration and operation

Installing the Android SDK

Getting Started using the SQuirreL SQL Client

Virtual Office Remote Installation Guide

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

Crystal Reports for Eclipse

Livezilla How to Install on Shared Hosting By: Jon Manning

Software Development Environment. Installation Guide

NetBeans IDE Field Guide

JBoss Portal 2.4. Quickstart User Guide

How to install and use the File Sharing Outlook Plugin

CEFNS Web Hosting a Guide for CS212

Introduction to Android Development

Using Internet or Windows Explorer to Upload Your Site

How to add your Weebly website to a TotalCloud hosted Server

Census. di Monitoring Installation User s Guide

QUICK START. GO-Global Cloud 4.1 SETTING UP A LINUX CLOUD SERVER AND HOST INSTALL THE CLOUD SERVER ON LINUX

Android Development Setup [Revision Date: 02/16/11]

DEPLOYING A VISUAL BASIC.NET APPLICATION

Code Estimation Tools Directions for a Services Engagement

Network Shutdown Module V3 Extension of the User Manual for IBM BladeCenter architecture

How to start with 3DHOP

You must have at least Editor access to your own mail database to run archiving.

This document details the following four steps in setting up a Web Server (aka Internet Information Services -IIS) on Windows XP:

TUTORIAL ECLIPSE CLASSIC VERSION: ON SETTING UP OPENERP 6.1 SOURCE CODE UNDER WINDOWS PLATFORM. by Pir Khurram Rashdi

Installing Ruby on Windows XP

These instructions were tested on OS X Earlier or later versions may have slight or major differences in how things work and appear.

Quick Start Guide. Installation and Setup

WA1826 Designing Cloud Computing Solutions. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

IBM WebSphere Application Server V8.5 lab Basic Liberty profile administration using the job manager

Creating Your Own TinyWeb Database. Ball State University - CS116 - Ashley Swartz

Paperless Meeting Software Installation Instructions

Download and Installation Instructions. Android SDK and Android Development Tools (ADT) Microsoft Windows

For Introduction to Java Programming, 5E By Y. Daniel Liang

Installing LearningBay Enterprise Part 2

1. Starting the management of a subscribers list with emill

PHP+MYSQL, EASYPHP INSTALLATION GUIDE

To begin, visit this URL:

TECHNICAL DOCUMENTATION SPECOPS DEPLOY / APP 4.7 DOCUMENTATION

Testing and Deploying IBM Rational HATS 8.5 Applications on Apache Geronimo Server 3.1

Troubleshooting Guide. 2.2 Click the Tools menu on Windows Explorer 2.3 Click Folder Options. This will open a dialog box:

How To Create An Intranet Site On A School Computer (For A School) On A Mac Or Pc Or Ipad (For Pc Or Mac) On An Ipad Or Ipa (For Mac) (For Ipa) On Pc

How to Install Eclipse. Windows

Installation Guidelines (MySQL database & Archivists Toolkit client)

WA2262 Applied Data Science and Big Data Analytics Boot Camp for Business Analysts. Classroom Setup Guide. Web Age Solutions Inc.

IBM TRIRIGA Anywhere Version 10 Release 4. Installing a development environment

Beginning with SubclipseSVN

Installation Guide. . All right reserved. For more information about Specops Deploy and other Specops products, visit

Adding Outlook to a Blackberry, Downloading, Installing and Configuring Blackberry Desktop Manager

Mapping ITS s File Server Folder to Mosaic Windows to Publish a Website

NSi Mobile Installation Guide. Version 6.2

Upgrading Your Web Server from ClientBase Browser Version 2.0 or Above to Version 2.1.1

owncloud Configuration and Usage Guide

How to configure the DBxtra Report Web Service on IIS (Internet Information Server)

Automating client deployment

The cloud server setup program installs the cloud server application, Apache Tomcat, Java Runtime Environment, and PostgreSQL.

Compiere 3.2 Installation Instructions Windows System - Oracle Database

APNS Certificate generating and installation

Web Services using Tomcat and Eclipse

ApplicationXtender 7.0 Upgrade on 23 September 2015

Monitoring Oracle Enterprise Performance Management System Release Deployments from Oracle Enterprise Manager 12c

Secrets of Event Viewer for Active Directory Security Auditing Lepide Software

Download and Installation Instructions. Android SDK and Android Development Tools (ADT)

Step-by-step installation guide for monitoring untrusted servers using Operations Manager ( Part 3 of 3)

Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint InfoPath 2013 Web Enabled (Browser) forms

1. Open Thunderbird. If the Import Wizard window opens, select Don t import anything and click Next and go to step 3.

Introduction: The Xcode templates are not available in Cordova or above, so we'll use the previous version, for this recipe.

POOSL IDE Installation Manual

educ Office Remove & create new Outlook profile

ORACLE BUSINESS INTELLIGENCE WORKSHOP. Prerequisites for Oracle BI Workshop

Expresso Quick Install

NetBeans IDE Field Guide

Primavera P6 Professional Windows 8 Installation Instructions. Primavera P6. Installation Instructions. For Windows 8 Users

KeePass Getting Started on Windows

Bitrix Site Manager ASP.NET. Installation Guide

Outlook Data File navigate to the PST file that you want to open, select it and choose OK. The file will now appear as a folder in Outlook.

Getting Started with Android Development

Setting Up Your Android Development Environment. For Mac OS X (10.6.8) v1.0. By GoNorthWest. 3 April 2012

How to Setup, Install & Run a Website on your Local Computer. For WordPress - on an Offline Server - WAMP

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

USING STUFFIT DELUXE THE STUFFIT START PAGE CREATING ARCHIVES (COMPRESSED FILES)

Setting up FileMaker 10 Server

Glassfish, JAVA EE, Servlets, JSP, EJB

WA1791 Designing and Developing Secure Web Services. Classroom Setup Guide. Web Age Solutions Inc. Web Age Solutions Inc. 1

Windows Intune Walkthrough: Windows Phone 8 Management

Installing Eclipse C++ for Windows

Windows 7 Hula POS Server Installation Guide

Initial Setup of Microsoft Outlook 2011 with IMAP for OS X Lion

Other documents in this series are available at: servernotes.wazmac.com

Witango Application Server 6. Installation Guide for Windows

T320 E-business technologies: foundations and practice

etoken Enterprise For: SSL SSL with etoken

Intelligent Event Processer (IEP) Tutorial Detection of Insider Stock Trading

Organizing and Managing

Sonatype CLM for Maven. Sonatype CLM for Maven

1. If there is a temporary SSL certificate in your /ServerRoot/ssl/certs/ directory, move or delete it. 2. Run the following command:

What you will need before beginning this guide

Web Development on the SOEN 6011 Server

Transcription:

Elective in Software and Services (Complementi di software e servizi per la società dell'informazione) Section Information Visualization Number of credits : 3 Tutor: Marco Angelini e- mail: angelini@dis.uniroma1.it version:1.0 Tutorial: setting up a web application 1. Introduction 2. Netbeans a. Install IDE and application server b. Create a simple web- application 3. Eclipse a. Install IDE b. Install application server c. Create a simple web- application 1.Introduction In order to develop a web application is mandatory to download an IDE (Integrated Developer Environment). The two most used ones (among many others) are NETBEANS and ECLIPSE. For the goals of this course the suggested IDE will be NETBEANS and the development of the test application will be done using it. Still the same conceptual steps are applicable to ECLIPSE. NOTE: for each error that you can find in this tutorial please signal it by sending an e- mail to angelini@dis.uniroma1.it

2. Netbeans a. Install IDE and application server Go to the following url: https://netbeans.org/ And click on the download button. In the next screen first select the operating system for which you want to download the IDE (from the top- right drop- down menu; you can choose among Windows, OSX, Linux or OS independent versions) Then select the last option ( All ) that comes in a bundle already comprehensive of 2 different application servers (GlassFish from Oracle and Tomcat from Apache)

After the download is finished, launch the installer (command specific to your OS) and follow the instructions on screen. First screen will provide default options for install process

Click on customize and select in addition to the already selected Glassfish web server, the web server Tomcat. Leave the other options as they are (selected by default). Then click Next.

Proceed to specify the paths for both GlassFish, Tomcat and Netbeans IDE as shown in following pictures. In between accept the various licenses agreements requests; each time click Next to continue: Glassfish:

Confirm the whole installing options specified and click on Install. This will start the installation process. When everything is done click on Finish

b. Create a simple web- application After installation phase is complete launch Netbeans; a start screen like the following one will be presented to you: Proceed and select New Project :

and then from the following menu select Java- Webà Web- Application : In the newly opened dialog give a name to the web application (call it myfirstwebapplication ) and click Next. Then select the runtime target (the web server on which your application will run) for your web app: choose from the drop- down menu Apache Tomcat. Leave the rest as it is and click Finish

The Skeleton for your project will be created and you will be presented with the following structure: Expand Web pages node, and traverse the tree until you will find the index.html file. This will be the entry point of your web- app (homepage) Change the content in the tags <title> and <body> as seen in the picture (or as you like, but just text for now, the content of the page is not important for this tutorial) and then right- click on the name of the project and choose the Deploy option

The Server will be automatically started (if the server doesn t automatically start, choose from the View pane Servers, then Tomcat, then right- click on it and choose start. After that repeat the deploy phase) and your web application will be deployed on the server (each time you will make change to your code you must re- deploy it to the server, like a normal building phase for Desktop applications). From the Servers Pane (and NOT from the editing pane), select your web- application (in the sub tree from the expansion of Tomcat Server), right click on it and choose Open in Browser

The Internal Browser (or the predefined from your system one, but you can change it on Preferences) will open and will be redirected to the URL of your now deployed web- application (in this case http://localhost:8084/myfirstwebapplication) Congratulations, you come to the end of this Tutorial!!. 3. Eclipse As explained in the introduction, another IDE suitable for web development is ECLIPSE; It is a more general IDE with respect to NETBEANS, but the trade- off is that ECLIPSE is less user friendly and most of the steps to fulfil in order to setup a web development environment has to be done by hand, without the shortcut provided by NETBEANS. Finally, the author stress again that in the course the NETBEANS platform is the one that will be used for web application development. Nonetheless, knowledge about different platform is encouraged in order to provide various alternative to the developer. a. Install IDE Go to the following url: http://www.eclipse.org/ and select the download tab

Select ECLIPSE IDE for Java EE Developers and be sure to download the right version with respect to your operating system. After the download is finished extract the resulting archive wherever you want: ECLIPSE DOESN T need a formal install process, but only a initialization phase.(note: usually the content of the archive is already encapsulated in a folder called eclipse, so just extract it in the root of your file system or inside a folder that is not specific for the IDE) So, after you have extracted the archive in the chosen folder launch the IDE by double- clicking on the eclipse file (.exe or whatever based on OS) Immediately after this step will be requested to provide the directory for the workspace (where your projects will be stored)

Select the one you prefer (but remember it!) and click OK After that Eclipse will be installed and you will see a screen like the following: b. Install application server After installing ECLIPSE, we must install a web server. We will use Apache tomcat. Go to the url: http://tomcat.apache.org/ and in the download section (on left part of the screen) click on Tomcat 7.0

in the following screen download the archive relative to your OS, for the 7.53 version, under the Core category (NOTE: you can install Tomcat as a service, but in most of the cases is useful to just download the binary and have it independent from the OS) Also in this case, just extract the archive in the preferred directory (the content is already encapsulated in a directory) and remember it for later! Next we will link the web server to ECLIPSE. In order to do that open the servers view in ECLIPSE (Window- >Show View- >Servers)

and click on the link for creating a new server In the new opened dialog- box select the Apache Tomcat 7 and click next

then specify the directory in which you have extracted your server then click Finish. The selected server is now linked and visible in ECLIPSE. c. Create a simple web- application

After having installed both the IDE and the web- server, and having linked the latter with the former, what remain to do is creating a new web application project and provide it, as a runtime environment, our web- server. First create a new project from Newà Other In the following dialog select Webà Dynamic Web Project, then click next

Fill the name for your application (choose whichever you like or the name in the picture) and, more important, select in Runtime Target the previously installed web server then click Finish NOTE: with this step we linked our new web app to the chosen server. In the case something didn t go well you can always add/remove an app from a server by right- clicking on the server and choose add and remove

then adding the chosen web apps to the server and clicking Finish Let s continue to the final phase. We have the skeleton for the web application (just barebones and less rich than the one provided by NETBEANS) but no resources in it. In order to create them, right- click on the project name and create a new HTML file; call it as you want (or index.html to remain consistent with the NETBEANS part):

then change the content of the file accordingly to what shown in next figure (or content of your choice, the content is not important in this tutorial) Save the file and then start the server ( green play icon on the server tab or right click on the server name and click start )

Change the default browser from the proprietary (and ugly) one of ECLIPSE to one of your choice by going in Window- >Web Browser then launch and deploy the project by clicking on the project name, then Run asà run on server Select the server on which the app has to run (Apache tomcat 7) and tick the option to not ask it again (you can change it later if you like)

If everything has gone well the browser will open and you will see the result! Congratulations! You have come to the end of this tutorial!!