How to Publish Any NetBeans Web App

Similar documents
Tutorial: Using Java/JSP to Write a Web API

How to Create a NetBeans PHP Project

Life Without NetBeans

Web API Lab folder 07_webApi : webapi.jsp your testapijs.html testapijq.html that works functionally the same as the page testapidomjs.

AngularJS Intro Homework

File Upload Instructions Customer Access To Transcript Bulletin Publishing s FTP Site

Tutorial: Developing a Simple Hello World Portlet

Web API Lab. The next two deliverables you shall write yourself.

How to use J2EE default server

Readme File. Hyperion System 9 BI+ Application Builder.NET Release 9.2 Readme. Hyperion System 9 BI+ Application Builder.NET Release 9.

Website Setup & Assignment Publishing (Tomcat)

Session 8. Reading and Reference. en.wikipedia.org/wiki/list_of_http_headers. en.wikipedia.org/wiki/http_status_codes

Directory structure and development environment set up

JDK-WildFly-NetBeans Setup Local

CSC 8205 Advanced Java

USER GUIDE. LitExtension: YAHOO STORE to Magento Migration Tool

TIBCO LiveView Web Getting Started Guide

Web Application Architecture (based J2EE 1.4 Tutorial)

Magento Migration Tool. User Guide. Shopify to Magento. Bigcommerce to Magento. 3DCart to Magento

DocShuttle Administrator

Session 9. Deployment Descriptor Http. Reading and Reference. en.wikipedia.org/wiki/http. en.wikipedia.org/wiki/list_of_http_headers

EUSurvey OSS Installation Guide

From using an External Harddrive, to a Google Cloud Drive; there is no one way to backup data.

ThingWorx Relational Databases Connectors Extension User Guide

XAMPP Web Development Stack

Bitnami JRuby for Huawei Enterprise Cloud

PISA 2018 COMPUTER-BASED SCHOOL QUESTIONNAIRE: PRINCIPAL S MANUAL

USER GUIDE MAGENTO TO MAGENTO MIGRATION

Set Up and Frequently Asked Questions

KEIL software. Index of contents UPDATE. 1. Important information 1.1. What has changed?

R.E.A.C.H Patient Manager. User Manual

TIBCO LiveView Web Getting Started Guide

South Essex College Remote Resources

Migration Tool. User Guide. SHOPIFY to MAGENTO. Copyright 2014 LitExtension.com. All Rights Reserved.

How to Install (then Test) the NetBeans Bundle

CIS 3308 Logon Homework

CIS 3308 Web Application Programming Syllabus

Mobile Login Extension User Manual

Learn how to get started with Dropbox: Take your stuff anywhere. Send large files. Keep your files safe. Work on files together. Welcome to Dropbox!

0. Introduction On-demand. Manual Backups Full Backup Custom Backup Store Your Data Only Exclude Folders.

SIMICART USER GUIDE SERIES. SimiCart Install SimiConnector

JASPERREPORTS SERVER UPGRADE GUIDE

How to Migrate from Drupal Commerce to Magento

Map Intelligence Installation Guide

Manual Ftp Windows 7 Server Configuration Filezilla

Uploading a Submission

Setting Up the Development Environment

NetBeans Primer v8.0

SLI Learning Search Connect For Magento 2

DSS User Guide. End User Guide. - i -

servlets and Java JSP murach s (Chapter 2) TRAINING & REFERENCE Mike Murach & Associates Andrea Steelman Joel Murach

Bitnami MariaDB for Huawei Enterprise Cloud

Remote VPN Remote access for personal devices

Writing Servlets and JSPs p. 1 Writing a Servlet p. 1 Writing a JSP p. 7 Compiling a Servlet p. 10 Packaging Servlets and JSPs p.

Setting Up Resources in VMware Identity Manager (On Premises) Modified on 30 AUG 2017 VMware AirWatch 9.1.1

Bitnami MySQL for Huawei Enterprise Cloud

** If you are having issues logging into , Contact **

Internet Technologies. Lab Introduction

Installing Dolphin on Your PC

WINDOWS CONFIGURATION

