Editing the WebLogic web application deployment descriptor
A WebLogic web application can have two deployment descriptors, web.xml and weblogic.xml. The web.xml deployment descriptor is defined by the Servlet specification from Sun Microsystems and is required. The weblogic.xml deployment descriptor is specific to WebLogic Server and is optional. WebLogic-enabled projects contain a weblogic.xml deployment descriptor.
For information about editing web.xml see the IBM Rational Developer documentation.
The WebLogic web application deployment descriptor can be edited directly as follows:
- Switch to the J2EE perspective.
- In the Project Explorer view, expand the web project that has the deployment descriptor you want to edit.
- Within the project, you will find a WebLogic folder labeled wls81 (for WebLogic Server 8.1), wls70 (for WebLogic Server 7.0) or wls61 (for WebLogic Server 6.1).
- Expand the folder and then double-click on weblogic.xml. This opens the WebLogic-specific deployment descriptor in the XML editor.
Notes:
- The Web project must be targeted to a WebLogic server runtime.
- In order to debug JSPs, you must ensure the keepgenerated flag is set to true and a valid workingDir is specified in weblogic.xml. Refer to the BEA WebLogic Server documentation for more information.
Related concepts
Enabling WebLogic support