Project names are different when Web projects in Eclipse are published to Tomcat

Source: Internet
Author: User

Today you use Eclipse for Project debugging development, sometimes you need to modify the name of the project, but you can still access it using the old project name when you deploy to Tomcat in Eclipse.

The published project will show the wrong path, modify the process,

Locate the project directory, locate the Org.eclipse.wst.common.component file in the. Settings directory, modify the file contents

<?xml version= "1.0" encoding= "UTF-8"?>
<project-modules id= "Modulecoreid" project-version= "1.5.0" >
<wb-module deploy-name= "dpmjbyc" >
<wb-resource deploy-path= "/" source-path= "/" tag= "Defaultrootsource"/>
<wb-resource deploy-path= "/web-inf/classes" source-path= "/web-inf/src"/>
<wb-resource deploy-path= "/web-inf/classes" source-path= "/avenswebserver_src"/>
<wb-resource deploy-path= "/web-inf/classes" source-path= "/avensapi_src"/>
<wb-resource deploy-path= "/web-inf/classes" source-path= "/avensengine_src"/>
<property name= "Java-output-path" value= "/dpmjbyc/web-inf/classes"/>
<property name= "Me-merge-utility-modules" value= "true"/>
<property name= "Context-root" value= "/"/>
</wb-module>
</project-modules>

The middle of the

<wb-module deploy-name= "dpmjbyc" >
<property name= "Java-output-path" value= "/dpmjbyc/web-inf/classes"/>

The DPMJBYC in the two lines are modified to dpmwwxf and then the project is refreshed in Eclipse and re-released.

Project names are different when Web projects in Eclipse are published to Tomcat

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.