7 Deploying Applications
You can use WebLogic Remote Console to manage the deployment process of applications to WebLogic Server.
For general information on the application deployment process, see Understanding WebLogic Server Deployment in Deploying Applications to Oracle WebLogic Server.
Supported Deployment Units
A deployment unit refers to a Java EE application (an enterprise application or Web application) or a standalone Java EE module (such as an EJB or resource adapter) that has been organized according to the Java EE specification and can be deployed to WebLogic Server.
The following deployment units are supported:
-
Enterprise Application
-
Web Application
-
Enterprise JavaBean
-
Web Service
-
Java EE Library
-
Optional Package
-
JDBC, JMS, and WLDF Modules
-
Client Application Archive
For more information on each deployment unit, see Supported Deployment Units in Deploying Applications to Oracle WebLogic Server
Install an Application
An application can be installed as an archived EAR file or as an exploded directory. Installing an application makes its physical file or directory known to WebLogic Server.
This procedure applies to all of the deployment units listed in Supported Deployment Units, with the exception of Java EE libraries. For Java EE libraries, see Install a Java EE Library instead.
- In the Edit Tree, go to Deployments, then App Deployments.
- Select New.
- Enter a name for the application.
- Select the servers and clusters to which you want to deploy the application.
- Make the archive file or exploded directory known to the Administration Server.
- If the application is on your file system and you need to upload it to the Administration Server, enable the Upload option. Then, beside Source, click Choose File to browse to the application's location on your system.
- If the application is already in the file system of the Administration Server, disable the Upload option. Then, in the Source Path field, enter the file path to the application.
- Optional: Add a deployment plan, choose another staging mode, or set application behavior at deployment.
- Click Create.
Your new application appears under the App Deployment node. You can make additional changes to the application on this page.
You must start an application before it can process client requests.
Start an Application
You must start an application to make it available to WebLogic Server clients.
When you start an application, you can make it immediately available to clients, or you can start it in Administration Mode first to ensure that it is working as expected. Starting in Administration Mode allows you to perform final sanity checking of the distributed application directly in the production environment without disrupting clients.
- In the Monitoring Tree, go to Deployments, then Application Management.
- Select the application that you want to start.
- Click Start and choose either:
- Servicing all requests: to make the application immediately available to all clients.
- Servicing only administration request: to make the application available in Administration Mode only.
Stop an Application
When you stop an application, you prevent clients from accessing it. You can choose whether no clients can use it, or transition it to Administration Mode so that only administrative tasks can be performed.
- In the Monitoring Tree, go to Deployments, then Application Management.
- Select the application that you want to stop.
- Click Stop and choose one of:
- When work completes: to allow the application to finish its work and for all currently connected users to disconnect.
- Force stop now: to stop the application immediately, regardless of the work that is being performed and the users that are connected.
- Servicing non-administration requests: to stop the application once all its work has finished, and then put the application in Administration Mode so it remains accessible for administrative purposes.
Specify Deployment Properties
After you deploy an application, you can configure additional settings to meet the needs of your environment.
Deployment Plans
Use a deployment plan to specify deployment property values for an application.
A deployment plan is an optional document that works with or overrides your application’s deployment descriptors to configure an application for deployment to a specific WebLogic Server environment. Deployment plans are written in XML.
See Understanding WebLogic Server Deployment Plans in Deploying Applications to Oracle WebLogic Server.
Note:
You cannot create a deployment plan for applications that were auto-deployed.For deployment plan descriptions and examples, see Understanding Deployment Plan Contents in Deploying Applications to Oracle WebLogic Server.
Generally, if you need to modify the deployment properties of an application, you should use the Configuration node (as described in Specify Deployment Properties), instead of manually editing the deployment plan.
If your changes in the deployment plan include non-dynamic changes, you must redeploy the application to propagate the changes from the deployment plan to the application.
Modify a Deployment Plan
You can manually update a deployment plan with new deployment instructions for an application.
For more information, see Manually Customizing the Deployment Plan in Deploying Applications to Oracle WebLogic Server.
- In the Monitoring Tree, go to Deployments, then Application Management, then myApplication, then Deployment Plan (Advanced).
- You can edit the deployment plan as a whole or the individual variable assignments within a deployment plan:
- To edit a deployment plan document:
- Select the Deployment Plan tab.
- Edit the deployment plan directly within the text box field. You can also copy the plan contents into an external text editor, make your edits and then paste the changed data back into WebLogic Remote Console.
- Click Save.
- To edit individual variable assignments:
- Select the Variable Assignments tab.
- Select the variable assignment module that you want to edit and click Edit.
- Enter a value and, if updating an array, choose an operation.
- Click Done.
- To edit a deployment plan document:
- Update and possibly redeploy your application to apply your changes. See Update or Redeploy an Application for instructions.
Update or Redeploy an Application
After you make changes to a deployed application or its deployment plan, you need to update the application with the new instructions and possibly redeploy the application to make the changes available to WebLogic Server clients.
Note:
If your changes are dynamic, then you only need to update the deployment plan. However, if your changes include non-dynamic changes, you must redeploy the application to propagate the changes from the deployment plan to the application.
If you try to update a deployment plan but your changes require a redeployment, WebLogic Remote Console will prompt you to redeploy the application instead.
If the application is deployed in a production environment, review Overview of Redeployment Strategies in Deploying Applications to Oracle WebLogic Server for guidance on limiting downtime for the application.
- In the Monitoring Tree, go to Deployments, then Application Management and select the application that you want to update.
- Click Update/Reploy and choose one of the options:
- Update - Deployment Plan on Server: Updates the application using a new deployment plan located on the server. Use this option if all of your changes are dynamic.
- Update - Deployment Plan on Local Machine: Updates the application using a new deployment plan located on the local machine and then uploads it to the Administration Server's upload directory. Use this option if all of your changes are dynamic.
- Redeploy - Deployment Source and Plan on Server: Updates a deployment plan located on the server and redeploys the application. Use this option if your changes include non-dynamic changes that require the application to restart.
- Redeploy - Deployment Source and Plan on Local Machine: Updates a deployment plan located on the local machine and redeploys the application. Use this option if your changes include non-dynamic changes that the application to restart.
- Optional: If necessary for your selection, enter the file path to the new deployment plan.
- Click Done to update or redeploy the application.
You can track the status of the application deployment. While still in the Monitoring Tree, go to Deployments, then Deployment Tasks.
Test Application Deployment
After you deploy an application, you may want to confirm that it was deployed successfully.
Remove an Application from a Domain
An installed application or module remains available in the domain to stop, restart, or update until you explicitly remove it. After you delete an application or module from a domain, you must redeploy it to make it available to a WebLogic Server client again.
To temporarily make a deployed application unavailable to WebLogic Server clients, consider stopping it instead of deleting it. See Stop an Application.
- In the Edit Tree, go to Deployments, then App Deployments.
- Select the application that you want to remove and click Delete.
Install a Java EE Library
A Java EE library can be a standalone EJB or Web application module, multiple EJB or Web application modules packaged in an enterprise application (EAR), or a single plain JAR file that is registered with the Java EE application container upon deployment. After the library has been installed and started, other deployed modules can reference the library.
Installing a Java EE library means making its physical file or directory known to WebLogic Server. A Java EE library can be installed as an archived EAR file or as an exploded directory. After you have installed the Java EE library, other deployed modules can start using it.
Your new library appears under the Libraries node. You can make additional changes to the Java library on this page.
Redeploy a Java EE Library
When you update a Java EE library, WebLogic Server redeploys the archive file or exploded directory. Update a library if you have made changes to it and you want to make the changes available to the modules and applications deployed to WebLogic Server that are using the library.
- In the Monitoring Tree, go to Deployments, then Library Management.
- Select the Java EE library that you want to update.
- Decide how you want to update the library:
- Choose Redeploy if the changes to the library are already available on the Administration Server and you only want to make those changes available to the modules and applications that are using the library.
- Choose Upload and Redeploy if you want to upload a new archive file or exploded directory.
In the Source field, enter the path to the new archive file or exploded directory. Make sure the library's latest archive is under the Administration Server's
upload
directory.
- Click Done.
Configure JASPIC for a Web Application
If using JASPIC, you can specify which Authentication Configuration provider applies to a specific Web application.
The Java Authentication Service Provider Interface for Containers (JASPIC) specification defines a service provider interface (SPI). The JASPIC SPI is used by authentication providers that implement message authentication mechanisms that can be integrated in server Web application message processing.
You can review the JASPIC specification at JSR 196: Java Authentication Service Provider Interface for Containers.