Setting Up Resources in VMware Identity Manager

WebDAV. Overview. File Permissions and Management. Authentication Methods

AutoVue Integration SDK & Sample Integration for Filesys DMS

How to connect to the University of Exeter VPN service

Paperless Pipeline Agent Manual

Self Service Password Reset

Updating Hosted Customer Instances on the OnPoint Production Server By Peter Westphal

Troubleshooting Single Sign-On

FUSION REGISTRY COMMUNITY EDITION SETUP GUIDE VERSION 9. Setup Guide. This guide explains how to install and configure the Fusion Registry.

Troubleshooting Single Sign-On

Telnet & FTP. Department of Educational Multimedia Faculty of Education

MyLEAD Release V1.3 Installation Guide

Setting Up Resources in VMware Identity Manager. VMware Identity Manager 2.8

Portal User Guide. Best practice tips and shortcuts Icon Legend Informational notes about functions. Important warnings about a function

SharePoint Guide for Reviewers

Mobile Login extension User Manual

Dreamweaver CS6. Table of Contents. Setting up a site in Dreamweaver! 2. Templates! 3. Using a Template! 3. Save the template! 4. Views!

DocShuttle Dictator. by Bytescribe, Inc.

CSCI 201 Lab 1 Environment Setup

Guide to Using FileZilla

PDshop Installation Guide (For ASP.NET Editions)

After signing in, click on the grid icon and then click on Drive from the Google app menu.

Compliance Deputy Version 5.1 User Guide

Accessing Carolinas Healthcare System Resources Remotely

1. Configuring Azure and EBP for a simple demo

JDeveloper Downloading a Workspace for WebCenter Spaces Development

Installing WordPress CMS

How to migrate data from Dropbox to OneDrive on Mac

EUSurvey Installation Guide

HYPERION SYSTEM 9 BI+ GETTING STARTED GUIDE APPLICATION BUILDER J2EE RELEASE 9.2

USER MANUAL TABLE OF CONTENTS. Easy Site Maintenance. Version: 1.0.4

SO, ARE YOU READY? HERE WE GO:

Author - Ashfaque Ahmed

USER MANUAL TABLE OF CONTENTS. Advance Product File Upload. Version: 0.1.2

Table of Contents Introduction to the SAP Roambi migration process SystemRequirements Preparing to upgrade SAP Roambi ES

Installation Guide. For use with all.net versions of PDshop Revised: 12/29/17. PDshop.com / Copyright All Rights Reserved.

Then she types out her username and password and clicks on Sign In at the bottom.

Deployment Guide. 3.1 For Windows For Linux Docker image Windows Installation Installation...

Ftp Command Line Manual Windows 7zip

Microsoft OneDrive. How to login to OneDrive:

Transcription:

How to Publish Any NetBeans Web App (apps with Java Classes and/or database access) 1. OVERVIEW... 2 2. LOCATE YOUR NETBEANS PROJECT LOCALLY... 2 3. CONNECT TO CIS-LINUX2 USING SECURE FILE TRANSFER CLIENT (WINDOWS USERS)... 2 4. CONNECT TO CIS-LINUX2 USING CYBERDUCK (MAC USERS)... 2 5. PUBLISH YOUR WEB APPLICATION (WITH CLASSES)... 3 6. TEST A JSP PAGE (THAT USES JAVA CLASSES)... 3 7. TROUBLESHOOTING TOMCAT CANNOT FIND CLASSES... 4 8. TROUBLESHOOTING- RESOURCE NOT AVAILABLE... 5 9. TROUBLESHOOTING IF ALL ELSE FAILS... 5 Sally Kyvernitis, Temple University, Page 1

1. Overview In this document, you will learn how to use Secure File Transfer Client (Windows) or Cyberduck (MAC) to publish a web application that references java classes (and/or a database) 2. Locate Your NetBeans Project Locally If you are unsure where your project is: right click on the project name (from NetBeans Project pane) and select properties. You will probably find your files stored under your Documents\NetBeansProjects\ProjectName folder You must start with a Web Application that NetBeans has run locally without compiler errors. 3. Connect to cis-linux2 using Secure FTP Program a) Windows Users Run WinSCP and connect to cis-linux2.temple.edu Using your Tuportal Username and Password. b) Mac Users (CyberDuck) Run CyberDuck and connect to cis-linux2.temple.edu using your Tuportal Username and Password. Sally Kyvernitis, Temple University, Page 2

