9 Understanding the Deployment Process
- What Is a Deployer?
A user in the role of deployer is responsible for deploying applications, such as Java EE applications, and ADF applications, to WebLogic Server instances or clusters. - General Procedures for Moving from Application Design to Production Deployment
You design and test your application with the integrated Oracle WebLogic Server. Then, you can deploy the application to a Managed Server. You can move from application design and development to deployment in a production environment. - Diagnosing Typical Deployment Problems
If you encounter problems when you deploy an application, you can diagnose those problems and correct them.
Parent topic: Deploying Applications
What Is a Deployer?
A user in the role of deployer is responsible for deploying applications, such as Java EE applications, and ADF applications, to WebLogic Server instances or clusters.
A user who is functioning as a deployer should be granted the Oracle WebLogic Server deployer security role. The deployer security role allows deployment operations, as well as viewing the server configuration and changing startup and shutdown classes. To grant this role to a user, from Fusion Middleware Control:
-
From the WebLogic Domain menu, select Security, then Users and Groups.
The Users and Groups page is displayed.
-
If you do not have such a user, click Create.
The Create a User page is displayed.
-
Enter a name for the user and a password. Confirm the password.
-
Click Create.
-
On the Users and Groups page, select the user.
-
On the Settings for User page, select Deployers from the Available pane and move it to the Chosen pane.
-
Click Save.
Parent topic: Understanding the Deployment Process
General Procedures for Moving from Application Design to Production Deployment
You design and test your application with the integrated Oracle WebLogic Server. Then, you can deploy the application to a Managed Server. You can move from application design and development to deployment in a production environment.
- Designing and Developing an Application
- Deploying an Application to Managed Servers
- Automating the Migration of an Application to Other Environments
Parent topic: Understanding the Deployment Process
Designing and Developing an Application
In many cases, developers use Oracle JDeveloper to create their applications. Oracle JDeveloper is an integrated development environment (IDE) for building service-oriented applications using the latest industry standards for Java, XML, Web services, portlets, and SQL. JDeveloper supports the complete software development life cycle, with integrated features for modeling, coding, debugging, testing, profiling, tuning, and deploying applications.
In this environment, you use the integrated Oracle WebLogic Server, which is packaged with Oracle JDeveloper for testing your applications.
For information about developing your applications, see:
Deploying an Application to Managed Servers
After you have designed and tested your application with the integrated Oracle WebLogic Server, you can deploy the application to a Managed Server instance. For example, you may have installed Oracle WebLogic Server and configured a domain, including a Managed Server, in your production environment and you want to deploy the application to that Managed Server.
The following books provide specific information about deploying the different types of applications:
-
For Java EE applications, see Deploying Applications to Oracle WebLogic Server
-
For Oracle ADF, see Administering Oracle ADF Applications
-
For Oracle SOA Suite, see Developing SOA Applications with Oracle SOA Suite
-
For Oracle WebCenter Portal, see Administering Oracle WebCenter Portal
This section provides an outline of the major steps involved when you migrate your application from the integrated Oracle WebLogic Server to an environment separate from the development environment. Those general steps are:
-
Package the application:
-
For Java EE applications, you package the application in an EAR file. See Preparing Applications and Modules for Deployment in Deploying Applications to Oracle WebLogic Server.
-
For Oracle ADF, you package the application in an EAR file. See What You May Need to Know About EAR Files and Packagingin Developing Fusion Web Applications with Oracle Application Development Framework.
-
For Oracle SOA Suite, you package the application into a JAR or ZIP file. See Understanding the Packaging Impact in Developing SOA Applications with Oracle SOA Suite.
-
For Oracle WebCenter Portal, you package the application in an EAR file. See Packaging a WebCenter Portal Application in Developing for Oracle WebCenter Portal
-
-
Set up your environment. This includes:
-
Installing and configuring a domain and a Managed Server that is configured with the correct domain template. For example, if you are deploying an Oracle SOA Suite application, the Managed Server must use the Oracle SOA Suite domain template. The appropriate domain template is applied when you create the domain using the Configuration Wizard. Alternatively, you can extend a domain to use another domain template, as described in Extending a Domain to Support Additional Components.
For more information about installing and configuring specific components, see:
-
For Oracle ADF: How to Install the ADF Runtime to the WebLogic Installation in Administering Oracle ADF Applications
-
For Oracle SOA Suite: Installing Oracle SOA Suite and Oracle Business Process Management Suite, Configuring the Oracle SOA Suite Domain and Configuring the Oracle Business Process Management Domain in Installing and Configuring Oracle SOA Suite and Business Process Management
-
For Oracle WebCenter Portal: Installing Oracle WebCenter Portal and Configuring Oracle WebCenter Portal in Installing and Configuring Oracle WebCenter Portal
-
-
Creating any necessary schemas in an existing database. See Creating Schemas with the Repository Creation Utility.
-
Registering the MDS Repository with the Oracle WebLogic Server domain, if your application uses the MDS Repository. For example, Oracle SOA Suite applications require MDS. Some ADF applications involve customizations using MDS. See Registering a Database-Based MDS Repository Using Fusion Middleware Control for information about registering the MDS Repository.
-
-
If your application uses a database, set up the JDBC data sources.
For more information about setting up the JDBC data sources, see:
-
For pure Java EE applications: Administering JDBC Data Sources for Oracle WebLogic Server
-
For Oracle ADF: How to Create a JDBC Data Source for Oracle WebLogic Server in Administering Oracle ADF Applications
-
For Oracle SOA Suite: Creating Data Sources and Queues in Developing SOA Applications with Oracle SOA Suite
-
For Oracle WebCenter Portal: Choosing the Data Source in Administering Oracle WebCenter Portal
-
-
For Oracle SOA Suite, create connection factories and connection pooling. See Creating Connection Factories and Connection Pooling in Developing SOA Applications with Oracle SOA Suite.
-
Create a connection to the target Managed Server.
From Oracle JDeveloper, you can deploy your applications to Managed Server instances that reside outside JDeveloper. To do this, you must first create a connection to the server instance to which you want to deploy your application.
For more information about creating connections, see:
-
For Oracle ADF: How to Create a Connection to the Target Application Server in Developing Fusion Web Applications with Oracle Application Development Framework
-
For Oracle SOA Suite: Creating an Application Server Connection in Developing SOA Applications with Oracle SOA Suite
-
For Oracle WebCenter Portal: Creating a WebLogic Managed Server Connection in Developing for Oracle WebCenter Portal
-
-
For Oracle SOA Suite, create a SOA-MDS connection, if the SOA composite application shares metadata with other composites. See Creating a SOA-MDS Connection in Developing SOA Applications with Oracle SOA Suite.
-
Create a configuration plan or deployment plan, which contains information about environment-specific values, such as JDBC connection strings or host names of various servers. See:
-
For pure Java EE applications: Creating a New Deployment Plan to Configure an Application in Deploying Applications to Oracle WebLogic Server
-
For Oracle SOA Suite: Introduction to Configuration Plans in Developing SOA Applications with Oracle SOA Suite
-
-
Migrate application security, such as credentials, identities, and policies. See:
-
For pure Java EE applications: Migrating Security Data in Administering Security for Oracle WebLogic Server
-
For Oracle ADF: Preparing the Secure Application for Deployment in Developing Fusion Web Applications with Oracle Application Development Framework
-
For Oracle SOA Suite: Enabling Security in Developing SOA Applications with Oracle SOA Suite
-
For Oracle WebCenter Portal: Managing WebCenter Portal Application Security in Administering Oracle WebCenter Portal
-
-
Create a deployment profile. A deployment profile packages or archives a custom ADF, WebCenter Portal, or SOA application and associated files so that the application can be deployed to an Oracle WebLogic Server Managed Server instance. Deployment profiles are created at the project and application level.
For more information about deployment profiles, see:
-
For Oracle ADF: How to Create Deployment Profiles in Developing Fusion Web Applications with Oracle Application Development Framework
-
For Oracle SOA Suite: Optionally Creating a Project Deployment Profile in Developing SOA Applications with Oracle SOA Suite
-
For Oracle WebCenter Portal: Creating Deployment Profiles in Developing for Oracle WebCenter Portal
-
-
Migrate Oracle JDeveloper extensions for Oracle SOA Suite. Table 9-1 shows the extensions and where they are documented:
Table 9-1 Oracle JDeveloper Extensions
Component Extension See: Oracle SOA Suite
SOA extensions
Enabling Oracle JDeveloper Extensions in Installing Oracle JDeveloper
Oracle WebCenter Portal
WebCenter Portal extensions
Creating and Provisioning a WebLogic Managed Server Instance in Developing for Oracle WebCenter Portal
-
Deploy the application to a Managed Server.
See:
-
For pure Java EE applications: Exporting an Application for Deployment to New Environments in Deploying Applications to Oracle WebLogic Server
-
For Oracle ADF: Deploying the Application in Developing Fusion Web Applications with Oracle Application Development Framework
-
For Oracle SOA Suite: Deploying SOA Composite Applications in Developing SOA Applications with Oracle SOA Suite
-
For Oracle WebCenter Portal: Deploying the Application to a WebLogic Managed Server in Administering Oracle WebCenter Portal
-
Automating the Migration of an Application to Other Environments
You can automate the migration of an application by using WLST or ant scripts. This makes it easier to deploy your application to multiple environments or Managed Servers and to deploy updated versions of the application.
For more information about using scripts to migrate an application to other environments, see:
-
For pure Java EE applications: Using the WebLogic Scripting Tool in Understanding the WebLogic Scripting Tool
-
For Oracle ADF: Deploying Using Scripts and Ant in Administering Oracle ADF Applications
-
For Oracle SOA Suite: The following sections in Developing SOA Applications with Oracle SOA Suite:
-
For Oracle WebCenter Portal: Creating and Provisioning a WebLogic Managed Server Instance in Developing for Oracle WebCenter Portal
Diagnosing Typical Deployment Problems
If you encounter problems when you deploy an application, you can diagnose those problems and correct them.
The following describes some of the typical problems that you may encounter when you deploy an application to a Managed Server:
-
Connection information. Ensure that you have correctly configured the connection to the target Managed Server. See Steps 4, 5, and 6 in Deploying an Application to Managed Servers.
-
Oracle JDeveloper extensions. Ensure that you have migrated any Oracle JDeveloper extensions. See Table 9-1.
-
Data sources. Ensure that you have correctly configured JDBC data sources. See Step 3 in Deploying an Application to Managed Servers.
-
Security configuration. Ensure that you have migrated application security, such as credentials, identities, and policies. See Step 8 in Deploying an Application to Managed Servers.
In addition, see Troubleshooting Common Deployment Errors in Developing SOA Applications with Oracle SOA Suite for information about troubleshooting SOA applications.
Parent topic: Understanding the Deployment Process