Deploy and Undeploy Applications

Purpose

In this OBE tutorial, you will use the WebLogic Server administration console to deploy a simple JavaEE Web application. After testing the application, you will then redeploy an updated version of it. Finally, you will use the console to undeploy the application.

Time to Complete

Approximately 20 minutes

Topics

This OBE tutorial covers the following topics:

 Overview
 System Requirements
 Installing and Starting an Application
 Testing the Application
 Updating an Application
 Stopping and Deleting an Application
 Summary
 Related information

 

Viewing Screenshots

 Place the cursor over this icon to load and view all the screenshots for this tutorial. (Caution: Because this action loads all screenshots simultaneously, response time may be slow depending on your Internet connection.)

Alternatively, you can place the cursor over each individual icon in the following steps to load and view only the screenshot associated with that step.

Overview

Interactive Web sites are developed and packaged in JavaEE as Web applications. Web applications, like any JavaEE application, can be deployed as an archive file. Web application archives use the file extension .war. JavaEE applications can include XML files called deployment descriptors to enable or configure JavaEE and WebLogic-specific features. For example, a Web application may use a deployment descriptor to specify the URL path that clients will use to access it from a Web browser.

All JavaEE application types are deployed in the same fashion on WebLogic Server using the administration console, the WebLogic Scripting Tool (WLST), or other available tools. All WebLogic Server applications go through two main phases during deployment. First, in the "prepared" phase, they are installed to your domain's administration server and distributed to target managed servers. Next, a prepared application can be "activated" so that it is accessible to clients on the target servers. When an updated version of your application is available, the application must essentially complete these same two phases again.

Back to Topic List

System Requirements

Make sure that your system environment meets the following requirements:

Software Requirements

Before starting this tutorial, first complete the following prerequisite tutorials:

Installing and Configuring Oracle WebLogic Server
Configuring Oracle WebLogic Server Managed Instances

Minimum Hardware Requirements

Item Specification
Processor Speed 1 GHz
Memory 1 GB
Free Hard Disk Space 500MB

Back to Topic List

Installing and Starting an Application

Perform the following steps:

1.

Start your administration server and dizzy1 managed server, if not already started. If prompted, enter your domain's administrative username and password.



2.

Download the benefits.zip file that contains the sample Web application benefits.war file.



3.

Launch a Web browser and access your domain's administration console. The default port is 7001:

http://localhost:7001



4.

Log into the console using your domain's administrative username and password.



5.

In the Change Center panel, click the Lock & Edit button:

 

 

6.

In the Domain Structure panel, click Deployments:

 

 

7.

In the main content panel, click the Install button:

 

 

8.

Find the Current Location field. Use the supplied links to browse to the location in which you placed the downloaded benefits.war file. Then select the radio button for benefits.war, and click Next:

 

 

9.

On the next page, accept the default option, and click Next.



10.

Under Servers, select the dizzy1 checkbox, and click Next:

 

 

11.

On the next page, accept the default options, and click Finish .



12.

In the Change Center panel, click Activate Changes:

 

 

13.

In the Domain Structure panel, click Deployments once again.



14.

Select the checkbox for the benefits application, and click the Start button:

 

 

15.

From the drop down list, select the Servicing All Requests option. Click Yes when prompted:

 

 

16.

Confirm that under the State column, the benefits application is listed as "Active".



Back to Topic List

Testing the Application

Perform the following steps:

1.

Browse to the following URL:

http://localhost:7003/benefits

 

 

2.

Select one or more of the available checkboxes and click the Get Information button.



3.

Click the Back to Home Page link:

 

 

Back to Topic List

Updating an Application

Perform the following steps:

1.

Download an updated version of benefits.war. Replace the current file. The Web application's deployment descriptors have been modified to use a different URL context path.



2.

Return to the Deployments page of the administration console.



3.

In the Change Center panel, click Lock and Edit.

 

4.

Select the checkbox for the benefits application, and click the Update button:

 

 

5.

Click Finish.



6.

Click Activate Changes in the Change Center panel.

 

7.

Direct your Web browser to the URL:

http://localhost:7003

The benefits application should now be available at this new URL path.

  Back to Topic List

Stopping and Deleting an Application

Perform the following steps:

1.

Return to the Deployments page of the administration console.



2.

Select the checkbox for the benefits application, and click the Stop button:

 

 

3.

Select the Force Stop Now option. Click Yes when prompted.

Tip: To avoid these confimation pages in the future, you can disable the Ask for Confirmation in Operations option in your console Preferences.

 

4.

Test the benefits application again. It should no longer be available.

Tip: You may continue to see a cached version of the benefits page. Click the Refresh button in your browser to bypass the cache.

 


5.

Return to the Deployments page of the administration console.

 


6.

In the Change Center panel, click Lock and Edit.



7.

Select the checkbox for the benefits application, and click the Delete button. Click Yes when prompted:

 

 

8.

In the Change Center panel, click Activate Changes .



  Back to Topic List

Summary

In this lesson, you learned how to:

 Install a JavaEE Web application using the WebLogic administration console, and target it to one or more servers
 Start and stop an application with the console
 Update an application with the console
 Delete an application from a domain using the console

Related Information

 To ask a question about this OBE tutorial, post a query on the OBE Discussion Forum.

Back to Topic List

 Place the cursor over this icon to hide all screenshots.

Left Curve
Popular Downloads
Right Curve
Untitled Document