Java project deployment to the Tomcat server

Source: Internet
Author: User
Tags tomcat server

All Java programmers, when writing web programs, typically write a Web Project through tools such as MyEclipse, and use tools to associate the Web program with Tomcat. In fact, we can deploy to the Tomcat server through the Java program, we need to start manually to modify.
When we create a Java project, we have to pay attention to the structure of the Web program on Tomcat, all of which require us to manually modify Java project into a web format, such as:


 The packages required for the project are imported into Lib under Web-inf.

Then it needs to be configured in Tomcat. You need to create a new Catalina directory under the Conf directory of Tomcat, create a new localhost directory under the Catalina directory,
Then in the localhost directory, create a new XML file, such as Demo.xml, add <context docbase= "D:\workspace\Java proecjt\webroot" >.
Find the Webroot directory just Java proejct, the next time you start Tomcat (6.0), you can access the project directly, the project name is the demo "XML file name."
If use is tomcat5.0, you need to define the name of the project.

Java project deployment to the Tomcat server

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.