Creating a Liberty profile server manually

You can create a server from the command prompt.

Procedure

  1. Open a command prompt, then change directory to the wlp/bin directory.

    Where path_to_liberty is the location you installed Liberty on your operating system.

    Example on Windows: C:\Users\mo> cd path_to_liberty\wlp\bin

    Example on Linux: mo@machine01:~> cd path_to_liberty/wlp/bin

  2. Run the following command to create a server. If you do not specify a server name, defaultServer is used.

    Where server_name is the name you want to give your server.

    Example on Windows: C:\wlp\bin> server create server_name

    Example on Linux: mo@machine01:~> server create server_name

    server create server_name

Results

If the server is created successfully, you receive message: Server server_name created.

If the specified server already exists, no server is created and you receive an exception message:
CWWKE0005E: The runtime environment could not be launched.
CWWKE0045E: It was not possible to create the server called server_name because 
the server directory C:\wlp\usr\servers\server_name already exists.

The TCP/IP ports for the new server are not automatically assigned. You can specify those ports by Specifying Liberty profile bootstrap properties other than using the default ones.

What to do next

Configure your server to have the features that your application requires. See Administering the Liberty profile manually.

Icon that indicates the type of topic Task topic

Terms and conditions for information centers | Feedback


Timestamp icon Last updated: Monday, 21 April 2014
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-express-iseries&topic=twlp_setup_new_server
File name: twlp_setup_new_server.html