Bug 274722 - deploy-name not updated in org.eclipse.wst.common.component
Summary: deploy-name not updated in org.eclipse.wst.common.component
Status: NEW
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: 2.0.2   Edit
Hardware: All All
: P3 major with 1 vote (vote)
Target Milestone: Future   Edit
Assignee: Carl Anderson CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2009-05-02 08:43 EDT by adel g CLA
Modified: 2015-10-19 04:46 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description adel g CLA 2009-05-02 08:43:09 EDT
Build ID: M20080221-1800

Steps To Reproduce:
1. Make a dynamic web project and deploy somewhere
2. Copy this project in eclipse to a new project (e.g. copy&pase) and give the new project another name
3. Rename also the context root in the new project using the eclipse project properties (e.g. take also the project name of the new project)
4. The new project will keep its old deploy-name 
5. The deploy-name is used in the Server View and so it is very confusing to see the old deploy-name
6. The deploy-name is used to deploy to e.g. a Tomcat container and so it is very confusing that it is not the same name as the context root --> Tomcat will consider the deploy-name as it's context root

More information:
Sample of a wrong deploy-name in the new copied project: 

Bug: TomcatJAXWS should be HelloWorld

File .settings/org.eclipse.wst.common.component:

<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
    <wb-module deploy-name="TomcatJAXWS">
        <wb-resource deploy-path="/" source-path="/WebContent"/>
        <wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
        <wb-resource deploy-path="/WEB-INF/classes" source-path="/generated/src"/>
        <property name="java-output-path" value="build/classes"/>
        <property name="context-root" value="HelloWorld"/>
    </wb-module>
</project-modules>
Comment 1 Konstantin Komissarchik CLA 2009-05-04 11:28:28 EDT
Fixing the component.
Comment 2 javier.diazch CLA 2011-04-08 03:21:07 EDT
What's the status of this bug?
Comment 3 Javier Diaz CLA 2011-04-08 03:24:13 EDT
What's the status of this bug?
Comment 4 Robert Olofsson CLA 2014-09-03 05:03:26 EDT
This bug is still present in Eclipse 4.4.

The deploy-name attribute of the wb-module element in the file org.eclipse.wst.common.component is not updated when a copy of a project is made.
Comment 5 Robert Olofsson CLA 2015-10-19 04:46:45 EDT
Is there anything a mortal man can do to help solve this bug?