Creating Adjudicators in a WAR Computer Science Innovations, LLC.

Slides:



Advertisements
Similar presentations
MY NCBI (module 4.5). MODULE 4.5 PubMed/How to Use MY NCBI Instructions - This part of the: course is a PowerPoint demonstration intended to introduce.
Advertisements

Struts Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
General Operation and Facts As of 3/24/2014. Virtual Desktop 1. What is a Virtual Desktop? 2. Why VDI? 3. Installing the Virtual Desktop 4. Accessing.
Once download completes, click “Open Folder” Uncheck the box “Close this dialog box when download completes” Save the file in a location easy to find.
STEPS TO DOWNLOAD THE SOFTWARE EXE’S FROM WEBSITE.
T ESTING WITH J UNIT IN E CLIPSE Farzana Rahman. I NTRODUCTION The class that you will want to test is created first so that Eclipse will be able to find.
Members Only & Login Modules Members Only works with the Login module to provide password protection to Web pages and files. Login Groups may be created.
Site Production Installation. Navigate to location of the install package Important – Launch the e-ISuite Installer using your agency’s install protocol.
WEB2P security Java web application security Dr Jim Briggs.
Starting with Gridsphere Albert Einstein Institute Gridsphere Installation.
Windows Software Installation Tutorial GEFSOC Soil Carbon Modeling System Mark Easter, Kendrick Killian, Ting Feng, and Keith Paustian Natural Resource.
CS 2511 Fall  Windows:  Start->Specialized Academic Software- >Programming Languages->NetBeans->NetBeans IDE x.y.z  where x.y.z is a version.
Building and Deploying a Simple Web Application. Tomcat and JSP Tomcat is an application server, commonly used to host JSP applications Applications are.
How to Configure Tomcat with Intellij By: Navjot S.Sandhu SW410 Enterprise Java Prof. Lyon.
SERVLETS.
Themes & Layout Tutorial Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written.
JSP and Servlets Lecture notes by Theodoros Anagnostopoulos.
Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql.
Servlets Environment Setup. Agenda:  Setting up Java Development Kit  Setting up Web Server: Tomcat  Setting up CLASSPATH.
Copyright © 2012 Accenture All Rights Reserved.Copyright © 2012 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
Adding Audio to PowerPoint Presentations Title V Web 2.0 Technology.
Copyright 2000 eMation SECURITY - Controlling Data Access with
Apache + Tomcat. Apache + Tomcat Download mod_webapp.so:
CS441 CURRENT TOPICS IN PROGRAMMING LANGUAGES LECTURE 5_1 George Koutsogiannakis/ Summer
AN OVERVIEW OF SERVLET TECHNOLOGY SERVER SETUP AND CONFIGURATION WEB APPLICATION STRUCTURE BASIC SERVLET EXAMPLE Java Servlets - Compiled By Nitin Pai.
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.
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.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
Tomcat Setup BCIS 3680 Enterprise Programming. Getting Web Apps to Work  Verify that Tomcat works.  Understand how context works.  Create folders/files.
Basic Setup Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
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)
Cloud Computing Computer Science Innovations, LLC.
CPSC1301 Computer Science 1 Overview of Dr. Java.
Java Servlets Lec 27. Creating a Simple Web Application in Tomcat.
Dr. Mustafa Cem Kasapbaşı Security in ASP.NET. Determining Security Requirements Restricted File Types.
Welcome To Eclipse. Basic Concepts Workspace – directory where your projects are stored –Projects grouping of related works –Resources generic term to.
Creating a Web Site Using 000webhost.com The 000webhost.com Site You will be required to create an account in order to use their host computer 000webhost.com.
Setting Up Eclipse. What is Eclipse? Eclipse is a free, downloadable software that allows us to create, compile, and run JAVA programs.
Topic Java EE installation (Eclipse, glassfish, etc.) Eclipse configuration for EE Creating a Java Web Dynamic Project Creating your first servlet.
GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)
Installing Repast in the Eclipse IDE Charlie Gieseler 6/28/04.
Chapter 16: Networking F Client/Server Communications F Serving Multiple Clients F Applet Clients F Viewing HTML Pages F Retrieving Files from Web Servers.
20-Nov-15introServlets.ppt Intro to servlets. 20-Nov-15introServlets.ppt typical web page – source Hello Hello.
The Module Road Map Assignment 1 Road Map We will look at… Internet / World Wide Web Aspects of their operation The role of clients and servers ASPX.
JSP Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Installing and Configuring Tomcat SSE. Downloading Tomcat l Download url: 4.0/release/v4.1.24/bin/
JSP Server Integrated with Oracle8i Project2, CMSC691X Summer02 Ching-li Peng Ying Zhang.
NERDug 2009 Session WebAdvisor 101: From Soup to Nuts! 7/30/2009 at 2:00pm Emerald Room Jeff Butera Hampshire College
15 Copyright © 2004, Oracle. All rights reserved. Adding JAAS Security to the Client.
Installing RandoNode Starter Kit OPEN Development Conference September 17, 2008 Kasi Perumal Consultant.
Chapter 3 Servlet Basics. Contents A.Installing Eclipse WTP and configuring Tomcat B.Prime Number Problem C.Multiplication Table Problem.
CPSC 372 John D. McGregor Module 6 Session 4 Sonar.
Software Design– Unit Testing SIMPLE PRIMER ON Junit Junit is a free simple library that is added to Eclipse to all automated unit tests. The first step,
If you don’t have Google Earth downloaded already, you can go to to get it.
Your EC2 Instance. How to Connect to your EC2 Instance?
Expense Tracking System Developed by: Ardhita Maharindra Muskan Regmi Nir Gurung Sudeep Karki Tikaprem Gurung Date: December 05 th, 2008.
Tomcat Setup BCIS 3680 Enterprise Programming. One-Click Tomcat Setup 2  This semester we’ll try to set up Tomcat with a PowerShell script.  Preparation.
INTERNET APPLICATIONS CPIT405 Install a web server and analyze packets.
Installing git In Linux: sudo apt-get install git In Windows: download it from run the setuphttp://git-scm.com/download/win.
Setting and Upload Products
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Unit 7 Learning Objectives
4166 Review.
Dynamic Web Page A dynamic web page is a kind of web page that has been prepared with fresh information (content and/or layout), for each individual viewing.
Installing and running the local check projects in Eclipse
WI / XA Integration with NetScaler Gateway: How it works
Lienhard School of Nursing Information Session
Objectives In this lesson you will learn about: Need for servlets
Workshop for Programming And Systems Management Teachers
Presentation transcript:

