Creating Custom Web Pages for cagrid Services

Size: px
Start display at page:

Download "Creating Custom Web Pages for cagrid Services"

Transcription

1 Creating Custom Web Pages for cagrid Services Creating Custom Web Pages for cagrid Services Contents Overview Changing the Default Behavior Subclassing the AXIS Servlet Installing and Configuring the Custom Servlet Class Writing an Ant Task for Deployment Overview When you point a web browser at a cagrid web service, the default response provided by AXIS 1.2 is: Hi there, this is an AXIS service! Perhaps there will be a form for invoking the service here... Overriding this behavior to actually provide the suggested form can be complicated. However overriding this in a way that either changes the message or redirects the browser to a different URL is relatively simple. The rest of this page is a description of how to change the message or redirect the browser. Changing the Default Behavior Subclassing the AXIS Servlet By default cagrid services use the AXIS servlet class org.globus.wsrf.container.axisservlet. When an instance of this servlet class receives an http GET from your browser, it calls its reportserviceinfo method which generates the "Hi there,..." response. The reportserviceinfo method has protected scope, so you can override it to have different behavior. The details of how to do this are presented below through an example. In this example, we will create a subclass of org.globus.wsrf.container.axisservlet whose reportserviceinfo method redirects the browser to a URL that is configured in a properties file. If it cannot get the URL from the properties file, it will send a message to the browser telling the user that the redirection is misconfigured. We name the subclass org.cagrid.indexservice.indexaxisservlet. Here is the beginning of its source code:

