Configuring Web Applications

The configuration for a web application deployed on WebLogic is spread across the application’s deployment descriptors and the server configuration file. For instance:

  • The session timeout for the web application can be configured using the session-timeout element within the standard web.xml deployment descriptor.

  • The JSP compilation parameters for a web application are defined in the WebLogic-specific weblogic.xml deployment descriptor.

  • The staging mode setting, which determines how a web application is deployed, can be found in the server’s config.xml file.

The easiest approach to editing the deployment descriptors is to use either the Administration Console or WebLogic Builder. The following sections examine WebLogic-specific configuration settings related to web applications.

Context Root

A web application is rooted at a specific path within the web server, called the context root. For example, if the context root for a web application is set to here, you could access it by using a URL of the form http://server:port/here/index.html. If you do not explicitly set a context root for the web application, its default value depends on how the web application has been packaged:

  • If the web application is deployed in the exploded format, its default context root is the name of the folder that holds the contents of the web application.

  • If the contents of the web application have been packaged as a web archive, its default context root is the name of the web ...

Get WebLogic: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.