Eclipse deployment Project to Tomcat, get project path

Source: Internet
Author: User

Not very strong, but some knowledge is written by oneself. I saw my things were turned to others without my name, hope to have a snack, reproduced when the original source, thank you: http://blog.csdn.net/chunlei_zhang/article/details/38778451

Recently with Eclipse4.3 learned a lot of things, recently encountered a local problem, is to deploy the project to Tomcat, and then from my project to get Tomcat WebApp deployment path problems, such as I used in the project User.dir get the path is the installation path of Eclipse, looked at the network On the method, do not know is not I use tomcat7.0522 reason, anyway not, later found, method front and those rotten street operation, there are several points to note:

A), first configure Tomcat to eclipse, this should be very simple, the mess is ready after the servers meet in the right-click New Tomcat server, such as:


II) Double click on the server and the following dialog box appears. (When the server has an item, the popup server can not be saved after the modification, so it is better to clean the server after the project is deleted), Pop-up dialog box:


c) Modify the above all red, both server locations and select the second item: User TOMCAT installation (takes control of Tomcat Instatllation). The Server path does not need to be modified, Deploy path: Set to your local Tomcat WebApp directory, as my Tomcat is on the D drive, so the results are as follows:


Four) set up to this place after many of the blog is over, actually said a lot of blog from a Daniel Bar, we are copied over the past (waste everyone time to check the garbage blog), I used their or can not solve the problem, and then know that the need for technical changes, steps: 1) the server Option options are all emptied. 2) after executing 1) Clear the option under the Select Publishing actions under the publishing module below:

Step 1:


Step 2:


That's all you can do. Maybe I can not solve your problem, perhaps with the version, my version is eclipse4.3+tocmat7.054

Eclipse deployment Project to Tomcat, get project path

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.