2 package org.cagrid.indexservice; java.io.bufferedinputstream; java.io.file; java.io.fileinputstream; java.io.ioexception; java.io.inputstream; java.io.printwriter; java.util.properties; javax.servlet.http.httpservletresponse; org.apache.axis.handlers.soap.soapservice; org.globus.wsrf.config.containerconfig; org.globus.wsrf.container.axisservlet; All but the last group of s are from the standard Java API: org.apache.axis.handlers.soap.soapservice is needed to declare one of the arguments for the reportserviceinfo method. We will not need to make any other use of it. org.globus.wsrf.config.containerconfig is a class used to describe the configuration of wsrf, the layer of software that sits between the web container (tomcat, JBoss,...) and the grid service. org.globus.wsrf.container.axisservlet is the class we are subclassing. Here is the actual override of the reportserviceinfo method: * Override the usual servlet class to redirect GETs. * mgrand public class IndexAxisServlet extends AxisServlet { * Hash code for serialization private static final long serialversionuid = L; private static Properties redirectionproperties = protected void reportserviceinfo(httpservletresponse response, PrintWriter writer, SOAPService service, String servicename) { try { Properties properties = getredirectionproperties(); String redirectionurl = properties.getproperty( "redirectionurl"); if (redirectionurl == null) { throw new IOException(); response.sendredirect(redirectionurl); catch (IOException e) { // There should be some logging here writer.write( "Redirection is enabled, but not properly configured." ); The above code gets a URL to redirect the browser to from a Properties object and then calls response.sendredirect to send the redirection to the browser. If there is an error in getting thr URL or sending the redirection, the fallback strategy is to write some explanatory text to the browser. The rest of the IndexAxisServlet appears below.

3 * Get the properties object for the configuration of the redirection. * return the properties object throws IOException * if there is a problem. private Properties getredirectionproperties() throws IOException { synchronized ( this.getclass()) { if (redirectionproperties == null) { String basedirectorypath = ContainerConfig.getBaseDirectory(); File etcdirectory = new File(baseDirectoryPath, "etc"); File redirectionpropertiesfile = new File(etcDirectory, "redirection.properties"); FileInputStream fis = new FileInputStream(redirectionPropertiesFile); InputStream instream = new BufferedInputStream(fis); try { redirectionproperties = new Properties(); redirectionproperties.load(instream); finally { instream.close(); return redirectionproperties; The getredirectionproperties method in the above code returns a Properties object that is loaded with the contents of the file redirection.properties in the deployed service's WEB-INF/etc directory. The location of this and other configuration details are described in the next section of this page. Installing and Configuring the Custom Servlet Class Under the previous section of this page, we described how to write a class that will override a grid service's default "Hi there..." behavior. In this section, we describe what need to be done to install the class into a grid service. In the next section we show how to automate that installation steps as an ant script. There are three things that the installation needs accomplish: Put the new class where it will be on the grid service's class path. Arrange for the new class to be used in place of the usual servlet class. Put the redirection.properties file where the new class expects to find it. All of the installation steps involve files that are or will be under a particular directory in the gird service's container. We will refer to this directory as DEPLOY_DIR. If you are using tomcat, then DEPLOY_DIR is $CATALINA_HOME/webapps/wsrf/WEB-INF. If you are using JBoss, then DEPLOY_DIR is $JBOSS_HOME/server/default/deploy/WEB-INF. To put the new class on the service's class path, we copy it to a directory that is based on the name of the package it belongs to. If the new class belongs to a package named org.cagrid.indexservice then copy it to DEPLOY_DIR/classes/org/cagrid/indexService To arrange for the new class to be used in place of the usual servlet class, edit the file DEPLOY_DIR/web.xml. It contains an xml element that looks like <servlet-class>org.globus.wsrf.container.axisservlet</servlet-class> This xml element identifies the servlet class to be used for the web service. If the fully qualified name of the new class is org.cagrid.indexservice.indexaxisservlet, then we need to change the xml element to look like <servlet-class>org.cagrid.indexservice.indexaxisservlet</servlet-class>

4 We need to create a redirection.properties file that contains a redirectionurl property whose value is the URL to redirect to. This would look like redirectionurl= We then copy this properties file to DEPLOY_DIR/etc/redirection.properties When all of these things are done, the new custom servlet class is installed and configured. It is strongly recommended that you create an ant script to automate these steps. An ant script to perform this automation is described in the next section of this page. Writing an Ant Task for Deployment In this section of this page we present a self-contained ant script that is called from your main ant script to install and configure a customized servlet class for redirection of browsers. We assume that your grid service has the standard ant xml files generated by introduce. We also assume that deploy-redirect.xml is the name of the new self-contained script that installs and configures the redirection. Before we look at at contents of redirection.properties, we take a look at the changes you should make to the dev-build-deploy.xml to integrate it with deploy-redirect.xml. Add tasks like the ones shown to the predeploytomcat and predeployjboss targets: <!-- Pre Deploy JBoss --> <target name= "predeployjboss" > <fail unless= "env.jboss_home" > Cannot deploy to JBOSS unless environment variable JBOSS_HOME is defined <ant antfile= "${basedir/deploy-redirect.xml" target= "deployredirect" > <property name="deploy.dir" value= "${env.jboss_home/server/default/deploy/wsrf.war/web-inf"/> </ant> <!-- Pre Deploy Tomcat --> <target name= "predeploytomcat" > <fail unless= "env.catalina_home" > Cannot deploy to tomcat unless environment variable CATALINA_HOME is defined <ant antfile= "${basedir/deploy-redirect.xml" target= "deployredirect" > <property name= "deploy.dir" value= "${env.catalina_home/webapps/wsrf/web-inf"/> </ant> Here is the content of deploy-redirect.xml:

5 <?xml version= "1.0"?> <project name= "deploy-utilities file" basedir= "." default= "deployredirect" > <fail unless="deploy.dir" message= "This ant script is supposed to be called from build.xml" /> <taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.xmltask" classpath= "${basedir/ant/xmltask.jar" /> <!-- ================================= target: deployredirect ================================= --> <target name= "deployredirect" description= "Deploy code to handle redirection to the monitoring service" > <property name= "class.dir" location= "${deploy.dir/classes"/> <property name="indexservice.dir" location= "${class.dir/org/cagrid/indexservice"/> <property name= "etc.dir" location= "${deploy.dir/etc"/> <property name= "web.xml" location= "${deploy.dir/web.xml"/> <property name= "web.xml.original" location= "${web.xml.original"/> <property name="redirection.properties.dest" location= "${etc.dir/redirection.properties"/> <property name="redirection.properties.src" location= "${basedir/redirection.properties/" /> <!-- Verify that the redirection properties file exists and defines the required property --> <available property="redirection.properties.exists" file= "${redirection.properties.src" type= "file" /> <fail unless= "redirection.properties.exists" > Redirection properties file does not exist. Please create ${redirection.properties.src <property file= "${redirection.properties.src" prefix= "xxyyzz321"/> <fail unless= "xxyyzz321.redirectionurl" > Property file ${redirection.properties.src must define a property named redirectionurl whose value is the URL that GET request should be redirected to. <!-- copy the class file for redirection to the container --> <mkdir dir= "${indexservice.dir" /> <copy file="${build.dest/org/cagrid/indexservice/indexaxisservlet.class" todir= "${indexservice.dir" /> <!-- copy the redirection configuration file --> <copy file="${redirection.properties.src" tofile= "${redirection.properties.dest"/> <!-- Edit wsrf web.xml to use the redirecting version of the servlet class --> <copy file= "${web.xml" tofile= "${web.xml.original" overwrite= "no"/> <xmltask source="${web.xml.original" dest= "${web.xml" failwithoutmatch= "true" indent= "yes" > <replace path="/web-app/servlet/servlet-class/text()" withtext= "org.cagrid.indexservice.indexaxisservlet" /> </xmltask> </project>

www.virtualians.pk CS506 Web Design and Development Solved Online Quiz No. 01 www.virtualians.pk

www.virtualians.pk CS506 Web Design and Development Solved Online Quiz No. 01 www.virtualians.pk CS506 Web Design and Development Solved Online Quiz No. 01 Which of the following is a general purpose container? JFrame Dialog JPanel JApplet Which of the following package needs to be import while handling

More information

Application Notes for Packaging and Deploying Avaya Communications Process Manager Sample SDK Web Application on a JBoss Application Server Issue 1.

Application Notes for Packaging and Deploying Avaya Communications Process Manager Sample SDK Web Application on a JBoss Application Server Issue 1. Avaya Solution & Interoperability Test Lab Application Notes for Packaging and Deploying Avaya Communications Process Manager Sample SDK Web Application on a JBoss Application Server Issue 1.0 Abstract

More information

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

Programming on the Web(CSC309F) Tutorial: Servlets && Tomcat TA:Wael Aboelsaadat Programming on the Web(CSC309F) Tutorial: Servlets && Tomcat TA:Wael Aboelsaadat Acknowledgments : This tutorial is based on a series of articles written by James Goodwill about Tomcat && Servlets. 1 Tomcat

More information

Continuous Integration Part 2

Continuous Integration Part 2 1 Continuous Integration Part 2 This blog post is a follow up to my blog post Continuous Integration (CI), in which I described how to execute test cases in Code Tester (CT) in a CI environment. What I

More information

Application Security

Application Security 2009 Marty Hall Declarative Web Application Security Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/msajsp.html Customized Java EE Training: http://courses.coreservlets.com/

More information

Implementing a Web Service Client using Java

Implementing a Web Service Client using Java Implementing a Web Service Client using Java Requirements This guide is based on implementing a Java Client using JAX-WS that comes with Java Web Services Developer Pack version 2.0 (JWSDP). This can be

More information

2. Follow the installation directions and install the server on ccc

2. Follow the installation directions and install the server on ccc Installing a Web Server 1. Install a sample web server, which supports Servlets/JSPs. A light weight web server is Apache Tomcat server. You can get the server from http://tomcat.apache.org/ 2. Follow

More information

D06 PROGRAMMING with JAVA

D06 PROGRAMMING with JAVA Cicles Formatius de Grau Superior Desenvolupament d Aplicacions Informàtiques D06 PROGRAMMING with JAVA Ch16 Files and Streams PowerPoint presentation, created by Angel A. Juan - ajuanp(@)gmail.com, for

More information

BAPI. Business Application Programming Interface. Compiled by Y R Nagesh 1

BAPI. Business Application Programming Interface. Compiled by Y R Nagesh 1 BAPI Business Application Programming Interface Compiled by Y R Nagesh 1 What is BAPI A Business Application Programming Interface is a precisely defined interface providing access process and data in

More information

White Paper March 1, 2005. Integrating AR System with Single Sign-On (SSO) authentication systems

White Paper March 1, 2005. Integrating AR System with Single Sign-On (SSO) authentication systems White Paper March 1, 2005 Integrating AR System with Single Sign-On (SSO) authentication systems Copyright 2005 BMC Software, Inc. All rights reserved. BMC, the BMC logo, all other BMC product or service

More information

Hello World RESTful web service tutorial

Hello World RESTful web service tutorial Hello World RESTful web service tutorial Balázs Simon (sbalazs@iit.bme.hu), BME IIT, 2015 1 Introduction This document describes how to create a Hello World RESTful web service in Eclipse using JAX-RS

More information

ArpViewer Manual Version 1.0.6 Datum 30.9.2007

ArpViewer Manual Version 1.0.6 Datum 30.9.2007 SWITCHaai ArpViewer Manual Version 1.0.6 Datum 30.9.2007 AAI C.Witzig Content 1. Introduction...3 2. Functional Description...3 3. Description of the Components...3 3.1. Arpfilter...3 3.2. Controller...4

More information

Web Application Programmer's Guide

Web Application Programmer's Guide Web Application Programmer's Guide JOnAS Team ( Florent BENOIT) - March 2009 - Copyright OW2 consortium 2008-2009 This work is licensed under the Creative Commons Attribution-ShareAlike License. To view

More information

CI/CD Cheatsheet. Lars Fabian Tuchel Date: 18.March 2014 DOC:

CI/CD Cheatsheet. Lars Fabian Tuchel Date: 18.March 2014 DOC: CI/CD Cheatsheet Title: CI/CD Cheatsheet Author: Lars Fabian Tuchel Date: 18.March 2014 DOC: Table of Contents 1. Build Pipeline Chart 5 2. Build. 6 2.1. Xpert.ivy. 6 2.1.1. Maven Settings 6 2.1.2. Project

More information

Web Applications. Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/msajsp.html

Web Applications. Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/msajsp.html 2009 Marty Hall Using and Deploying Web Applications Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/msajsp.html Customized Java EE Training: http://courses.coreservlets.com/

More information

Java 7 Recipes. Freddy Guime. vk» (,\['«** g!p#« Carl Dea. Josh Juneau. John O'Conner

Java 7 Recipes. Freddy Guime. vk» (,\['«** g!p#« Carl Dea. Josh Juneau. John O'Conner 1 vk» Java 7 Recipes (,\['«** - < g!p#«josh Juneau Carl Dea Freddy Guime John O'Conner Contents J Contents at a Glance About the Authors About the Technical Reviewers Acknowledgments Introduction iv xvi

More information

Server Setup and Configuration

Server Setup and Configuration Server Setup and Configuration 1 Agenda Configuring the server Configuring your development environment Testing the setup Basic server HTML/JSP Servlets 2 1 Server Setup and Configuration 1. Download and

More information

Server-Side Web Development JSP. Today. Web Servers. Static HTML Directives. Actions Comments Tag Libraries Implicit Objects. Apache.

Server-Side Web Development JSP. Today. Web Servers. Static HTML Directives. Actions Comments Tag Libraries Implicit Objects. Apache. 1 Pages () Lecture #4 2007 Pages () 2 Pages () 3 Pages () Serves resources via HTTP Can be anything that serves data via HTTP Usually a dedicated machine running web server software Can contain modules

More information

How To Understand The Architecture Of Java 2Ee, J2Ee, And J2E (Java) In A Wordpress Blog Post

How To Understand The Architecture Of Java 2Ee, J2Ee, And J2E (Java) In A Wordpress Blog Post Understanding Architecture and Framework of J2EE using Web Application Devadrita Dey Sarkar,Anavi jaiswal, Ankur Saxena Amity University,UTTAR PRADESH Sector-125, Noida, UP-201303, India Abstract: This

More information

JobScheduler Web Services Executing JobScheduler commands

JobScheduler Web Services Executing JobScheduler commands JobScheduler - Job Execution and Scheduling System JobScheduler Web Services Executing JobScheduler commands Technical Reference March 2015 March 2015 JobScheduler Web Services page: 1 JobScheduler Web

More information

Penetration from application down to OS

Penetration from application down to OS April 8, 2009 Penetration from application down to OS Getting OS access using IBM Websphere Application Server vulnerabilities Digitаl Security Research Group (DSecRG) Stanislav Svistunovich research@dsecrg.com

More information

ACI Commerce Gateway Hosted Payment Page Guide

ACI Commerce Gateway Hosted Payment Page Guide ACI Commerce Gateway Hosted Payment Page Guide Inc. All rights reserved. All information contained in this document is confidential and proprietary to ACI Worldwide Inc. This material is a trade secret

More information

Creating Java EE Applications and Servlets with IntelliJ IDEA

Creating Java EE Applications and Servlets with IntelliJ IDEA Creating Java EE Applications and Servlets with IntelliJ IDEA In this tutorial you will: 1. Create IntelliJ IDEA project for Java EE application 2. Create Servlet 3. Deploy the application to JBoss server

More information

Developing a Web Server Platform with SAPI Support for AJAX RPC using JSON

Developing a Web Server Platform with SAPI Support for AJAX RPC using JSON Revista Informatica Economică, nr. 4 (44)/2007 45 Developing a Web Server Platform with SAPI Support for AJAX RPC using JSON Iulian ILIE-NEMEDI, Bucharest, Romania, inemedi@ie.ase.ro Writing a custom web

More information

Implementing SQI via SOAP Web-Services

Implementing SQI via SOAP Web-Services IST-2001-37264 Creating a Smart Space for Learning Implementing SQI via SOAP Web-Services Date: 10-02-2004 Version: 0.7 Editor(s): Stefan Brantner, Thomas Zillinger (BearingPoint) 1 1 Java Archive for

More information

Module 13 Implementing Java EE Web Services with JAX-WS

Module 13 Implementing Java EE Web Services with JAX-WS Module 13 Implementing Java EE Web Services with JAX-WS Objectives Describe endpoints supported by Java EE 5 Describe the requirements of the JAX-WS servlet endpoints Describe the requirements of JAX-WS

More information

11.1 Web Server Operation

11.1 Web Server Operation 11.1 Web Server Operation - Client-server systems - When two computers are connected, either could be the client - The client initiates the communication, which the server accepts - Generally, clients

More information

JWIG Yet Another Framework for Maintainable and Secure Web Applications

JWIG Yet Another Framework for Maintainable and Secure Web Applications JWIG Yet Another Framework for Maintainable and Secure Web Applications Anders Møller Mathias Schwarz Aarhus University Brief history - Precursers 1999: Powerful template system Form field validation,

More information

CORISECIO. Quick Installation Guide Open XML Gateway

CORISECIO. Quick Installation Guide Open XML Gateway Quick Installation Guide Open XML Gateway Content 1 FIRST STEPS... 3 2 INSTALLATION... 3 3 ADMINCONSOLE... 4 3.1 Initial Login... 4 3.1.1 Derby Configuration... 5 3.1.2 Password Change... 6 3.2 Logout...

More information

Creating a Simple, Multithreaded Chat System with Java

Creating a Simple, Multithreaded Chat System with Java Creating a Simple, Multithreaded Chat System with Java Introduction by George Crawford III In this edition of Objective Viewpoint, you will learn how to develop a simple chat system. The program will demonstrate

More information

Recommended readings. Lecture 11 - Securing Web. Applications. Security. Declarative Security

Recommended readings. Lecture 11 - Securing Web. Applications. Security. Declarative Security Recommended readings Lecture 11 Securing Web http://www.theserverside.com/tt/articles/content/tomcats ecurity/tomcatsecurity.pdf http://localhost:8080/tomcat-docs/security-managerhowto.html http://courses.coreservlets.com/course-

More information

Overview of Web Services API

Overview of Web Services API 1 CHAPTER The Cisco IP Interoperability and Collaboration System (IPICS) 4.5(x) application programming interface (API) provides a web services-based API that enables the management and control of various

More information

JBoss Portlet Container. User Guide. Release 2.0

JBoss Portlet Container. User Guide. Release 2.0 JBoss Portlet Container User Guide Release 2.0 1. Introduction.. 1 1.1. Motivation.. 1 1.2. Audience 1 1.3. Simple Portal: showcasing JBoss Portlet Container.. 1 1.4. Resources. 1 2. Installation. 3 2.1.

More information

ACM Crossroads Student Magazine The ACM's First Electronic Publication

ACM Crossroads Student Magazine The ACM's First Electronic Publication Page 1 of 8 ACM Crossroads Student Magazine The ACM's First Electronic Publication Crossroads Home Join the ACM! Search Crossroads crossroads@acm.org ACM / Crossroads / Columns / Connector / An Introduction

More information

IUCLID 5 Guidance and Support

IUCLID 5 Guidance and Support IUCLID 5 Guidance and Support Web Service Installation Guide July 2012 v 2.4 July 2012 1/11 Table of Contents 1. Introduction 3 1.1. Important notes 3 1.2. Prerequisites 3 1.3. Installation files 4 2.

More information

Adobe Systems Incorporated

Adobe Systems Incorporated Adobe Connect 9.2 Page 1 of 8 Adobe Systems Incorporated Adobe Connect 9.2 Hosted Solution June 20 th 2014 Adobe Connect 9.2 Page 2 of 8 Table of Contents Engagement Overview... 3 About Connect 9.2...

More information

Intellicus Single Sign-on

Intellicus Single Sign-on Intellicus Single Sign-on Intellicus Enterprise Reporting and BI Platform Intellicus Technologies info@intellicus.com www.intellicus.com Copyright 2010 Intellicus Technologies This document and its content

More information

Title Page. Hosted Payment Page Guide ACI Commerce Gateway

Title Page. Hosted Payment Page Guide ACI Commerce Gateway Title Page Hosted Payment Page Guide ACI Commerce Gateway Copyright Information 2008 by All rights reserved. All information contained in this documentation, as well as the software described in it, is

More information

Tutorial 5: Developing Java applications

Tutorial 5: Developing Java applications Tutorial 5: Developing Java applications p. 1 Tutorial 5: Developing Java applications Georgios Gousios gousiosg@aueb.gr Department of Management Science and Technology Athens University of Economics and

More information

Applets, RMI, JDBC Exam Review

Applets, RMI, JDBC Exam Review Applets, RMI, JDBC Exam Review Sara Sprenkle Announcements Quiz today Project 2 due tomorrow Exam on Thursday Web programming CPM and servlets vs JSPs Sara Sprenkle - CISC370 2 1 Division of Labor Java

More information

KonaKart Portlet Installation for Liferay. 6 th February 2015. DS Data Systems (UK) Ltd., 9 Little Meadow Loughton, Milton Keynes Bucks MK5 8EH UK

KonaKart Portlet Installation for Liferay. 6 th February 2015. DS Data Systems (UK) Ltd., 9 Little Meadow Loughton, Milton Keynes Bucks MK5 8EH UK KonaKart Portlet Installation for Liferay 6 th February 2015 DS Data Systems (UK) Ltd., 9 Little Meadow Loughton, Milton Keynes Bucks MK5 8EH UK KonaKart Portlets Portlets can be created for both the store-front

More information

In this chapter, we lay the foundation for all our further discussions. We start

In this chapter, we lay the foundation for all our further discussions. We start 01 Struts.qxd 7/30/02 10:23 PM Page 1 CHAPTER 1 Introducing the Jakarta Struts Project and Its Supporting Components In this chapter, we lay the foundation for all our further discussions. We start by

More information

A Sample OFBiz application implementing remote access via RMI and SOAP Table of contents

A Sample OFBiz application implementing remote access via RMI and SOAP Table of contents A Sample OFBiz application implementing remote access via RMI and SOAP Table of contents 1 About this document... 2 2 Introduction... 2 3 Defining the data model... 2 4 Populating the database tables with

More information

IBM Tivoli Workload Scheduler Integration Workbench V8.6.: How to customize your automation environment by creating a custom Job Type plug-in

IBM Tivoli Workload Scheduler Integration Workbench V8.6.: How to customize your automation environment by creating a custom Job Type plug-in IBM Tivoli Workload Scheduler Integration Workbench V8.6.: How to customize your automation environment by creating a custom Job Type plug-in Author(s): Marco Ganci Abstract This document describes how

More information

Multiple vulnerabilities in Apache Foundation Struts 2 framework. Csaba Barta and László Tóth

Multiple vulnerabilities in Apache Foundation Struts 2 framework. Csaba Barta and László Tóth Multiple vulnerabilities in Apache Foundation Struts 2 framework Csaba Barta and László Tóth 12. June 2008 Content Content... 2 Summary... 3 Directory traversal vulnerability in static content serving...

More information

T320 E-business technologies: foundations and practice

T320 E-business technologies: foundations and practice T320 E-business technologies: foundations and practice Block 3 Part 2 Activity 2: Generating a client from WSDL Prepared for the course team by Neil Simpkins Introduction 1 WSDL for client access 2 Static

More information

Arjun V. Bala Page 20

Arjun V. Bala Page 20 12) Explain Servlet life cycle & importance of context object. (May-13,Jan-13,Jun-12,Nov-11) Servlet Life Cycle: Servlets follow a three-phase life cycle, namely initialization, service, and destruction.

More information

Keycloak SAML Client Adapter Reference Guide

Keycloak SAML Client Adapter Reference Guide Keycloak SAML Client Adapter Reference Guide SAML 2.0 Client Adapters 1.7.0.Final Preface... v 1. Overview... 1 2. General Adapter Config... 3 2.1. SP Element... 4 2.2. SP Keys and Key elements... 5 2.2.1.

More information

Java Web Services SDK

Java Web Services SDK Java Web Services SDK Version 1.5.1 September 2005 This manual and accompanying electronic media are proprietary products of Optimal Payments Inc. They are to be used only by licensed users of the product.

More information

Web Service Development Using CXF. - Praveen Kumar Jayaram

Web Service Development Using CXF. - Praveen Kumar Jayaram Web Service Development Using CXF - Praveen Kumar Jayaram Introduction to WS Web Service define a standard way of integrating systems using XML, SOAP, WSDL and UDDI open standards over an internet protocol

More information

JMETER - MONITOR TEST PLAN

JMETER - MONITOR TEST PLAN http://www.tutorialspoint.com JMETER - MONITOR TEST PLAN Copyright tutorialspoint.com In this chapter, we will discuss how to create a Test Plan using JMeter to monitor webservers. The uses of monitor

More information

PA165 - Lab session - Web Presentation Layer

PA165 - Lab session - Web Presentation Layer PA165 - Lab session - Web Presentation Layer Author: Martin Kuba Goal Experiment with basic building blocks of Java server side web technology servlets, filters, context listeners,

More information

Configure a SOAScheduler for a composite in SOA Suite 11g. By Robert Baumgartner, Senior Solution Architect ORACLE

Configure a SOAScheduler for a composite in SOA Suite 11g. By Robert Baumgartner, Senior Solution Architect ORACLE Configure a SOAScheduler for a composite in SOA Suite 11g By Robert Baumgartner, Senior Solution Architect ORACLE November 2010 Scheduler for the Oracle SOA Suite 11g: SOAScheduler Page 1 Prerequisite

More information

Development. with NetBeans 5.0. A Quick Start in Basic Web and Struts Applications. Geertjan Wielenga

Development. with NetBeans 5.0. A Quick Start in Basic Web and Struts Applications. Geertjan Wielenga Web Development with NetBeans 5.0 Quick Start in Basic Web and Struts pplications Geertjan Wielenga Web Development with NetBeans 5 This tutorial takes you through the basics of using NetBeans IDE 5.0

More information

Enabling Grids for E-sciencE. Web services tools. David Fergusson. www.eu-egee.org INFSO-RI-508833

Enabling Grids for E-sciencE. Web services tools. David Fergusson. www.eu-egee.org INFSO-RI-508833 Web services tools David Fergusson www.eu-egee.org Web services tools Java based ANT JWSDP/J2EE/Java Beans Axis Tomcat C based.net gsoap Perl based SOAP::Lite SOAP::Lite Collection of Perl modules which

More information

Java EE Introduction, Content. Component Architecture: Why and How Java EE: Enterprise Java

Java EE Introduction, Content. Component Architecture: Why and How Java EE: Enterprise Java Java EE Introduction, Content Component Architecture: Why and How Java EE: Enterprise Java The Three-Tier Model The three -tier architecture allows to maintain state information, to improve performance,

More information

Volume 1: Core Technologies Marty Hall Larry Brown. An Overview of Servlet & JSP Technology

Volume 1: Core Technologies Marty Hall Larry Brown. An Overview of Servlet & JSP Technology Core Servlets and JavaServer Pages / 2e Volume 1: Core Technologies Marty Hall Larry Brown An Overview of Servlet & JSP Technology 1 Agenda Understanding the role of servlets Building Web pages dynamically

More information

Revision Action/Change Date. A Sentinel Cloud 3.0 Release December 2012 B Sentinel Cloud 3.1 Release April 2013 C

Revision Action/Change Date. A Sentinel Cloud 3.0 Release December 2012 B Sentinel Cloud 3.1 Release April 2013 C ii Sentinel Cloud Web Services Guide Software Version This documentation is applicable for the Sentinel Cloud EMS Version 3.4. Revision History Part Number 007-012141-001, Revision E Revision Action/Change

More information

Supplement IV.E: Tutorial for Tomcat. For Introduction to Java Programming By Y. Daniel Liang

Supplement IV.E: Tutorial for Tomcat. For Introduction to Java Programming By Y. Daniel Liang Supplement IV.E: Tutorial for Tomcat For Introduction to Java Programming By Y. Daniel Liang This supplement covers the following topics: Obtaining and Installing Tomcat Starting and Stopping Tomcat Choosing

More information

An Overview of Servlet & JSP Technology

An Overview of Servlet & JSP Technology 2007 Marty Hall An Overview of Servlet & JSP Technology 2 Customized J2EE Training: http://courses.coreservlets.com/ Servlets, JSP, Struts, JSF, EJB3, Ajax, Java 5, Java 6, etc. Ruby/Rails coming soon.

More information

Model-View-Controller. and. Struts 2

Model-View-Controller. and. Struts 2 Model-View-Controller and Struts 2 Problem area Mixing application logic and markup is bad practise Harder to change and maintain Error prone Harder to re-use public void doget( HttpServletRequest request,

More information

HDFS - Java API. 2012 coreservlets.com and Dima May. 2012 coreservlets.com and Dima May

HDFS - Java API. 2012 coreservlets.com and Dima May. 2012 coreservlets.com and Dima May 2012 coreservlets.com and Dima May HDFS - Java API Originals of slides and source code for examples: http://www.coreservlets.com/hadoop-tutorial/ Also see the customized Hadoop training courses (onsite

More information

Oracle Hyperion Financial Management Developer and Customization Guide

Oracle Hyperion Financial Management Developer and Customization Guide Oracle Hyperion Financial Management Developer and Customization Guide CONTENTS Overview... 1 Financial Management SDK... 1 Prerequisites... 2 SDK Reference... 2 Steps for running the demo application...

More information

HACKING AUTHENTICATION CHECKS IN WEB APPLICATIONS ASHISH RAO & SIDDHARTH ANBALAHAN

HACKING AUTHENTICATION CHECKS IN WEB APPLICATIONS ASHISH RAO & SIDDHARTH ANBALAHAN HACKING AUTHENTICATION CHECKS IN WEB APPLICATIONS ASHISH RAO & SIDDHARTH ANBALAHAN About Ashish 4 years of IT Security Experience Security Consultant and Researcher Application and Code Security Practice

More information

Hudson Continous Integration Server. Stefan Saasen, stefan@coravy.com

Hudson Continous Integration Server. Stefan Saasen, stefan@coravy.com Hudson Continous Integration Server Stefan Saasen, stefan@coravy.com Continous Integration Software development practice Members of a team integrate their work frequently Each integration is verified by

More information

EJB 3.0 and IIOP.NET. Table of contents. Stefan Jäger / stefanjaeger@bluewin.ch 2007-10-10

EJB 3.0 and IIOP.NET. Table of contents. Stefan Jäger / stefanjaeger@bluewin.ch 2007-10-10 Stefan Jäger / stefanjaeger@bluewin.ch EJB 3.0 and IIOP.NET 2007-10-10 Table of contents 1. Introduction... 2 2. Building the EJB Sessionbean... 3 3. External Standard Java Client... 4 4. Java Client with

More information

TIBCO ActiveMatrix BPM Web Application Component Development. Software Release 2.0 November 2012

TIBCO ActiveMatrix BPM Web Application Component Development. Software Release 2.0 November 2012 TIBCO ActiveMatrix BPM Web Application Component Development Software Release 2.0 November 2012 Important Information SOME TIBCO SOFTWARE EMBEDS OR BUNDLES OTHER TIBCO SOFTWARE. USE OF SUCH EMBEDDED OR

More information

Web Applications and Struts 2

Web Applications and Struts 2 Web Applications and Struts 2 Problem area Problem area Separation of application logic and markup Easier to change and maintain Easier to re use Less error prone Access to functionality to solve routine

More information

The Server.xml File. Containers APPENDIX A. The Server Container

The Server.xml File. Containers APPENDIX A. The Server Container APPENDIX A The Server.xml File In this appendix, we discuss the configuration of Tomcat containers and connectors in the server.xml configuration. This file is located in the CATALINA_HOME/conf directory

More information

1 Introduction. 3 Open Mobile IS components 3.1 Embedded Database 3.2 Web server and Servlet API 3.3 Service API and template engine

1 Introduction. 3 Open Mobile IS components 3.1 Embedded Database 3.2 Web server and Servlet API 3.3 Service API and template engine 1 S u m m a r y 1 Introduction 2 Open Mobile IS Framework 2.1 Presentation 2.2 Main concepts 2.2.1 Accessibility 2.2.2 Availability 2.2.3 Evolution capabilities 2.3 Open Mobile IS constrains Answer 2.3.1

More information

Server based signature service. Overview

Server based signature service. Overview 1(11) Server based signature service Overview Based on federated identity Swedish e-identification infrastructure 2(11) Table of contents 1 INTRODUCTION... 3 2 FUNCTIONAL... 4 3 SIGN SUPPORT SERVICE...

More information

WebNow Single Sign-On Solutions

WebNow Single Sign-On Solutions WebNow Single Sign-On Solutions Technical Guide ImageNow Version: 6.7. x Written by: Product Documentation, R&D Date: June 2015 2012 Perceptive Software. All rights reserved CaptureNow, ImageNow, Interact,

More information

How To Integrate IIS6 and Apache Tomcat

How To Integrate IIS6 and Apache Tomcat How To Integrate IIS6 and Apache Tomcat By Glenn Barnas / InnoTech Consulting Group www.innotechcg.com This is a step by step guide to installing Apache Tomcat 6.x on systems running IIS 6.0. The process

More information

2.8. Session management

2.8. Session management 2.8. Session management Juan M. Gimeno, Josep M. Ribó January, 2008 Session management. Contents Motivation Hidden fields URL rewriting Cookies Session management with the Servlet/JSP API Examples Scopes

More information

HttpUnit Laboratorio di Sistemi Software - A.A. 2003/2004

HttpUnit Laboratorio di Sistemi Software - A.A. 2003/2004 HttpUnit Laboratorio di Sistemi Software - A.A. 2003/2004 Introduction HttpUnit, available from http://www.httpunit.org, is an open source Java library for programmatically interacting with HTTP servers.

More information

32-Bit Workload Automation 5 for Windows on 64-Bit Windows Systems

32-Bit Workload Automation 5 for Windows on 64-Bit Windows Systems 32-Bit Workload Automation 5 for Windows on 64-Bit Windows Systems Overview 64-bit Windows Systems Modifying the Working Folder for Universal Server Components Applications Installed in the Windows System

More information

A QoS-aware Method for Web Services Discovery

A QoS-aware Method for Web Services Discovery Journal of Geographic Information System, 2010, 2, 40-44 doi:10.4236/jgis.2010.21008 Published Online January 2010 (http://www.scirp.org/journal/jgis) A QoS-aware Method for Web Services Discovery Bian

More information

a) Install the SDK into a directory of your choice (/opt/java/jdk1.5.0_11, /opt/java/jdk1.6.0_02, or YOUR_JAVA_HOME_DIR)

a) Install the SDK into a directory of your choice (/opt/java/jdk1.5.0_11, /opt/java/jdk1.6.0_02, or YOUR_JAVA_HOME_DIR) HPC Installation Guide This guide will outline the steps to install the Web Service that will allow access to a remote resource (presumably a compute cluster). The Service runs within a Tomcat/Axis environment.

More information

15-415 Database Applications Recitation 10. Project 3: CMUQFlix CMUQ s Movies Recommendation System

15-415 Database Applications Recitation 10. Project 3: CMUQFlix CMUQ s Movies Recommendation System 15-415 Database Applications Recitation 10 Project 3: CMUQFlix CMUQ s Movies Recommendation System Project Objective 1. Set up a front-end website with PostgreSQL back-end 2. Allow users to login, like

More information

Chapter 20 Streams and Binary Input/Output. Big Java Early Objects by Cay Horstmann Copyright 2014 by John Wiley & Sons. All rights reserved.

Chapter 20 Streams and Binary Input/Output. Big Java Early Objects by Cay Horstmann Copyright 2014 by John Wiley & Sons. All rights reserved. Chapter 20 Streams and Binary Input/Output Big Java Early Objects by Cay Horstmann Copyright 2014 by John Wiley & Sons. All rights reserved. 20.1 Readers, Writers, and Streams Two ways to store data: Text

More information

bbc Developing Service Providers Adobe Flash Media Rights Management Server November 2008 Version 1.5

bbc Developing Service Providers Adobe Flash Media Rights Management Server November 2008 Version 1.5 bbc Developing Service Providers Adobe Flash Media Rights Management Server November 2008 Version 1.5 2008 Adobe Systems Incorporated. All rights reserved. Adobe Flash Media Rights Management Server 1.5

More information

5 HDFS - Hadoop Distributed System

5 HDFS - Hadoop Distributed System 5 HDFS - Hadoop Distributed System 5.1 Definition and Remarks HDFS is a file system designed for storing very large files with streaming data access patterns running on clusters of commoditive hardware.

More information

Oracle Hyperion Financial Management Custom Pages Development Guide

Oracle Hyperion Financial Management Custom Pages Development Guide Oracle Hyperion Financial Management Custom Pages Development Guide CONTENTS Overview... 2 Custom pages... 2 Prerequisites... 2 Sample application structure... 2 Framework for custom pages... 3 Links...

More information

SSO Plugin. J System Solutions. Upgrading SSO Plugin 3x to 4x - BMC AR System & Mid Tier. http://www.javasystemsolutions.com

SSO Plugin. J System Solutions. Upgrading SSO Plugin 3x to 4x - BMC AR System & Mid Tier. http://www.javasystemsolutions.com SSO Plugin Upgrading SSO Plugin 3x to 4x - BMC AR System & Mid Tier J System Solutions JSS SSO Plugin Upgrading 3x to 4x Introduction... 3 [Prerequisite] Generate a new license... 4 [Prerequisite] Download

More information

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

Web Applications. For live Java training, please see training courses at 2009 Marty Hall Using and Deploying Web Applications Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/msajsp.html Customized Java EE Training: http://courses.coreservlets.com/

More information

Capabilities of a Java Test Execution Framework by Erick Griffin

Capabilities of a Java Test Execution Framework by Erick Griffin Capabilities of a Java Test Execution Framework by Erick Griffin Here we discuss key properties and capabilities of a Java Test Execution Framework for writing and executing discrete Java tests for testing

More information

HP OpenView Service Desk Version 3.0

HP OpenView Service Desk Version 3.0 HP OpenView Service Desk Version 3.0 Configuring Self-Service Pages with Microsoft Internet Information Server IIS 4.0 + Jrun 3.0 on Windows NT 4.0 IIS 5.0 + Jrun 3.0 on Windows 2000 Document version 1.0

More information

WIRIS quizzes web services Getting started with PHP and Java

WIRIS quizzes web services Getting started with PHP and Java WIRIS quizzes web services Getting started with PHP and Java Document Release: 1.3 2011 march, Maths for More www.wiris.com Summary This document provides client examples for PHP and Java. Contents WIRIS

More information

SSO Plugin. Integration for BMC MyIT and SmartIT. J System Solutions. http://www.javasystemsolutions.com Version 4.0

SSO Plugin. Integration for BMC MyIT and SmartIT. J System Solutions. http://www.javasystemsolutions.com Version 4.0 SSO Plugin Integration for BMC MyIT and SmartIT J System Solutions Version 4.0 JSS SSO Plugin Integration with BMC MyIT Introduction... 3 Deployment approaches... 3 SSO Plugin integration... 4 Configuring

More information

Ch-03 Web Applications

Ch-03 Web Applications Ch-03 Web Applications 1. What is ServletContext? a. ServletContext is an interface that defines a set of methods that helps us to communicate with the servlet container. There is one context per "web

More information

Web Container Components Servlet JSP Tag Libraries

Web Container Components Servlet JSP Tag Libraries Web Application Development, Best Practices by Jeff Zhuk, JavaSchool.com ITS, Inc. dean@javaschool.com Web Container Components Servlet JSP Tag Libraries Servlet Standard Java class to handle an HTTP request

More information

Connecting Custom Services to the YAWL Engine. Beta 7 Release

Connecting Custom Services to the YAWL Engine. Beta 7 Release Connecting Custom Services to the YAWL Engine Beta 7 Release Document Control Date Author Version Change 25 Feb 2005 Marlon Dumas, 0.1 Initial Draft Tore Fjellheim, Lachlan Aldred 3 March 2006 Lachlan

More information

Hello World Portlet Rendered with JSP for WebSphere Portal Version 4.1

Hello World Portlet Rendered with JSP for WebSphere Portal Version 4.1 1 of 11 16.10.2002 11:41 Hello World Portlet Rendered with JSP for WebSphere Portal Version 4.1 Table of Contents Creating the directory structure Creating the Java code Compiling the code Creating the

More information

Addressing Application Layer Attacks with Mod Security

Addressing Application Layer Attacks with Mod Security Addressing Application Layer Attacks with Mod Security This article sheds some light on some of the important concepts pertaining to Web Application Firewalls (WAF). We have also looked at the Mod_Security

More information

Web Frameworks and WebWork

Web Frameworks and WebWork Web Frameworks and WebWork Problem area Mixing application logic and markup is bad practise Harder to change and maintain Error prone Harder to re-use public void doget( HttpServletRequest request, HttpServletResponse

More information

BusinessObjects Enterprise XI Release 2

BusinessObjects Enterprise XI Release 2 BusinessObjects Enterprise XI Release 2 How to configure an Internet Information Services server as a front end to a WebLogic application server Overview Contents This document describes the process of

More information

RPC over XML. Web services with Java. How to install it? Reference implementation. Setting the environment variables. Preparing the system

RPC over XML. Web services with Java. How to install it? Reference implementation. Setting the environment variables. Preparing the system RPC over XML Web services with Java Distributed Systems SS03 Layered architecture based on TCP Bottommost layer is HTTP SOAP (XML) sits above it LOT of W3C standards and W3C drafts describe it. Reference

More information

Lesson: All About Sockets

Lesson: All About Sockets All About Sockets http://java.sun.com/docs/books/tutorial/networking/sockets/index.html Page 1 sur 1 The Java TM Tutorial Start of Tutorial > Start of Trail Trail: Custom Networking Lesson: All About Sockets

More information

BIRT Application and BIRT Report Deployment Functional Specification

BIRT Application and BIRT Report Deployment Functional Specification Functional Specification Version 1: October 6, 2005 Abstract This document describes how the user will deploy a BIRT Application and BIRT reports to the Application Server. Document Revisions Version Date

More information

Copyright: WhosOnLocation Limited

Copyright: WhosOnLocation Limited How SSO Works in WhosOnLocation About Single Sign-on By default, your administrators and users are authenticated and logged in using WhosOnLocation s user authentication. You can however bypass this and

More information