2 Upgrading WebLogic Server 4.5 and 5.1 to Version 7.0
2-6 BEA WebLogic Server 7.0 Upgrade Guide
The weblogic.xml file contains WebLogic-specific attributes for a Web application.
You define the following attributes in this file: HTTP session parameters, HTTP
cookie parameters, JSP parameters, resource references, security role assignments,
character set mappings, and container attributes.
The deployment descriptor
web.xml file is defined by the servlet 2.3 specification
from Sun Microsystems. The
web.xml file defines each servlet and JSP page and
enumerates enterprise beans referenced in the Web application. This deployment
descriptor can be used to deploy a Web Application on any J2EE-compliant
application server.
Convert your existing
weblogic.properties file to the appropriate XML file by
following these steps:
1. Start the WebLogic Server 7.0 examples server. For information on starting the
WebLogic Server 7.0 examples server, see Starting the Examples, Pet Store, and
Workshop Examples Servers in Performing Post-Installation Tasks.
You will be prompted for a user name and password.
2. At the home page for the WebLogic Administration Console (for example:
http://localhost:7001/console/index.jsp) click on the “Convert
weblogic.properties
” link under the heading Helpful Tools.
3. Use the Console’s links to navigate the server's file system and find the root
directory of your previous version of WebLogic Server (for example:
C:\weblogic). When you have found the correct directory, click on the icon
next to it to select it.
4. If you have additional per server
weblogic.properties files or clustering
weblogic.properties files in other directories, select them using the provided
windows. If you have chosen the correct root directory of your previous version
of WebLogic Server, your global
weblogic.properties file will be converted
regardless of any additional properties files that you select.
5. Enter a name for your new domain in the provided window in the Console. Click
Convert.
When you convert your properties file, the
web.xml and weblogic.xml files for the
default web application are created for you and placed inside a
domain\applications\DefaultWebApp_myserver\WEB-INF directory. The
process of converting your
weblogic.properties file also creates the config.xml
file located in
domain. This file contains configuration information specific to your
domain.