Creating a server

You can create a server to identify the runtime environment that you want to use for testing your project resources. The term creating a server defines creating a pointer from the workbench to an existing installation of an application server.

To create a server:
  1. Select any of the following options:
    • In the Servers view (Window > Show View > Servers ), right-click and select New > Server.
    • In the menu bar, click File > New > Other. Expand the Server folder, select Server and click Next.
  2. The New Server wizard opens. This wizard defines a new server, that contains information required to point to a specific runtime environment for local or remote testing, or for publishing to an application server.
  3. In the Select the server type list, select the type of server or test environment where you want to publish or test your resources.
    1. (Optional) Refer to the Description section for brief details about the server you have selected.
    2. (Optional) In the text field under the Select the server type label, you can replace the text type filter text with keywords to filter the list of available application servers. The following are examples of filter keywords:
      Apache
      Filters the list of available servers where the vendor is Apache
      WebSphere
      Filters the list of available servers where the name is WebSphere
      ejb
      Filters the list of available servers that support ejb modules.
      web
      Filters the list of available servers that support Web modules
      5.0
      Filters the list of available servers that are at version, 5.0 or supports JEE 5 specification level.
      1.2
      Filters the list of available servers that supports J2EE 1.2 specification level or any servers that may have a version-level of 1.2.
  4. In the Server's host name field, you can provide the fully qualified DNS name or IP address of the host machine that where the server is running. By default, this field is pre-filled with the default address: localhost.
  5. (Optional) In the Server name field, type a label to identify this server entry in the Servers view. By default, this field is completed with the following naming convention: server type at host name, for example Tomcat v6.0 Server at localhost.
  6. In the Server runtime environment list, select a server runtime environment as defined in the Preferences page (Window > Preferences > Server > Runtime Environments ). You can direct the workbench to use a specific runtime environment of an application server for compiling, testing, or running your application. To modify the server runtime environment, select the Configure runtime environments link. To add a new server runtime environment, select the Add link. For more details about runtime environments, see the Defining the server runtime environments preferences link at the bottom of this topic.
  7. Click Next and follow the instructions in the wizard to specify the details of the server that you want to create.
  8. Click Finish. The new server appears in the Servers view.
Related tasks
Defining the server runtime environments preferences