The filename and project name are not the same in WebApps on the Tomcat server, modify the method

Source: Internet
Author: User

The first method:
Open the directory where the project is located, locate a. mymetadata file, open it with Notepad, and so on, roughly as follows:

<?xml version= "1.0" encoding= "UTF-8"?>
<project-module
Type= "WEB"
Name= "Qingniaocang"
Id= "myeclipse.1311043386109"
context-root= "/qingniaocang"
J2ee-spec= "5.0"
Archive= "Qingniaocang.war" >
<attributes>
<attribute name= "Webrootdir" value= "WebRoot"/>
</attributes>
</project-module>

context-root= "/qingniaocang" for the post-publication directory name, instead of context-root= "/qingniaocang", the first to use MyEclipse to shut down the project, and then reload.

The second method:
Right-click on your project and select Properties----> and then click on the Myeclipse-web option, modify the Web context-root name to match the name of the project you want to modify and the names you renamed earlier.

The filename and project name are not the same in WebApps on the Tomcat server, modify the method

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.