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.
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:
Start the WebLogic Server Administration Console.
Select the Domain in which you will be working.
In the left pane of the Console, click Deployments.
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.
Select the Configure a new Web Application option.
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.
Click [select] to the left of a directory or file to choose it and proceed to the next step.
Select a Target Server from among Available Servers.
Enter a name for the Web Application in the provided field.
Click Configure and Deploy. The Console will display the Deploy panel, which lists deployment status and deployment activities for the Web Application.
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.
Expand the Deployments node in the left pane.
Right-click on the Web Applications node.
Select Configure a New Web Application.
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.
Select a Target Server from among Available Servers.
Enter a name for the Web Application in the provided field.
Click Configure and Deploy. The Console will display the Deploy panel, which lists deployment status and deployment activities for the Web Application.
Use the Deploy button to deploy the application to all or selected targets or undeploy it from all or selected targets.
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.