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:
- (Optional) Define parameters to pass to one or more JSP files, servlets, or both.
- (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.
|
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.
|
- (Optional) Specify a different target server or
browser.
- 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.
- If you get "file not found" errors when you execute a web application, see Accessing
Local files Through a Proxy for possible solutions.
- If you get an error message indicating that a resource is not available,
check to verify the following:
- See Also
- About Deploying Web Applications
- Running a JSP File
- Running a Servlet
- Redeploying an Application to a Different Server
Legal Notices