Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348957 - Deployment Assembly page shows duplicate entries
Summary: Deployment Assembly page shows duplicate entries
Status: CLOSED INVALID
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: 3.2.3   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.2.5   Edit
Assignee: Roberto Sanchez Herrera CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-09 16:27 EDT by Gary Karasiuk CLA
Modified: 2011-06-13 07:43 EDT (History)
1 user (show)

See Also:


Attachments
1) Deployment Assembly page before add (57.73 KB, image/gif)
2011-06-09 16:28 EDT, Gary Karasiuk CLA
no flags Details
2) After adding my projects (60.41 KB, image/gif)
2011-06-09 16:29 EDT, Gary Karasiuk CLA
no flags Details
3) After reopening the page (112.37 KB, image/gif)
2011-06-09 16:30 EDT, Gary Karasiuk CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Karasiuk CLA 2011-06-09 16:27:04 EDT
I am running Helios JEE SR2 with a Tomcat server.

I added some projects to my Dynamic Web Project through the Deployment Assembly properties page.

After reopening that page, duplicate entries appeared.
Comment 1 Gary Karasiuk CLA 2011-06-09 16:28:43 EDT
Created attachment 197733 [details]
1) Deployment Assembly page before add
Comment 2 Gary Karasiuk CLA 2011-06-09 16:29:45 EDT
Created attachment 197734 [details]
2) After adding my projects
Comment 3 Gary Karasiuk CLA 2011-06-09 16:30:17 EDT
Created attachment 197735 [details]
3) After reopening the page
Comment 4 Gary Karasiuk CLA 2011-06-09 16:33:16 EDT
I attached three screen shots, to illustrate the problem. They are taken in order.

The third attachment, "3) After reopening the page" shows the problem.

Note - If I reopen the Deployment Assembly page, the duplicates have gone away.
Comment 5 Chuck Bridgham CLA 2011-06-10 10:25:07 EDT
Roberto please investigate
Comment 6 Roberto Sanchez Herrera CLA 2011-06-10 11:19:21 EDT
Hi Gary, some questions:

1. What version if you dynamic web project? does it have deployment descriptor?
2. What type are the other projects? java projects? utility projects?
3. What version of Tomcat are you using?

Thank you
Comment 7 Gary Karasiuk CLA 2011-06-10 11:37:09 EDT
(In reply to comment #6)
> Hi Gary, some questions:
> 
> 1. What version if you dynamic web project? does it have deployment descriptor?
> 2. What type are the other projects? java projects? utility projects?
> 3. What version of Tomcat are you using?

1. version = 3.0, no web.xml file
2. They are OSGi bundles, but from a WTP perspective, they can be considered as simple Java projects
3. version 7

I'll email you a copy of my projects.
Comment 8 Roberto Sanchez Herrera CLA 2011-06-10 17:46:18 EDT
After looking at your projects, and with the help of Chuck, I found that:

- Looks like the utility projects are corrupt: some files are missing (e.g., the file .settings/org.eclipse.wst.common.component)
- The deployment assembly page of the web project does not show references to the other projects (because they are corrupt), but the file .settings/org.eclipse.wst.common.component does have references to these projects. So, if I add the project in the deployment assembly page, the component file is updated (so the entries are duplicated), and the utility files are fixed (the missing files are added), and therefore you see the projects twice. 

Just to make sure, can you please confirm in your workspace that you see multiple entries for the same files in the component file of the web project?
Comment 9 Gary Karasiuk CLA 2011-06-13 07:42:52 EDT
Roberto, 

Your last comment made me realize that I made a mistake. I am closing this Bugzilla.

This is what happened:

1) I added those POJO projects to my web app.
2) I discovered that POJO projects were changed by the add function. (which I did not like)
3) Since the POJO projects were under source control, I restored the projects to undo those unwanted changes.

4) Later when I was investigating a different defect, I added the POJO projects to my web app, and that is when the duplicates appeared.

Thanks for your help on this.
Comment 10 Gary Karasiuk CLA 2011-06-13 07:43:17 EDT
closing