How to import the Tomcat project deployment start in eclipse

Source: Internet
Author: User
Tags tomcat server

(1) Get the target project

First, download the project you want to deploy to your local eclipse workspace from a remote server via Git or the SVN tool

(2) Project Import

Way 1:file--new project--New Tomcat Project

The Tomcat project is named in accordance with the local project file name so that it is automatically populated with the contents of the local project under the new project.

Mode 2: file--import--maven--existing Maven Projects (This way there is a problem importing JSP files, it may be wrong, not recommended)

(3) Importing project-dependent jar package

Right-click on the project start Explorer---start shell here input command ant depend:reset wait build successful

(4) Right-click on the project name, refresh

If there are still some files have errors, then check each one, to exclude the cause of the error, if there are individual files due to Chinese garbled problem error, the entire environment has been set up UTF-8 still does not work, you can try to open the file as Notepad, and then replace back

(5) Configuring the Tomcat Server.xml file

<context path= "" reloadable= "true" docbase= "Project Path"/>
</Host>

(6) Configuring the host

127.0.0.1 Test

(7) Start the Tomcat server

Input Address: test//folder name/folder jsp file orhtml file name http://test/login/index.jsp

So far, the whole process has been combed.

How to import the Tomcat project deployment start in eclipse

Related Article

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.