Deploying the completed Java Web application to the Tomcat server has the following two scenarios:
I. Implementing in Tomcat by replicating web apps
First, you need to copy the Web App folder to the WebApps folder in the Tomcat installation directory, then start the Tomcat server, then open IE, and enter the URL in the Address bar in the form of "http:/server IP Port/Application name" (for example, http:// 127.0.0.0:8080/firstproject), you can run the Java Web application.
Second, by configuring the <Context> element implementation in the Server.xml file
First locate the Server.xml file under the Conf folder in the Tomcat installation directory, and then add the <Context> element to <Host></Host>. For example: To configure the Web app under the D:\javaWeb\ file test01 can implement code: <context path= "/01" docbase= "d:/javaweb/test01"/> Save the file and restart Tomcat. Enter "http"//localhost:8080/01/in the IE Address bar to access the Web App test01.
Deploying Web Apps