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.
- 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
- 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.
- Modify the Properties->java Build path->data output folder for the project to/webcontent/web-inf/classes folders under the project.
- Remove all the jar packages under Webroot in the properties->libraries of the project and add them back to webcontent.
- 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