The End of the Beginning: Deploying Applications to WebLogic Server Using JDeveloper and WLS Console. Don t get it right, just get it written.

Similar documents
Just Get it Written: Deploying Applications to WebLogic Server Using JDeveloper and WLS Console. Don t get it right, just get it written.

Just Get it Written: Deploying Applications to WebLogic Server Using JDeveloper and WLS Console. Don t get it right, just get it written.

Don t get it right, just get it written.

Just Get it Written: Deploying Applications to WebLogic Server Using JDeveloper and WLS Console. Don t get it right, just get it written.

DEPLOYING APPLICATIONS TO WEBLOGIC SERVER USING JDEVELOPER AND WLS CONSOLE: JUST GET IT WRITTEN Peter Koletzke, Quovera and Duncan Mills, Oracle

Unraveling the Mysteries of J2EE Web Application Communications

Just Get It Written: Deploying Applications to WebLogic Server Using JDeveloper and WLS Console Hands on Practice

Oracle WebLogic Server Application Security

Agenda Birds Do It: Migrating Forms to Java EE Web A Case Study

If you wish to make an improved product, you must already be engaged in making an inferior one.

Achieving the Perfect Layout with ADF Faces RC

JDeveloper Downloading a Workspace for WebCenter Spaces Development

Hello Worldwide Web: Your First JSF in JDeveloper

FILE XML DATABASE DEVELOPERS ORACLE 11G MANUAL EBOOK

J2EE for Oracle Technologists

IBM Operational Decision Manager Version 8 Release 5. Configuring Operational Decision Manager on WebLogic

The Arrangement of the Screens: Introduction to Layout in ADF Faces

Both Sides Now: DevOps and Agile in Oracle Developer Cloud Service for Fusion Middleware Developers

Contract Information Management System (CIMS) Technical System Architecture

<Insert Picture Here> Oracle Public Cloud Powering Your Business Applications using The Java Cloud Service

Oracle WebLogic Server 11g: Administration Essentials

Design Modernization Case Study: Applying Mobile App Design Principles to the UTOUG Website

JDK 1.6 update 11 from You must use Java 1.6 update 11. Update 12 does not work with SOA 11g

You CAN Judge a Book by Its Cover: Modern User Interface Design Principles

Made from the Same Mold: Templating Approaches for ADF Faces Applications

Oracle Fusion Middleware

Java Cloud Service & WLS 12c

Contents Overview... 5 Downloading Primavera Gateway... 5 Primavera Gateway On-Premises Installation Prerequisites... 6

The Tie That Binds: An Introduction to ADF Bindings

AquaLogic BPM Enterprise Configuration Guide

We didn t need dialogue. We had faces.

How to use J2EE default server

Deploying Applications to Oracle WebLogic Server g Release 1 (10.3.6)

An Oracle White Paper May Example Web Listener Deployment for Oracle Application Express

Chapter 2 WEBLOGIC SERVER DOMAINS. SYS-ED/ Computer Education Techniques, Inc.

Using Thick Database Principles to Leverage Oracle SQL and PL/SQL Part III:

X100 ARCHITECTURE REFERENCES:

Introduction... 5 Configuring Single Sign-On... 7 Prerequisites for Configuring Single Sign-On... 7 Installing Oracle HTTP Server...

JDK-WildFly-NetBeans Setup Local

IBM Operational Decision Manager Version 8 Release 5. Configuring Operational Decision Manager on Tomcat

ADF Code Corner. 65. Active Data Service Sample Twitter Client. Abstract: twitter.com/adfcodecorner

Using Thick Database Principles to Leverage Oracle SQL and PL/SQL Part I:

Oracle Web Service Manager 11g Component Level Role Authorization (in SOA Suite) March, 2012

Securing REST using Oracle WebService Manager July 2013

CONTINUOUS DELIVERY IN THE ORACLE CLOUD

Process Commander Installation Guide

Oracle Developer Depot Technical Review

J2EE Development. Course Detail: Audience. Duration. Course Abstract. Course Objectives. Course Topics. Class Format.

Sales Quote Demo Setup

1 Getting Started with Oracle Service Bus

3 Connecting to Applications

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

1Z Oracle WebLogic Server 12c - Administration I Exam Summary Syllabus Questions

