The Servers node in the Runtime window and its subnodes represent the Tomcat Web Server, its instances, and the contexts that have been deployed by an instance to the server. If you right-click a node and display its contextual menu, you see a list of menu items that enable you to work with this node.
To view the Tomcat Web Server in the IDE:
The Servers node shows
all the servers that are registered in the IDE, such as the
bundled Tomcat Web Server.
The instance node
represents a physical installation of a Tomcat Web Server. When
you install the IDE, the installer automatically adds an instance for the
bundled Tomcat Web Server. This installation cannot be removed. You can add additional
Tomcat Web Servers using the Add New Server dialog box.
The web applications node lists
the web application contexts that have been deployed to the server. It appears
under the server's instance node in the Runtime window.
The IDE adds a web application's context node
the first time you execute the web application from the IDE.
When the server receives a HTTP request, the server selects the web application
for processing the request by matching the longest possible prefix of the Request
URI against all of the defined context paths.
![]() |
In the Projects and Files windows, the Tomcat context descriptor node
![]() The context.xml file is used for setting a web application context path and for advanced web application configuration. For simple web applications, you do not need to edit the context.xml file because you use the WEB-INF property sheet to set the context path and the deployment descriptor (web.xml) to configure the web application. The IDE maintains the context element's path attribute automatically when you edit the Context Path in the WEB-INF properties sheet. If you update the context path in one place, the IDE updates the value in the other place. You can use the context.xml file to make the following settings:
|