Sample web.xml This section contains a sample deployment descriptor file
10-12 Using Clusters for Oracle WebLogic Server
– KeyStoreType—The key store type. If it is not defined, the default
type will be used instead.
– PrivateKeyAlias—The private key alias.
– KeyStorePasswordProperties—A property file in your Web
application that defines encrypted passwords to access the key store and private key alias. The file contents looks like this:
KeyStorePassword={AES}yWvi0qhfM4IvzoghzjHjxpJUkQPF8OWuSfh0f0Ss= PrivateKeyPassword={AES}wr86u9Z5DHr+5p7WIbzTDSy4Msl7EYnXK5xzcarDQ=
You must use the weblogic.security.Encrypt command-line utility to encrypt the password. For more information on the Encrypt utility, as
well as the CertGen, and der2pem utilities, see Using the Oracle WebLogic Server Java Utilities in the Command Reference for Oracle
WebLogic Server.
d.
Create servlet-mapping stanzas to specify the requests that the servlet will proxy to the cluster, using the url-pattern element to identify
specific file extensions, for example .jsp, or .html. Define each pattern in a separate servlet-mapping stanza.
You can set the url-pattern to to proxy any request that cannot be resolved by WebLogic Server to the remote server instance. If you do so, you
must also specifically map the following extensions: .jsp, .html, and .html, to proxy files ending with those extensions. For an example, see
Section 10.2.9.1.1, Sample web.xml.
e.
Define, as appropriate, any additional parameters. See Table 10–1
for a list of key parameters. See Parameters for Web Server Plug-ins in Using Web Server
Plug-Ins with WebLogic Server for a complete list. Follow the syntax instructions in
Section 10.2.9.1.3, Proxy Servlet Deployment Parameters.
3.
Create the weblogic.xml deployment descriptor file for the servlet. This file must reside in the \WEB-INF subdirectory of the Web application directory.
Assign the proxy servlet as the default Web application for the Managed Server on the proxy machine by setting the context-root element to a forward slash
character in the weblogic-web-app stanza. For an example, see Section 10.2.9.1.2, Sample weblogic.xml.
4.
In the Administration Console, deploy the servlet to the Managed Server on your proxy server machine. For instructions, see Deploy applications and modules in
Oracle WebLogic Server Administration Console Help.