Starting the Default WebLogic Server


The following steps describe how to start the default WebLogic Server that is defined in the "myDomain" directory using the startWebLogic script:

  1. From the command line, change the directory to the root of your mydomain directory.

  2. Run the startWebLogic script, as shown in Figure 10.14.

    Figure 10.14. Start WebLogic Server.

    graphics/10fig14.jpg

  3. When you are prompted for an admin-level username and password, enter the respective information you used to create that account during the myDomain configuration.

After WebLogic Server has started, you can start the Administration Console, a Web based resource management tool for WebLogic Server, using the following syntax:

 
 http://hostname:port/console 

For example,

 
 http://localhost:7001/console 

The Administration Console Login screen should appear. Enter the admin-level username and password, as shown in Figure 10.15.

Figure 10.15. Enter the admin-level username and password at the WebLogic Administration Console Login screen.

graphics/10fig15.gif

Figure 10.16 shows the Administration Console screen for the "myDomain" domain.

Figure 10.16. The WebLogic Administration Console for myDomain .

graphics/10fig16.jpg

Caution

You will not be able to start the Default (myserver), Pet Store or Example WebLogic Servers concurrently because they all share the same non-secure (7001) and secure (7002) port information. You will need to configure their port information separately through the Administration Console, which is discussed later in this chapter.


Bypassing the Username and Password Prompt Using the Boot Identity File

Using a boot identity file is the most secure and convenient way to bypass the WebLogic username and password prompt. To create a boot identify file, follow these steps:

  1. Create a text file and enter the following two lines:

       
      username=  username  password=  password   

    The username and password values must match an existing user account that has the capability to start WebLogic Server.

  2. Save the file as boot.properties and locate it in the root of your myDomain directory.

When you first start WebLogic Server, the server will read the file and overwrite it with encrypted versions of the username and password. From this point forward, WebLogic Server will use the boot.properties file to attain the credentials to start up.

Starting the Pet Store Sample Application

If you installed the Server Examples components (refer to Figure 10.2 earlier in this chapter), starting and navigating through the Pet Store application is always a good validation of a successful WebLogic Server installation because it is the J2EE reference application provided by Sun. If you are learning WebLogic Server and J2EE development, understanding the composition of the Pet Store example and how it runs in WebLogic Server is a superb place to start.

The following steps describe how to start the WebLogic Server instance of the Pet Store application:

  1. From the command line, change directory to the root of your Pet Store application domain, which should be located in the following location:

    BEA_HOME \weblogic70\samples\server\config\petstore

  2. Run the startPetStore.cmd script.

  3. Upon successfully starting the Pet Store application, your browser will automatically start the Java Pet Store Demo page, as shown in Figure 10.17.

    Figure 10.17. Start the Pet Store Demo Web page.

    graphics/10fig17.jpg

    From this page you can gain an overview of the WebLogic Server implementation of the Pet Store reference J2EE application.

  4. Click the enter the store hyperlink to launch the Pet Store application storefront, as shown in Figure 10.18.

    Figure 10.18. Launch the Pet Store application.

    graphics/10fig18.gif



BEA WebLogic Platform 7
BEA WebLogic Platform 7
ISBN: 0789727129
EAN: 2147483647
Year: 2003
Pages: 360

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net