ORACLEAS PORTAL 10g (10.1.4) INTEGRATE YOUR ENTERPRISE CONTENT MANAGEMENT SYSTEMS INTO ORACLE PORTAL

Developing an ADF 11g client for Agile PLM. Developing an ADF 11g client for Agile PLM

FCUBS Process Flow Deployment Oracle FLEXCUBE Universal Banking Release [December] [2017]

Departamento de Engenharia Informática. Systems Integration. SOA Adapters Tutorial. 1. Open SQL*Plus in order to run SQL commands.

Oracle Fusion Middleware

AquaLogic BPM Enterprise Configuration Guide

4 Connecting to Composites

FCUBS Process Flow Deployment Oracle FLEXCUBE Universal Banking Release [May] [2017]

Customizing Oracle Identity Governance: Populating Request Attributes

Maximum Availability Architecture

JD Edwards EnterpriseOne

Exam Name: IBM Certified System Administrator - WebSphere Application Server Network Deployment V7.0

High density deployments using Weblogic Multitenancy

Oracle Fusion Middleware

Oracle Fusion Middleware

Masterclass: WebLogic Server for OAS Administrators

Lab 1 - Getting started with OIM 11g

IBM Maximo Anywhere Version 7 Release 6. Planning, installation, and deployment IBM

Setup Real-Time Integration Business Insight using a native installation For AstraTeq Help Desk Tutorial

Oracle Fusion Middleware. 1 Oracle Team Productivity Center Server System Requirements. 2 Installing the Oracle Team Productivity Center Server

Oracle WebLogic Server 12c: Administration I

SAS AppDev Studio TM 3.4 Eclipse Plug-ins. Migration Guide

IBM Marketing Operations Version 9 Release 1.1 November 26, Installation Guide

Oracle ADF 11gR2 Development Beginner's Guide

Installation and Setup Guide Oracle FLEXCUBE Universal Banking Release 12.0 [May] [2012] Oracle Part Number E

Oracle Fusion Middleware

<Insert Picture Here> Deploying applications

BEA WebLogic. Platform. Configuration Wizard Template Reference

Writing Portable Applications for J2EE. Pete Heist Compoze Software, Inc.

Setup Middleware as a Service using EM12c

Artix for J2EE. Version 4.2, March 2007

<Insert Picture Here> Upgrading from Oracle Application Server to Oracle WebLogic Server

Lyudmil Pelov, A-Team, Oracle December Development Lifecycle for Task Flows in Oracle WebCenter Portal 11gR1 version

J2EE Development with Apache Geronimo 1.1. Aaron Mulder CTO, Chariot Solutions Committer, Apache Geronimo

Oracle Financial Services Regulatory Reporting for European Banking Authority (OFS AGILE RP EBA)

Version 11 Release 0 May 31, IBM Contact Optimization Installation Guide IBM

Oracle Hyperion EPM Installation & Configuration ( ) NEW

Profitability Application Pack Installation Guide Release

JBoss SOAP Web Services User Guide. Version: M5

Take Your Oracle Forms on the Road Using ADF Mobile. Mia Urman, OraPlayer & Denis Tyrell, Oracle Corporation

Orgnazition of This Part

Oracle Fusion Middleware

Creating Classic Planning Applications in Oracle Hyperion Planning, Fusion Edition

INSTALLING AND DEPLOYING ADOBE EXPERIENCE MANAGER FORMS ON JEE FOR WEBLOGIC

Open Development Tool Installation Oracle FLEXCUBE Universal Banking Release

WA2018 Programming REST Web Services with JAX-RS WebLogic 12c / Eclipse. Student Labs. Web Age Solutions Inc.

Oracle Fusion Middleware

Transcription:

The End of the Beginning: Deploying Applications to WebLogic Server Using JDeveloper and WLS Console Peter Koletzke Technical Director & Principal Instructor Co-author: Duncan Mills, Oracle Moral Don t get it right, just get it written. James Thurber, The Sheep in Wolf s Clothing; Fables for our Time 2 Agenda Deployment concepts JDeveloper support Deploying from WLS Console Slides and white paper will be on the UTOUG and Quovera websites. The white paper contains hands-on practices (11g). 12c practice on Quovera website. Deployment Concepts Deployment: copying and installing application files to a runtime environment Development, testing, QA, production Occurs multiple times for an app Bug fixes, enhancements, software updates You may be responsible So you, as a developer, need to know this Someone else may be responsible So you need to provide the right files to deploy Testing those files beforehand is useful 3 4

