Deploying a Web Application

See Also

When you run a web application, the IDE automatically builds, deploys, and executes the web application using the project's target server. By default, the index.jsp file is displayed as the welcome file when the application is launched.

To deploy a web application:

  1. (Optional) Define parameters to pass to one or more JSP files, servlets, or both.
  2. (Optional) Specify a different welcome file by right-clicking the project node in the Projects window, choosing Properties, clicking Run, and typing it in the Relative URL text box.
    tip  The welcome file specified in the Project Properties dialog box overrides the welcome file set in the web.xml file. If no welcome file is defined in the Project Properties dialog box, the first existing welcome file defined in the web.xml file's welcome-file-list is displayed. 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.
  3. (Optional) Specify a different target server or browser.
  4. In the Projects window, right-click the project's node and choose Run Project.
The IDE sends the web application's URL to the server. The URL is derived from the server's URL, the web application's context path, and the relative URL or welcome file. The first time you deploy an application per session to the Tomcat Web Server, you need to authenticate yourself.

Troubleshooting

The Output window displays error information and the HTTP monitor displays requests, data states, and the servlet environment.

See Also
About Deploying Web Applications
Running a JSP File
Running a Servlet
Redeploying an Application to a Different Server

Legal Notices