This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 64627

Summary: FileAlreadyLockedException while saving project properties
Product: javaee Reporter: Lukas Jungmann <jungi>
Component: Web ProjectAssignee: Milan Kubec <mkubec>
Status: VERIFIED DUPLICATE    
Severity: blocker CC: jlahoda, mkubec, tzezula
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE Log

Description Lukas Jungmann 2005-09-19 07:59:44 UTC
[build 200509181800]

1. create web project for bundled tomcat
2. edit project's build.xml, but don't save it (it have to remain "dirty")
3. goto project properties|run, change target server to external Tomcat and
press submit

=> 
org.openide.filesystems.FileAlreadyLockedException:
home/xjungman/test/WebApplication1/build.xml
Comment 1 Lukas Jungmann 2005-09-19 08:00:15 UTC
Created attachment 24925 [details]
IDE Log
Comment 2 Radko Najman 2005-09-27 09:51:04 UTC
This is a common problem for all project types. Adding Tomas to cc. Do you think
this can be solved in project API or must it be fixed in each project type?
Comment 3 Radko Najman 2005-10-04 14:31:23 UTC
Proposed solution: test if build.xml is saved before opening project properties.
If it is not, open confirmation dialog "Save build.xml? Yes/No". Yes -> save
build.xml and open project properties. No -> do notning.

Workaround: save build.xml before opening project properties.

Downgrading to P3, this issue is a corner case. Agreed by QE.
Comment 4 Jesse Glick 2006-08-17 23:22:17 UTC
Special case of well-known issue.

*** This issue has been marked as a duplicate of 50992 ***
Comment 5 Lukas Jungmann 2006-08-17 23:29:11 UTC
v.