bea.com | products | dev2dev | support | askBEA

Download Docs | Site Map | Glossary
Search

Administration Console Online Help

Web Applications (and Web Services)

A Web Application is a J2EE deployment unit that defines a collection of Web resources such as JSPs, servlets, and HTML pages. Web Applications can also define references to external resources such as EJBs.

These procedures describe how to use the Administration Console to install, configure and deploy Web Applications.

Note: A Web service is a special kind of Web Application. Web services are Web applications that have an additional deployment descriptor called web-services.xml. You install, configure, and deploy Web services the same as Web applications.

For more information about configuring Web Applications, please see Assembling and Configuring Web Applications. For more information about Web services, see Programming WebLogic Web Services. For more information about J2EE applications in the Administration Console, see Applications.

Tasks

Configuring a New Web Application or Web Service

Note: A Web service is a special kind of Web Application. Web services are Web applications that have an additional deployment descriptor called web-services.xml. You install, configure, and deploy Web services the same as Web applications.

To configure and deploy an application using the WebLogic Server Administration Console:

1. Start the WebLogic Server Administration Console.

2. Select the Domain in which you will be working.

3. In the left pane of the Console, click Deployments.

4. In the left pane of the Console, click Web Applications. A table is displayed in the right pane of the Console showing all the deployed Web Applications.

5. Select the Configure a new Web Application option.

6. Locate the .war file you would like to configure. You can also configure an exploded application or component directory. Note that WebLogic Server will deploy all components it finds in and below the specified directory.

7. Click [select] to the left of a directory or file to choose it and proceed to the next step.

8. Select a Target Server from among Available Servers.

9. Enter a name for the Web Application in the provided field.

10. Click Configure and Deploy. The Console will display the Deploy panel, which lists deployment status and deployment activities for the Web Application.

11. Using the available tabs, enter the following information:

    - Configuration—Edit the staging mode and enter the deployment order.

    - Targets—Indicate the Targets-Server for this configured Web Application by moving the server from the Available list to the Chosen list.

    - Deploy—Deploy the application to all or selected targets or undeploy it from all or selected targets.

    - Monitoring—Enable session monitoring for the application.

    - Notes—Enter notes related to the application.

Deploying a New Web Application or Web Service

Note: A Web service is a special kind of Web Application. Web services are Web applications that have an additional deployment descriptor called web-services.xml. You install, configure, and deploy Web services the same as Web applications.

1. Expand the Deployments node in the left pane.

2. Right-click on the Web Applications node.

3. Select Configure a New Web Application.

4. In the right pane, locate the .war file you would like to configure. You can also configure an exploded application or component directory. Click [select] to the left of a directory or file to choose it and proceed to the next step.

5. Select a Target Server from among Available Servers.

6. Enter a name for the Web Application in the provided field.

7. Click Configure and Deploy. The Console will display the Deploy panel, which lists deployment status and deployment activities for the Web Application.

   1. Use the Deploy button to deploy the application to all or selected targets or undeploy it from all or selected targets.

8. Test your Web Application by accessing a resource through a Web browser. Access resources with a URL constructed as follows:

   http://myServer:myPort/myWebApp/resource

   Where:

   myServer is the name of the machine hosting WebLogic Server

   myPort is the port number where WebLogic Server is listening for requests

   myWebApp is the context root of the Web Application (defined in application.xml or weblogic.xml). If the context root is not defined, myWebApp corresponds to archive file name (myWebApp.war, for instance) or the name of the directory containing the Web Application.

   resource is the name of a resource such as a JSP, HTTP servlet, or HTML page.