Creating Adjudicators in a WAR Computer Science Innovations, LLC

Setup Make sure /cloud project is downloaded Start up eclipse and open it in cloud directory (something like /home/scott/cloud) ssh -X to be able to open X sessions if doing this on [Screenshot]

Setup (Eclipse) Close front window and right click on left to open a New Project [Screenshot]

Setup (Eclipse) Title the project cloud and hit Finish [Screenshot]

Setup (Eclipse) Screen should look like below [Screenshot]

Setup (Eclipse) Click Yes to include java perspective [Screenshot]

Setup (Eclipse) Go to util/src/cloud/LoadRestfulWebService.java [Screenshot]

LoadRestfulWebService Explained Typical protocols – Http, https, REST, JSON, 1-way SSL (https), 2-way SSL (https with identity assertion) LoadRestfulWebService – Uses RESTful service to load users, groups, and roles – Calls cloud application and loads data into SOLR

LoadRestfulWebService Explained Main() adds roles, groups, and users AddUser(), AddRoles(), AddGroups() – Gets properties from properties file – Gets URI information to fill in user data Category is 'table name' – Sends data to servlet that writes to SOLR GetProperties() – Gets data from load.properties – Files are either on the web or off the classpath, load.properties is off classpath

JSONUpdateServlet Go to cloud- war/src/java/cloud/servlets/JSONUpdateServlet.java [Screenshot]

JSONUpdateServlet Takes data from URI that is sent RESTfully and writes it to SOLR WriteToSOLR() already exists and should be used to write to SOLR

Where to Start? Cloud-functional-tests/src/TestAdd.java [Screenshot]

TestAdd.java Test program that goes to SOLR, makes a request – JUNIT test uses asserts to see if the test passes or fails. If assert line is true, test works, if not, then test does not work.

Seeing if cloud works Go to cloud/cloud/solr.solr.home/collection1/data and do an rm -rf * Go to terminal, start tomcat with 'st' In other window, cd to /cloud/cloud and type: ant deploy [Screenshot]

Seeing if cloud works In cloud/cloud do: ant run-clear-index ant run-load-web-service In browser go to: localhost:8080/cloud/select?q=*:*&rows=100 [Screenshot]

Cloud Project Continued You have to add a login module to cloud – Already added in for you Files to take from adjudicator_software folder in content.scottstreit.com/compsec – Jaas.config goes in tomcat config directory – RolePrincipal.java – SolrLoginModule.java It gets called in web.xml – There are security constraints and login- configs in web.xml

SolrLoginModule SolrLoginModule.java It gets called in web.xml – There are security constraints and login- configs in web.xml – BASIC for login-config

Cloud Project Continued You have to add a login module to cloud – Already added in for you Files to take from adjudicator_software folder in content.scottstreit.com/compsec – Jaas.config goes in tomcat config directory – RolePrincipal.java – SolrLoginModule.java It gets called in web.xml – There are security constraints and login- configs in web.xml

JUNIT Test Attempt In cloud/cloud run the following: ant run-tests [Screenshot]

JUNIT Test Attempt Go to /cloud/cloud/cloud-functional- tests/classes and open the TestAdd.xml file inside the folder [Screenshot]