4. Publish Your Web Application (with Classes) To publish classes, this is how your files need to be arranged on the web server (see below). Note that the blue files/folders are organized the same in your project on your local machine as they need to be organized on the server. Note that the xml file is different: sun-web.xml contains settings for your local JSP software (glassfish), whereas web.xml contains settings for the server JSP software (tomcat). 1. Make sure that your local project contains ALL YOUR FUNCTIONALITY (all your source code) - what s out on the server should never be the primary copy of any source code. Then, delete whatever you currently have published on the Remote Web Server. 2. Drag the contents of your localproject\build\web folder up to your remote web root folder (this will publish all the blue files/folders). You do not need sun-web.xml but it won t hurt anything to publish it too. 3. Download copy of web.xml. Right click on the link below and do a "Save Link As" to your NetBeans Projects folder (under my docs). Save this since you will need it every time you publish in the future. http://cis-linux2.temple.edu/~sallyk/tutorials_jsp/web.xml 4. Copy web.xml from your NetBeans Projects folder and place it into the WEB-INF folder on the server. This file needs to be a sibling to folders classes and lib. Your Project (Local Machine) KyverProject [your local project folder] build web JSP pages and CSS files (build copy) pics (or image folder, build copy) WEB-INF (build copy) classes dbutils [folder/package] lib DbConn.class FormatUtils.class view [folder/package] CustomerVeiw.class mysql-connector.jar sun-web.xml Remote Web Server (cis-linux2.temple.edu) SP16_2308_tua12345 [your remote web root folder] JSP pages and CSS files pics or image folder WEB-INF classes dbutils [folder/package] lib DbConn.class FormatUtils.class view [folder/package] CustomerVeiw.class mysql-connector jar web.xml [download from my web site] 5. Test a JSP Page (that uses Java Classes) Test by entering your URL into a browser: http://cis-linux2.temple.edu:8080/sp15_2308_tua12345/display_using_classes.jsp Make sure to click on the browser s refresh button. Or if you think your browser is caching old pages, clear the browser s cache by doing Control-F5 (or cleaning out cookies etc from your browser settings). Sally Kyvernitis, Temple University, Page 3

6. Troubleshooting Tomcat Cannot Find Classes If you get an error message indicating it cannot resolve a package name or a class name, or it says your class name resolves to a package, it means that Tomcat is saying that it cannot find your class (in this example, the class it cannot find is named ValidationUtils ). To try to resolve the problem, you can Repeat the above process being more careful -- make sure you have copied the.class files (not.java files and they are in the correct folders. You can wait a bit longer when you do the copy/delete/wait/paste of web.xml on the server (after uploading the.class files. Sally Kyvernitis, Temple University, Page 4

7. Troubleshooting- Resource Not Available If you get a resource not available error or an image shows up as a little grey box, check that you did not forget to upload a jsp page, css file, javascript file, or image file that is being referenced. If you are sure the file (or other resource) is there, then check the permissions of the files and folders on the server. To check or change permissions, right click on the file and select Properties. All FILEs should have Permission Mode 664. Everyone can only read. You and your group can read and write. All FOLDERs should have Permission Mode 771. Everyone can execute but only you and your group can read/write/execute. 8. Troubleshooting If All Else Fails If all else fails and Tomcat is not recognizing your class files: Use the tutorial entitled Trouble Deploying your Web App. In this tutorial, you log into the cis-linux2 using secure telnet (from Secure Shell Client unix command prompt) and you expand a war file (a war file is like a zip file that contains java code). This usually does the trick. If you are unable to delete any of your own files, email me I have to ask the IT admin staff to reset the file permissions. If you are still unable to publish your application, email me and I will help you. Sally Kyvernitis, Temple University, Page 5