Configuring a WebLogic Domain and ServerWhat this Setup is aboutA domain is an interrelated set of WebLogic Server resources managed as a unit. Adomain includes one or more administration servers and managed servers. Variousclients use the administration server to configure the system. The managed server is usedto run actual applications.We will use the Domain Configuration wizard to create a new domain called mydomain.What You Should Be Able to DoFollowing this setup, you should be able to configure a new domain using theConfiguration Wizard.
Instructions1. Create a DomainFrom the Start menu select Programs -> BEA WebLogic Platform 8.1 ->Configuration Wizard. This will launch the tool.From the first screen, select Create a new WebLogic configuration and then click Next.From the list of Configuration Templates select Basic WebLogic Server Domain.
Select Custom for Configuration type. Click Next.
You will be prompted to enter a name for the new administration server. EnterAdminServer and click Next.The Configuration Wizard will then ask if you would like to have your WebLogicconfiguration distributed across managed servers, clusters and physical machines. ClickYes and Next.
You will now specify the creation of a Managed Server. Click the Add button in the topright corner, and specify the name of the new server to be myserver. Change the ListenPort to 7005 and then click Next.
We will not configure a Cluster at this time, so simply click Next on the ConfigureClusters screen.Machines will not be configured at this time, so click Next on the Configure Machinesscreen.Similarly, Database Options will also be configured in a later lab, so for now simplyselect No and then click Next on the Database (JDBC) Options screen.
On the Messaging (JMS) Options screen, select No and then click Next. Messaging andJMS will be configured in a future lab.
You will then be asked to specify the administrative username and password for the newdomain. Enter weblogic for both username and password. Click Next.You will now have the option to Configure Windows Options. Select Yes in the leftpane (so we can have a start menu shortcut) and select No in the right pane so thatWebLogic Server will not run as a service. Click Next.
The Configuration Wizard will ask you to Build Start Menu Entries. Accept thedefaults by clicking Next.
You will then be asked to Configure Server Start Mode and Java SDK. Set theWebLogic Configuration Start Mode to be Development Mode by selecting it in the leftpane, and select the Sun SDK 1.4.1_03-ea @ C:beajdk141_03 in the right pane. ClickNext.
You will now be asked to Create the WebLogic Configuration. Here you will specifythe new domain’s name and install path. We will name the domain mydomain (byentering it in the Configuration Name field in the bottom right corner) and choose thedefault location (which should automatically be set to c:beauser_projectsdomainsmydomain). Click Create when done.Congratulations! You have created a WebLogic Server 8.1 domain. The domain has anadministrative server called AdminServer and one managed server called myserver.Click Done on the Creating Configuration screen to exit the Configuration Wizard.
2. Verify domain creation.Using the file explorer, verify that the domain directoryC:beauser_projectsdomainsmydomain was created. Verify the existence of theconfig.xml file and the startWebLogic.cmd file. The latter is used to launch the AdminServer.Start the Admin Server by selecting Start -> Programs -> BEA WebLogic Platform8.1 -> User Projects -> mydomain -> Start Server. Wait until you see a Serverstarted in RUNNING mode message.Next, we will launch the admin console. Using a Web browser, open the AdministrationConsole with the URL: http://localhost:7001/consoleYou should be presented with a login page. Specify username and password to beweblogic and then click on Sign In to login. This will bring up the administrationconsole or adminconsole. In the left pane of the administration console, click on Servers to view the status of thetwo servers we have created. Note that the status of AdminServer is RUNNING whilethe status of myserver is UNKNOWN. This is because myserver has not been startedyet.
Next, launch the managed server myserver. Open another DOS command window.Change to c:/bea/user_projects/domains/mydomain. Enter: startManagedWebLogic myserver http://localhost:7001Note the syntax of the command: StartmanagedWebLogic SERVER_NAME ADMIN_SERVER_ADDRESSMainServer server will begin to boot. Wait until you see the message “Server Started inRUNNING mode”. In the admin console, click on Servers again to refresh the status.Congratulations! You have finished creating a domain complete with an administrationserver and a single managed server. Now shutdown each server from the console andclose the browser.