Converting the weblogic.properties File

If you have used a version of Weblogic Server earlier than 6.0, you can convert your weblogic.properties files into a configuration file (config.xml) for a WebLogic Server 8.x domain. The resources defined in a single XML configuration file comprise a single domain.

Locate the root directory for the WebLogic Server installation you want to convert. All of the weblogic.properties files you convert must reside under this root, and these files must be located on the same machine that this server is running on.

Click the Convert weblogic.properties link in the right pane of the Administration Console.

Use the links to navigate the server's file system to find the weblogic root. When you have found it, click the icon next to it and move on to the next step.

The conversion utility provides a list of entities that have been identified as potential servers and clusters.

Select the Root directory (which is the location of the global weblogic.properties files) by navigating the tree using the icon on the left side of the pane.

If the SSL security files specified in the weblogic.properties are not in the old server specific directory then they will not be set in the config.xml and will have to be copied into the <NewDomain>/<ServerName>(Server Specific Directory), and be set in the config.xml.

Servlets

All servlets registered in the weblogic.properties are converted into a single web application

The conversion tool creates the necessary files like web.xml and weblogic.xml in one of the following directories:

<NewDomain>/applications/DefaultWebApp_myserver/WEB-INF directory and will be made as the default webapp, unless there is already a default web app declared in the properties file.

<NewDomain>/<Server_Name>/WEB-INF, if there is already a default web app declared.

All the Servlet Classes registered individually as weblogic.httpd.register in the old weblogic.properties except for the weblogic internal servlets have to be copied under the new weblogic(7.x) server tree structure as specified in the web.xml

The servlet class HelloWorldServlet.class should be copied into the corresponding WEB-INF/classes/weblogic/hello directory. The current directory signifies the directory from which the Weblogic Server(7.x) will be started with the new configuration.

EJB JAR files and Web App WAR files

If the weblogic.properties has weblogic.ejb.deploy and weblogic.httpd.webApp.<webAppName> pointing to a relative directory then those JAR and WAR files have to be copied under the new Weblogic(7.x) server tree structure.

Example

weblogic.ejb.deploy=weblogic/ejb/HelloEJB.jar

Then the JAR file has to be copied under ./weblogic/ejb/ directory.

The "." indicates the directory from which the server will be started with the new configuration.