Deploying Web Apps

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.