This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 345709 - Web 3.0 Filter and Listener are not shown in DD tree when GlassFish is used
Summary: Web 3.0 Filter and Listener are not shown in DD tree when GlassFish is used
Status: CLOSED NOT_ECLIPSE
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 major (vote)
Target Milestone: 3.4.1   Edit
Assignee: Dimitar Giormov CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-13 05:45 EDT by Dimitar Giormov CLA
Modified: 2012-07-17 07:14 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 Dimitar Giormov CLA 2011-05-13 05:45:51 EDT
If you create Dynamic web project 3.0 with runtime Glassfish3 the filters and listeners are no longer shown in the Deployment Descriptor node.

Without runtime or with Tomcat 7 it works.

I am using WTP 3.2.4
Comment 1 David Williams CLA 2011-05-13 10:12:16 EDT
To ask explicitly, are they shown if you run the same test when using WTP 3.2.3? I would assume so, but thought it would be good to ask, to know for sure, if a regression?
Comment 2 Roberto Sanchez Herrera CLA 2011-05-13 12:11:58 EDT
Do you mean the Filter and listener nodes are not shown? or the filters and listeners you create are not shown under the filter and listener nodes? 

Does you project have deployment descriptor? 

Are you filters and listeners annotated? or did you add them to the deployment descriptor?

I tested with JBoss and I do see the nodes and the annotated artifacts under the nodes. I still have to test with filters and listeners in the deployment descriptor
Comment 3 Roberto Sanchez Herrera CLA 2011-05-13 12:15:32 EDT
I tested adding filters and listeners in deployment descriptor, and they are shown under the appropriate nodes.
Comment 4 David Williams CLA 2011-05-13 12:40:40 EDT
I tried this too, and the nodes show up for me, as well. 

I think this bug report needs a lot more detail to be useful. Some exact reproducible steps.
Comment 5 Dimitar Giormov CLA 2011-05-14 08:45:22 EDT
As mentioned in the tittle this occurs using glass fish runtime only.

One good example on how to reproduce this is to make a dynamic web 3.o project with no server runtime.
Next create servlet, filter and listener
All of them are correctly displayed in deployment descriptor tree.
Now from project properties select the project to use glass fish 3 runtime
Immediately the filter and listener and the filter mapping disappear from the DD tree only. The resources are there.
Comment 6 David Williams CLA 2011-05-15 22:03:34 EDT
I think I see what you mean, now. I misunderstood at first what you meant, and thought you meant the "Filter" node itself ... but, you mean filter (classes) underneath the Filter node. I could recreate using the "new" menu, to create a new filter ... which, creates it using annotations, nothing in web.xml file. In that case, it was displayed using Tomcat, but not glassfish. 

I see the same incorrect display behavior using Helios SR2 (WTP 3.2.3). Can you confirm? If so, this bug has existed a long time? And no one ever noticed? Or am I (still) seeing something wrong?
Comment 7 Carl Anderson CLA 2011-08-15 15:17:00 EDT
Dimitar, it has been 3 months since your last update.  I am assigning this to you for the initial investigation- if you find where, within the WTP code, things are going wrong, we can work with you to get them corrected.
Comment 8 Dimitar Giormov CLA 2011-08-16 02:44:11 EDT
I will check it out.
Comment 9 Chuck Bridgham CLA 2011-10-27 13:46:48 EDT
Moving to next maintenance release available....  too late for 3.2.5
Comment 10 Dimitar Giormov CLA 2012-07-17 07:14:40 EDT
I turns out that this is a bug in GlassFish server adapter, see 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=383293 for more information.