This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 223458 - Servlet appears twice in the Web 2.5 navigator tree
Summary: Servlet appears twice in the Web 2.5 navigator tree
Status: CLOSED FIXED
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M6   Edit
Assignee: Dimitar Giormov CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-21 02:10 EDT by Kaloyan Raev CLA
Modified: 2008-05-29 12:56 EDT (History)
2 users (show)

See Also:


Attachments
fixes doubling of servlet. (3.00 KB, patch)
2008-03-21 04:59 EDT, Dimitar Giormov CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kaloyan Raev CLA 2008-03-21 02:10:56 EDT
Build: I20080320151231

Steps to reproduce:
1. Create a Web 2.5 project. 
2. Call the Servlet wizard. 
3. Input "TestServlet" in the Class name on the first page. 
4. Change the Servlet name to "test" on the second page.
5. Finish the wizard. 
6. Expand the Deployment Descriptor tree in the Project Navigator. 

As a result the tree shows two Servlets: "test" and "TestServlet".
Comment 1 Kaloyan Raev CLA 2008-03-21 02:12:47 EDT
I am not sure if this is just an UI glitch or also a problem in the model...

Dimitar, could you take a look?
Comment 2 Dimitar Giormov CLA 2008-03-21 04:59:25 EDT
Created attachment 93101 [details]
fixes doubling of servlet.

The annotation model was taking the name of the class for servlet name, thus the mergers treat them as 2 separate servlets.
The same problem existed for filters it is also fixed in the patch.
Comment 3 Kaloyan Raev CLA 2008-03-24 07:58:18 EDT
Thanks for the patch. Dropped to HEAD. 
Comment 4 Kaloyan Raev CLA 2008-03-24 07:58:35 EDT
resolved
Comment 5 kiril mitov CLA 2008-04-02 08:43:51 EDT
Verified with wtp-sdk-I-I20080331115711-20080331115711
Comment 6 Kaloyan Raev CLA 2008-05-29 12:56:30 EDT
Closing