Converting and Porting Your Existing Applications into Web Applications
BEA WebLogic Server 7.0 Upgrade Guide
2-11
When you convert your
weblogic.properties
file, the appropriate
web.xml
and
weblogic.xml
files are created for you under the directory
domain\applications\DefaultWebApp_myserver\WEB-INF
. Follow the
preceding directory structure and place the XML files in the
domain\applications\webAppName\WEB-INF
directory that you create. For
information on deploying web applications, see
Developing WebLogic Server
Applications
.
XML Deployment Descriptors
The Web Application Deployment Descriptor (
web.xml
) file is a standard J2EE
descriptor used to register your servlets, define servlet initialization parameters,
register JSP tag libraries, define security constraints, and define other Web Application
parameters. For detailed instructions on creating the deployment descriptor, see
Writing the web.xml Deployment Descriptor
in
Assembling and Configuring Web
Applications
.
There is also a WebLogic-specific Deployment Descriptor (
weblogic.xml
). In this
file you define JSP properties, JNDI mappings, security role mappings, and HTTP
session parameters. The WebLogic-specific deployment descriptor also defines how
named resources in the
web.xml
file are mapped to resources residing elsewhere in
WebLogic Server. For detailed instructions on creating the WebLogic-specific
deployment descriptor, see
Writing the WebLogic-Specific Deployment Descriptor
.
This file may not be required if you do not need the preceding properties, mappings,
or parameters.
Use the
web.xml
and
weblogic.xml
files, in conjunction with the Administration
console, to configure your applications. The XML files can be viewed through any text
editor. To edit them, simply make your changes and save the file as
web.xml
or
weblogic.xml
with the appropriate path as specified by the prescribed directory
structure under
“Web Applications Directory Structure” on page 2-10
. See
Assembling
and Configuring Web Applications
for more information. If you do not want to deploy
your applications together as a single Web Application, you need to split up the XML
files that have been created for you, creating the appropriate XML files specific to each
Web Application. Each Web Application needs a
weblogic.xml
file and a
web.xml
file as well as whichever files you choose to put in it.