Community
Participate
Working Groups
Build ID: I20080330-1350 Steps To Reproduce: 1.Create Dynamic Web Project 2.Create Servlet 3.Delete Servlet More information:
Can you explain how do you exactly perform step 3.Delete Servlet?
(In reply to comment #1) > Can you explain how do you exactly perform step 3.Delete Servlet? Hello Kaloyan, Right click on servlet in Project explorer then select Delete
I see... This is the normal behavior at the moment: deleting a Java EE artifact class does not update the model (and deployment descriptor) of the corresponding project. We will consider your suggestion as an enhancement for the next development phase. It is too late for Ganymede for such major changes.
We should catch if the deleted Java class is a Java EE artifact. If so, the model should be updated. This bug relates to bug 138173, but is not the same.
With the Java EE model providers implementation this will be easy to achieve. See bug 198815. Currently the model is processing servlet classes that have a corresponding servlet element in the web.xml file. For comment #4 I can say that the model is updated when a servlet class is deleted. For example if the servlet class contains @EJB injections and this class is delete the @EJB references created in the model will be deleted. Same for Listeners and Filters.
*** Bug 244793 has been marked as a duplicate of this bug. ***
The more generic bug 289767 is open to replace the several bugs that are related to refactoring Java EE artifacts. *** This bug has been marked as a duplicate of bug 289767 ***