Technical data

7 Configuring WebLogic Server Web Components
7-6 Configuring and Managing WebLogic Server
Web Applications and Clustering
Web Applications can be deployed in a cluster of WebLogic Servers. When a user
requests a resource from a Web Application, the request is routed to one of the servers
of the cluster that host the Web Application. If an application uses a session object,
then sessions must be replicated across the nodes of the cluster. Several methods of
replicating sessions are provided.
For more information, see Using WebLogic Server Clusters at
http://e-docs.bea.com/wls/docs81b/cluster/index.html.
Designating a Default Web Application
Every server and virtual host in your domain can declare a default Web Application.
The default Web Application responds to any HTTP request that cannot be resolved to
another deployed Web Application. In contrast to all other Web Applications, the
default Web Application does not use the Web Application name as part of the URI.
Any Web Application targeted to a server or virtual host can be declared as the default
Web Application. (Targeting a Web Application is discussed later in this section. For
more information about virtual hosts, see “Configuring Virtual Hosting” on page 7-7).
The examples domain that is shipped with Weblogic Server has a default Web
Application already configured. The default Web Application in this domain is named
DefaultWebApp and is located in the applications directory of the domain.
If you declare a default Web Application that fails to deploy correctly, an error is
logged and users attempting to access the failed default Web Application receive an
HTTP
400 error message.
For example, if your Web Application is called
shopping, you would use the
following URL to access a JSP called
cart.jsp from the Web Application:
http://host:port/shopping/cart.jsp
If, however, you declared shopping as the default Web Application, you would access
cart.jsp with the following URL:
http://host:port/cart.jsp
(Where host is the host name of the machine running WebLogic Server and port is
the port number where the WebLogic Server is listening for requests.)