This document provides instructions for creating a new domain using WLST templates or a script:
1. Create a domain template or use an existing one, then run the config_builder script to generate a template JAR file.
2. Use the WLST createDomain command to create a new domain from the template, specifying the template JAR path, domain directory, and credentials.
3. Alternatively, a domain can be created from a DomainGen.py script by setting the WebLogic environment and running the script, providing any prompted details.
This document provides instructions for creating a new domain using WLST templates or a script:
1. Create a domain template or use an existing one, then run the config_builder script to generate a template JAR file.
2. Use the WLST createDomain command to create a new domain from the template, specifying the template JAR path, domain directory, and credentials.
3. Alternatively, a domain can be created from a DomainGen.py script by setting the WebLogic environment and running the script, providing any prompted details.
2. To create a domain template, C:\Oracle\Middleware\wlserver_10.3\common\bin and run the script config_builder.cmd 3. Follow the wizard and complet it.. 4. It will create a template with the name you specify under C:\bea\user_templates location 5. Now create new domain with WLST command Syntax createDomain(domainTemplate, domainDir, user, password) Ex createDomain('C:/Oracle/Middleware/user_templates/testdomain1.jar','c:/Oracle/Middle ware/user_projects/domains/newwlstdomain', 'weblogic', 'weblogic1') Note: you can use your template jar file. Once you complete the command, you can observer that a new domain created with the name you specified.
Lab: Creating new domain using a script
Open command prompt Set the weblogic environment Now execute the script for domain generation, DomainGen.py java weblogic.WLST C:\examples\DomainGen.py This will prompt to enter details for your domain, give all the details. Now you should have new domain created in the path specified.