Preparation for Deployment Development and testing complete Required libraries and supporting files are identified Application server is available Has an appropriate web container (JVM) process For example, WebLogic Server You know the server admin password Or know someone who knows Needed to copy files to the server Deployment Objectives Ensure that all required libraries are available Development and deployment library versions should match All necessary JDeveloper projects must be deployed Model, ViewController ADF Libraries (usually bundled in the EAR) Files must be archived into specially formatted Java EE JAR files WAR or EAR (if more than one app) ADF Library JARs 5 6 Enterprise Application Archive (EAR) Contains one or more WAR (application) files and other libraries that are required A file you deploy Copies to the app server directory: FMW_HOME>\user_projects\domains App server processes new EAR files when restarting Can also process EAR files without restarting The app server expands this into its WAR files Each WAR file goes into a directory corresponding to its name Then it expands the WAR files Sample EAR File One app (WAR) file in this case Several XML configuration files JDeveloper Archive Viewer 7 8

Web Application Archive (WAR) Also called, Web Archive Can alternatively be deployed without an EAR Contains all files required for an application Contains files or directories inside WEB-INF (the main runtime directory) Copied to server and expanded into separate files by the server Inside a directory named the same as the WAR file App server extracts files into the../<app>/ directory <app> is the name of the WAR file Sample WAR File 9 10 Deployed Directory Structures FMW_Home Fusion Middleware Domain Created using the Configuration Wizard WAR file and app files under this level App root here EAR file here Agenda Deployment concepts JDeveloper support Deploying from WLS Console Examples use WLS 11g. (12c is different.) 11 12

Yes, Let s However beautiful the strategy, you should occasionally look at the results. Winston Churchill (1874 1965) Two Big Steps 1. Prepare the deployment profiles for the WAR and EAR files Specify what to deploy Model and ViewController projects Required libraries 2. Deploy using the deployment profile This creates the WAR and EAR It also copies the EAR to the server 13 14 Testing in Standalone WebLogic Between running the app in JDeveloper and deploying to the server run this test You need to set up the WLS domain WLS is part of Oracle Fusion Middleware Installed with JDeveloper can be run as a standalone server Ensure that the versions are compatible WLS version Application development runtime 15 Deployment Profiles Embedded in the.jws and.jpr files Access from Application / Project properties, or from the New Gallery (context sensitive) Default EAR and WAR profiles are pre-created with the Fusion App template Create separate deployment profiles for separate purposes multiple targets, etc. Demo 16

WAR Deployment Profile New Gallery Project context menu If this exists, skip to Application Menu Deploy Also accessible in the Deployment page of Project Properties Or in the New Gallery Double click WAR File 17 18 Create WAR Deployment Profile WAR Deployment Profile Wizard Change the context root here (or in Project Properties Java EE Application). Enter a name and click OK Other defaults should work. 19 20

Project Properties EAR Deployment Profile Application menu New profile Fusion App template and others creates this For those, skip to Preparation Steps. 21 22 New Gallery EAR File Create EAR Deployment Profile Double click EAR File Enter the name and click OK Defaults OK 23 24

EAR Deployment Profile Properties Application Properties New profile Application Assembly Page Select WAR deployment profile View this later in the Application menu (Application Properties) 25 26 Preparation Steps WLS domain is set up and running See hands-on practice for those steps Application menu Application Properties Deployment Edit Application Assembly Check Model For applications with Model projects Confirm that auto-generation and sync of JDBC descriptors is set Application menu Application Properties Deployment \ WebLogic JDBC Descriptor Deployment Select for JDev deployment Deselect for WLS console EAR assembly 27 28

Deploying From JDeveloper Deployment Target = Server Application menu Deploy <EAR profile> Local App Server Select the EAR deployment profile 29 30 Select Server Define the Server Connection Click + (green plus) to add a connection if needed Step 2 - password From the Configuration Wizard 31 32

Server Details Test Weblogic Domain from the Configuration Wizard Be sure the server is running Finish 33 34 Select the New Connection What Next? Wait and watch JDeveloper builds the WAR and EAR files in the project directory Finish & Test Then it copies the EAR file to the server instance Message log window will show progress 35 36

