Record: The process of deploying an older version of a dynamic Web project to eclipse

Source: Internet
Author: User

Today, when trying to deploy an online mall project with Eclipse to Tomcat, there are some problems that have finally been resolved, as recorded here.

    1. First import the original project, the imported project is in the form of a Java project, so to convert it to Dynamic Web project, the concrete way to see my essay: Change the imported Java project type to Dynamic Web project

    2. The original project's WebApp folder name is called Webroot, and I am now using the Eclipse version of the new dynamic Web Project WebApp directory named WebContent, so if you do not modify it, you will be reported 404 error. So modify the Webroot folder name to WebContent.
    3. Modify the Properties->java Build path->data output folder for the project to/webcontent/web-inf/classes folders under the project.
    4. Remove all the jar packages under Webroot in the properties->libraries of the project and add them back to webcontent.
    5. Delete Web. xml file (before deleting, start Tomcat will encounter problems, after the deletion is normal, do not know where the problem is).

At this point, the project deployment is complete.

Logging: The process of deploying an older version of a dynamic Web project to eclipse

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.