How Do I: Create a New WebLogic Workshop-enabled WebLogic Server Domain?

This topic describes how to create a new WebLogic Server domain that is configured for building and testing web services with WebLogic Workshop.

To modify an existing domain, see How Do I: WebLogic Workshop-Enable an Existing WebLogic Server Domain?

To Create a New WebLogic Workshop-Enabled Domain

  1. Run the Domain Configuration Wizard by selecting Start | BEA WebLogic Platform 7.0 | Domain Configuration Wizard.

  2. On the Choose Domain Type and Name page, select WebLogic Workshop as the domain template, and enter a name for the new domain.

  3. Select the server type. If you are creating a new domain on your development server, select the Single Server (Standalone Server) option.

  4. Specify a directory for the domain.

  5. Specify the server name, the listen address if it differs from the server name, the listen port, and the secure listen port.

6. Enter an administrative user name and password and finish the wizard.

To Run WebLogic Workshop in the New Domain

  1. Launch WebLogic Workshop.

  2. Choose Preferences from the Tools menu.

  3. On the Paths tab, change the Config directory option to point to the directory that contains the new domain, which you specified in Step 4 above. For example, if you’ve created the domain C:\bea\user_projects\mydomain, you would then set the Config directory to C:\bea\user_projects, then choose mydomain from the Domain list. When you modify the Config directory setting, the values in the Domain list will be updated to show the domains available in that directory.

  4. Close the Preferences dialog.

  5. From the File menu, create a new project in this domain or open the DefaultWebApp project.

Note: The project that is open in WebLogic Workshop must be part of the domain specified in the Config directory setting in order to design and test it. If the project that is open in WebLogic Workshop is not part of the domain that you’ve specified in the Config directory setting, the server indicator will show that WebLogic Server is disabled. If you try to test a service in the project, you’ll get an error message stating that you need to change to a different project.

To Verify that a Domain is WebLogic Workshop-Enabled

1. Run WebLogic Server in the domain you want to test.

2. In your web browser, type http://<server name>:<port number>/<project name>/jwsdir. For example, if you are testing a domain on your local server, and you have configured it to listen to port 7001, and you have a project in that domain named DefaultWebApp, you would type the URL as follows: http://localhost:7001/DefaultWebApp/jwsdir. If the server is running and the domain is WebLogic Workshop-enabled, you'll see the WebLogic Workshop directory for that project. If the server is running but the domain is not WebLogic Workshop-enabled, you'll get a "Page not found" error.

Related Topics

How Do I: WebLogic Workshop-Enable an Existing WebLogic Server Domain?