![]() |
![]() |
e-docs > WebLogic Server > Administration Console Online Help > Domain |
Administration Console Online Help
|
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 7.x Domain. The resources defined in a single XML configuration file comprise a single domain.
The conversion utility provides a list of entities that have been identified as potential servers and clusters.
SSL Security Files are set in the old properties file as
weblogic.security.certificate.server=democert.pem weblogic.security.key.server=demokey.pem weblogic.security.certificate.authority=ca.pem weblogic.security.clientRootCA=SecureServerCA.pem
and will be copied into the <NewDomain>/<ServerName>(Server Specific Directory) where the config.xml file will reflect them as
<SSL
ServerCertificateFileName="<NewDomain>/myserver/democert.pem"
ServerKeyFileName="<NewDomain>/myserver/demokey.pem"
ServerCertificateChainFileName="<NewDomain>/myserver/ca.pem"
TrustedCAFileName="<NewDomain>/myserver/SecureServerCA.pem"
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.
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:
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
<servlet>
<servlet-class>weblogic.hello.HelloWorldServlet</servlet-class>
</servlet>
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.
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.
![]() |
![]() |
![]() |
![]() |
||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |