Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335554

Summary: "The resource tree is locked for modifications" when editing ejb-jar.xml
Product: [WebTools] WTP EJB Tools Reporter: Wolfgang Knauf <wolfgang.knauf>
Component: jst.ejbAssignee: jst.ejb <jst.ejb-inbox>
Status: CLOSED INVALID QA Contact: Kaloyan Raev <kaloyan>
Severity: minor    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Wolfgang Knauf CLA 2011-01-27 06:01:47 EST
Build Identifier: 

When editing "ejb-jar.xml" for an EJB3 project, every time I save it, I see this error message in ".log":

!ENTRY org.eclipse.core.resources 4 380 2011-01-27 11:43:42.936
!MESSAGE The resource tree is locked for modifications.


This happens with wtp-M-3.2.3-20110121005429, but I don't know whether this is a regression or I just never noticed it ;-).

My sample project can be found here: 
http://www.cs.hs-rm.de/~knauf/KomponentenArchitekturen2008/stateless/Stateless.ear
Import EAR file to a JBoss 5 server runtime.
Then select EJB project => rigt click => "Java EE tools" => "Generate Deployment descriptor" (for this you will need the new WTP version, because there was an encoding bug fixed, see #221212). 
Then change something in this file and save it. Error message is logged.

I also see this when importing an EAR file, which already contains an EJB jar.


Reproducible: Always
Comment 1 Wolfgang Knauf CLA 2011-01-27 08:49:30 EST
Happens also in wtp-I-3.3.0-20110127064115
Comment 2 Wolfgang Knauf CLA 2014-02-06 14:42:21 EST
I don't see this anymore with 3.5