Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 176759 - Publish happens twice after ejb-jar.xml is saved.
Summary: Publish happens twice after ejb-jar.xml is saved.
Status: CLOSED DUPLICATE of bug 152146
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: wst.server (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: wst.server CLA
QA Contact: Tim deBoer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-08 16:58 EST by Ian He CLA
Modified: 2007-04-03 11:51 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian He CLA 2007-03-08 16:58:34 EST
Publish happens twice after the change and save an EJB DD source file (even do no changes and just add a space and remove it then save). You can see from the server view at the bottom status bar, that the publishing ... appears twice.

The Save action triggers the resource change twice which then cause the autopublish to happen twice. In a normal succes case, user will not notice this because the publish happens one after another quietely. 

However, in an error case, for example, if user add some invalid content in the ejb DD and then save it, user will see the error message comes up twice.
If user close the first error window, the second one will pop up. User has to
close the second one too. 

The reproduce scenario is very simple:
1) Open the EJB DD (ebj-jar.xml)
2) Add an space and the remove it (just to make the editor dirty)
3) Save
Now watch the status, you will notice that the apublish happes twice.

If you add some invalid string in step 2)
you will see the error message dialog opens during first publish. 
close it quickly when you see it. 
in a few seconds (this depends on the suto publish inteval)
you will see the second error message opens.

NOTE: if you turn auto publish off, the publish only happens once.
Comment 1 Tim deBoer CLA 2007-03-09 12:29:07 EST
Which server is this happening with? The typical cause of this is a bad publish task that makes a change to resources but doesn't clean the delta. If this is an adopter server adapter, please disable all publish tasks and see if the problem still occurs.
Comment 2 Angel Vera CLA 2007-03-12 10:27:25 EDT
Please mark this bug as duplicate of bug 152146
Comment 3 Ian He CLA 2007-03-12 10:51:01 EDT
With Angel's help, I have confirmed that after comment out the ejb deploy task, the publish only happens once. Problem is indeed caused by the ejb deploy task (as Tim suggested) which changes the resources and triggers the second publish. This is a known issue as in 152146. 

*** This bug has been marked as a duplicate of bug 152146 ***
Comment 4 John Lanuti CLA 2007-04-03 11:51:08 EDT
Closing as part of mass query to clean up old resolved bugs in untargetted milestones.