Deploy the Publish Web project in Eclipse and change the path of the Eclipseweb project publication __web

Source: Internet
Author: User
Tags tomcat

My working space: d:workspace
Web project name: XXX
After eclipse is configured with Tomcat, the path published to IS D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
Under
This path is too deep to bear.
I want to use Tomcat's default path
For example, my Tomcat is installed under D:\tomcat
The default publishing path is D:\tomcat\webapps
How do I make changes in eclipse?

The answer is below.

1: Locate the Server panel, right-click the current Tomcat, remove all of the projects first
2: Right-click the Tomcat and choose clean ... Clear it.
3: Double click on the Tomcat, will open the Properties panel, find the second Server on the left Locations, your box selected should be the first, you select the third, in the Server path to enter the path you want, save is ready

You can also choose the second one is the installation path for Tomcat

Of course, you can also publish by configuring Tomcat

Modify Server.xml

Add in front of </Host>

<context docbase= "D:\apache-tomcat-6.0.20\webapps\Test" path= "/test" reloadable= "true" source= " Org.eclipse.jst.jee.server:Test "/>

Path refers to the access path: http://localhost:8080/Test

Docbase is the Tomcat 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.