Deploying to a Registered Tomcat Web Server

See Also

When you install a version of the IDE that contains Java EE technologies, you can choose to install and register the Tomcat Web Server during the installation process. You can also configure the IDE to deploy web applications to other installations of supported versions of the Tomcat Web Server. These versions need to be registered first.

Use the following steps to check that the Tomcat Web Server is the target server for the current application.

To check the target server:

  1. Right-click the project node in the Projects window and choose Properties.
  2. Select Run in the Project Properties dialog box.
  3. Look at the target server specified in the Server drop-down. Verify that it is the one you want to use. Select a different server if necessary.
  4. Click OK.

To deploy to the target server:

  1. (Optional) Define parameters to pass to one or more JSP files.
  2. In the Projects window, right-click the project's node.
  3. Choose Run Project from the contextual menu.

The IDE sends the web application's URL to the server. The URL is derived from the server's URL and the web application's context path. The server runs through the files listed in the welcome-file-list element in the deployment descriptor (the web.xml file), displaying the first one it finds. If the server does not find a welcome file, the server's default servlet displays the root of the web application. You can change the behavior of the default servlet in the web.xml file.

See Also
About the Tomcat Web Server
Viewing the Tomcat Web Server in the IDE
Customizing the Tomcat Web Server
Customizing the Tomcat Configuration File

Legal Notices