Deployment Log Window Test the Application Close JDeveloper if you are skeptical In browser, run the application URL In this case: http://localhost:7001/tuhra2 This opens the default page welcome file defined in web.xml The Log window usually appears in the bottom of the JDeveloper IDE window Test the app 37 38 Application Server Navigator Lists available servers Shows deployed apps Allows new server creation You can act on these using JDeveloper Undeploy Start Admin Console for server Demo The Best of Both Worlds OJDeploy Headless JDev deployments Command line utility packaged with JDeveloper Search for ojdeploy in the Help Center Automation for pre-defined deployment profiles Also runnable from Ant Manages Packaging and deployment JDBC data sources Security permissions propagation Deploying users and roles for testing 39 40

Agenda Deployment concepts JDeveloper support Deploying from WLS Console 41 Deploying From WLS Console The app server is usually under the control of the app server administrator (Be kind to your app server administrator) You need to package the EAR file and let them know where it is Select Deploy to <app name> from the Application menu The administrator will deploy the EAR file to a new or existing application node Setting up the application is a one-time task Deploying the app after the setup is easier than before the setup Demo 42 Configure the App Server Results in a standalone WLS domain Windows Start menu Start Programs Oracle Fusion Middleware 11.1.1.x WebLogic Server 11g Tools Configuration Wizard Follow the steps in the white paper The following assumes this is complete and the app server is started Note: Use the following as a guide for deploying with JDev after 11.1.1 43 For Apps with Model Projects Deselect You do not want to deploy a data source 44

Start the Deployment Deployment Target = EAR As before, select the EAR deployment profile. 45 46 Log Window Similar to before except this only creates the EAR file Deploy EAR to the App Server You can invoke the console from A URL: http://localhost:7001/console The Application Server Navigator in JDev Basic steps in the console: Drill into Deployments Click the Install button Find EAR file in file system and go! Additional common tasks Define a data source Deploy permissions 47 48

WLS Console - Home Page Data Source Alternative to JDBC descriptor Named resource on the server User ID, password, host, port, SID Application references the name The name is the same on development, test, QA, and production servers Deployments use the same EAR file Credentials don t float around with the app files 50 Model Projects Need a Data Source One-time step Left-hand nav bar Services \ Data Sources link This loads the Summary of JDBC Data Sources page Define The Data Source New Generic Data Source Fill out properties Name: HR_DB JNDI Name: jdbc/hr_dbds Driver: Oracle Thin XA for service connections DB name, host, port, username, password Test the connection; Save; it will appear here 51 52

Deployments Page Follow the Screens Install Find the file in the file system Select it. Click Next 54 Success! We re Not Done Yet? Next: Open the browser and test. http://127.0.0.1:7001/login/ faces/login.jspx This is not the end. It is not even the beginning of the end. But it is, perhaps, the end of the beginning. Winston Churchill (1874 1965) 56

Other Resources White paper for this presentation Oracle Fusion Middleware Fusion Developer's Guide for Oracle Application Development Framework 11g Release 1 (11.1.1) PDF at OTN, online in JDev Chapter 32 Oracle Fusion Middleware Security Guide 11g Release 1 PDF at OTN Oracle Fusion Developer Guide Nimphius and Munsinger, McGraw-Hill Professional, Oracle Press (2010) Brief mention in Chapter 21 Summary Java EE web applications are deployed to the app server using EAR files EAR files contain WAR files WAR files contain application files and all required libraries JDeveloper s deployment profiles help gather the files (project level and application level) Run a utility in JDeveloper to create the EAR file and deploy to the app server Alternatively, use WLS Console Testing deployments is a best practice 57 58 Designer Handbook Developer Advanced Forms & Reports JDeveloper 3 Handbook Please fill out the evals Books co-authored with Dr. Paul Dorsey, Avrom Roy- Faderman, & Duncan Mills ORACLE9i JDeveloper Handbook ORACLE JDeveloper 10g Handbook TOPICS Database Development Essbase Planning Financial Close Application Express Business Intelligence ADF and Fusion Dev. EPM Business Content EPM Foundations EPM Data Management EPM Reporting Ch. 22 http://www.quovera.com Founded in 1995 as Millennia Vision Corp. Profitable without outside funding Consultants each have 10+ years industry experience Strong High-Tech industry background 200+ clients/300+ projects JDeveloper Partner More technical white papers and presentations on the web site www.kscope15.com 59 60